08 April 2007, 22:00 | #1 |
Global Moderator
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
|
09 April 2007, 00:05 | #2 |
Registered User
|
|
09 April 2007, 14:23 | #3 |
Global Moderator
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 |
09 April 2007, 15:45 | #4 |
Registered User
|
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. |
09 April 2007, 15:50 | #5 |
Global Moderator
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) |
09 April 2007, 16:04 | #6 |
Registered User
|
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 |
09 April 2007, 16:46 | #7 |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
Thankyou
Where did you find that info? was it thru fd convert? |
09 April 2007, 17:22 | #8 |
Registered User
|
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) Code:
jsr (-30,a6) |
09 April 2007, 18:08 | #9 |
In deep Trouble
Join Date: Sep 2004
Location: Manchester, Made in Norway
Age: 52
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 |
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 |
|
|