English Amiga Board

English Amiga Board (https://eab.abime.net/index.php)
-   Coders. Asm / Hardware (https://eab.abime.net/forumdisplay.php?f=112)
-   -   Amiga System Libraries include for VASM (https://eab.abime.net/showthread.php?t=102593)

JuanLuis 05 June 2020 06:10

Amiga System Libraries include for VASM
 
Where can I find Amiga System libraries include files for VASM?

alkis 05 June 2020 09:28

Probably you mean this (?) https://www.haage-partner.de/download/AmigaOS/NDK39.lha

JuanLuis 05 June 2020 12:50

Quote:

Originally Posted by alkis (Post 1405347)

Thanks alkis. I get an error compiling:

unknown mnemonic <FUNCDEF>

I'm using motorola syntax. Are these libraries for this kind of syntax?

alkis 05 June 2020 13:39

1 Attachment(s)
Just uncompress this zip inside the inludes

if you want to use functions of exec, do
include lvo/exec_lib.i

for dos

include lvo/dos_lib.i

etc.

Hedeon 05 June 2020 14:17

Some of the lib files don't assign numbers to library jump offsets directly but use a macro called FUNCDEF to define the jump offset (by substracting -6 to every following function).

I think it is in exec/libraries.i

kamelito 05 June 2020 20:45

Or this
http://aminet.net/dev/asm/incupd.lha

JuanLuis 06 June 2020 05:15

Thanks to all for the answers, but I have new questions.

- What does LVO mean?
- What does incupd mean?
- Are they part of Amiga system libraries?
- Or are both libraries equivalent to Amiga system libraries?

phx 06 June 2020 14:10

Quote:

Originally Posted by JuanLuis (Post 1405611)
- What does LVO mean?

Library Vector Offset. Every Amiga library (shared library: xyz.library) has a jump table for all of its exported functions. The LVO defines the offset relative to the library's base address (which you get with OpenLibrary), which you have to call for a specific function.

Quote:

- What does incupd mean?
It's just the name of an inofficial include-file update on Aminet.
These additional files are helpful, but unfortunately not official. So I would keep that in mind if you plan to release your source text and others cannot assemble it.

Quote:

- Are they part of Amiga system libraries?
Not sure what "system libraries" means for you.
No, the LVO's are not defined in a shared library. They are defined by the amiga.lib linker library, though. All function names are prefixed by _LVO. To use such a symbol fron amiga.lib, import it into your assembler source with
xref _LVOFunctionName
and link the object file with
-lamiga
.

Quote:

- Or are both libraries equivalent to Amiga system libraries?
Which "both libraries"? We were talking about LVOs and include files.

JuanLuis 07 June 2020 10:24

Quote:

Originally Posted by phx (Post 1405688)
Library Vector Offset. Every Amiga library (shared library: xyz.library) has a jump table for all of its exported functions. The LVO defines the offset relative to the library's base address (which you get with OpenLibrary), which you have to call for a specific function.


It's just the name of an inofficial include-file update on Aminet.
These additional files are helpful, but unfortunately not official. So I would keep that in mind if you plan to release your source text and others cannot assemble it.


Not sure what "system libraries" means for you.
No, the LVO's are not defined in a shared library. They are defined by the amiga.lib linker library, though. All function names are prefixed by _LVO. To use such a symbol fron amiga.lib, import it into your assembler source with
xref _LVOFunctionName
and link the object file with
-lamiga
.


Which "both libraries"? We were talking about LVOs and include files.

Ok Phx. I believe everything is clear for me. I have three directories with .i files, the first one problably extracted from a C compiler, a second one with LVO definitions and incups. The last one was complete unknown for me.

Thanks Phx and the rest of members for the answers.


All times are GMT +2. The time now is 18:30.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.

Page generated in 0.04680 seconds with 11 queries