English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 08 April 2007, 22:00   #1
BippyM
Global Moderator
 
BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
lowlevel.library

can someone point me to some literature for structure offsets for lowlevel.library and other kick 3+ libraries please
BippyM is offline  
Old 09 April 2007, 00:05   #2
rgen
Registered User
 
rgen's Avatar
 
Join Date: Mar 2002
Location: Aachen/Germany
Age: 46
Posts: 190
Send a message via ICQ to rgen
http://www.haage-partner.de/download...gaOS/NDK39.lha
rgen is offline  
Old 09 April 2007, 14:23   #3
BippyM
Global Moderator
 
BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
thanks but i can't seem to find the values for the library offsets.

Maybe I am just blind
BippyM is offline  
Old 09 April 2007, 15:45   #4
rgen
Registered User
 
rgen's Avatar
 
Join Date: Mar 2002
Location: Aachen/Germany
Age: 46
Posts: 190
Send a message via ICQ to rgen
You have to create them from the supplied sfd or fd files, but unfortunately the lvo tool is not included anymore and sfd tool is not able to read the supplied files.

But you can use http://www.dstoecker.eu/downloads/fd2pragma.lha

fd2pragma include/sfd/lowlevel_lib.sfd 20 (20-23 are valid numbers, whatever you prefer) creates the necessary include file with the library offsets.
rgen is offline  
Old 09 April 2007, 15:50   #5
BippyM
Global Moderator
 
BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
ok lemme explain better

I am disassembling a prog for Whitesnake and there is the following code

Code:
move.l  #1,d0
movea.l (LOWLEVBASE).l,a6
jsr     (-$1e,a6)
I need to know what function -$1e is
BippyM is offline  
Old 09 April 2007, 16:04   #6
rgen
Registered User
 
rgen's Avatar
 
Join Date: Mar 2002
Location: Aachen/Germany
Age: 46
Posts: 190
Send a message via ICQ to rgen
Convert $1e to decimal and then us this
Code:
_LVOReadJoyPort                 EQU     -30
_LVOGetLanguageSelection        EQU     -36
_LVOGetKey                      EQU     -48
_LVOQueryKeys                   EQU     -54
_LVOAddKBInt                    EQU     -60
_LVORemKBInt                    EQU     -66
_LVOSystemControlA              EQU     -72
_LVOAddTimerInt                 EQU     -78
_LVORemTimerInt                 EQU     -84
_LVOStopTimerInt                EQU     -90
_LVOStartTimerInt               EQU     -96
_LVOElapsedTime                 EQU     -102
_LVOAddVBlankInt                EQU     -108
_LVORemVBlankInt                EQU     -114
_LVOSetJoyPortAttrsA            EQU     -132
rgen is offline  
Old 09 April 2007, 16:46   #7
BippyM
Global Moderator
 
BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
Thankyou

Where did you find that info? was it thru fd convert?
BippyM is offline  
Old 09 April 2007, 17:22   #8
rgen
Registered User
 
rgen's Avatar
 
Join Date: Mar 2002
Location: Aachen/Germany
Age: 46
Posts: 190
Send a message via ICQ to rgen
Yes, the sfd file itself contains only the start offset and then you have to increase the offset for each function. This makes the command that I described and I took the offsets from the file it created. You can include it in your assembler and then write
Code:
jsr (_LVOReadJoyPort,a6)
instead of
Code:
jsr (-30,a6)
rgen is offline  
Old 09 April 2007, 18:08   #9
Doc Mindie
In deep Trouble
 
Join Date: Sep 2004
Location: Manchester, Made in Norway
Age: 51
Posts: 841
So.... seeing as -$1e is -30 decimal.... this'll be _LVOReadJoyPort according to your table?

Wow, I get good at assembly now :P
Doc Mindie 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
lowlevel.library Gilloo Coders. System 3 16 March 2021 14:12
lowlevel PCI-coding / Amithlon Ratte Coders. Nextgen 26 26 February 2015 18:23
.library asmcode? oRBIT Coders. General 1 08 May 2007 21:39
CD32-Emu: "Can´t open lowlevel.library" Why? viddi support.Apps 10 19 January 2007 19:40
Making a shared library from a gcc .a library JoJo Coders. General 1 10 March 2003 19:06

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 14:40.

Top

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