English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 05 June 2020, 06:10   #1
JuanLuis
Registered User
 
Join Date: Dec 2018
Location: Málaga
Posts: 61
Amiga System Libraries include for VASM

Where can I find Amiga System libraries include files for VASM?
JuanLuis is offline  
Old 05 June 2020, 09:28   #2
alkis
Registered User
 
Join Date: Dec 2010
Location: Athens/Greece
Age: 53
Posts: 719
Probably you mean this (?) https://www.haage-partner.de/download/AmigaOS/NDK39.lha
alkis is offline  
Old 05 June 2020, 12:50   #3
JuanLuis
Registered User
 
Join Date: Dec 2018
Location: Málaga
Posts: 61
Quote:
Originally Posted by alkis View Post
Thanks alkis. I get an error compiling:

unknown mnemonic <FUNCDEF>

I'm using motorola syntax. Are these libraries for this kind of syntax?
JuanLuis is offline  
Old 05 June 2020, 13:39   #4
alkis
Registered User
 
Join Date: Dec 2010
Location: Athens/Greece
Age: 53
Posts: 719
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.
Attached Files
File Type: zip lvo.zip (31.7 KB, 199 views)
alkis is offline  
Old 05 June 2020, 14:17   #5
Hedeon
Semi-Retired
 
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 2,001
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
Hedeon is offline  
Old 05 June 2020, 20:45   #6
kamelito
Zone Friend
 
kamelito's Avatar
 
Join Date: May 2006
Location: France
Posts: 1,801
Or this
http://aminet.net/dev/asm/incupd.lha
kamelito is offline  
Old 06 June 2020, 05:15   #7
JuanLuis
Registered User
 
Join Date: Dec 2018
Location: Málaga
Posts: 61
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?
JuanLuis is offline  
Old 06 June 2020, 14:10   #8
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
Quote:
Originally Posted by JuanLuis View Post
- 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.
phx is offline  
Old 07 June 2020, 10:24   #9
JuanLuis
Registered User
 
Join Date: Dec 2018
Location: Málaga
Posts: 61
Quote:
Originally Posted by phx View Post
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.
JuanLuis is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
vasm/mot: include failed error message guy lateur Coders. Asm / Hardware 6 23 December 2018 20:29
Origin/sources of the Amiga C libraries Hedeon Coders. C/C++ 10 04 November 2018 15:08
Opening system libraries in Blitz. peceha Coders. Blitz Basic 3 21 August 2018 12:10
Basic/System include files guy lateur Coders. Asm / Hardware 6 05 July 2017 12:53
Equivalent libraries from standard c to amiga c _ThEcRoW Coders. General 6 14 December 2005 17:01

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07865 seconds with 16 queries