Re: A83: Dammit...
[Prev][Next][Index][Thread]
Re: A83: Dammit...
>3.) External levels! Can someone perhaps direct me to a program...
i used the detect lib in sos for external levels in FlipFlop.
detect:
ld hl,($9319) ;always load hl with $9319 to start
ld ix,search ;search for this text at the begining of a external
level
call vector1 ;search
ret
search:
.db "text",0
libs:
.db "ZLIB",0,0,0,0,lib4,vec1 ;detect
.db $FF ; end of library table
after call vector1 z=0 if a file is found z=1 if not. the location of the
external level is at hl. If you want to search for another file after that
one then load hl with de and ix with the text then call vector1 again. a file
detected by this program would look like this:
.db "text"
.db 0,1,1,0 ;the data
this is what joe put in his zlib.txt:
* Detect (lib 4)
Detect a program (var type 6) on the symbol table.
Input: hl=place to begin looking ( (vat) if first time etc)
ix->String to check for in a program (0 terminated)
Output: de=place stopped
hl->program data (after the string)
z=0 if found, z=1 if not found
b=0
Registers destroyed: af bc de hl