2000-05-28 13:40:48 +00:00
|
|
|
;
|
2003-01-02 01:50:39 +00:00
|
|
|
; Maciej 'YTM/Elysium' Witkowiak
|
2000-05-28 13:40:48 +00:00
|
|
|
;
|
2003-01-02 01:50:39 +00:00
|
|
|
; 21.12.1999, 2.1.2003
|
2000-05-28 13:40:48 +00:00
|
|
|
|
|
|
|
; char FindBAMBit (struct tr_se *TS);
|
|
|
|
; (might be called inUSE (if (!inUSE(block))))
|
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
.export _FindBAMBit
|
|
|
|
.import gettrse
|
|
|
|
.import return0, return1
|
2000-05-28 13:40:48 +00:00
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
.include "jumptab.inc"
|
|
|
|
.include "geossym.inc"
|
2022-04-17 14:06:22 +00:00
|
|
|
|
2000-05-28 13:40:48 +00:00
|
|
|
_FindBAMBit:
|
2013-05-09 11:56:54 +00:00
|
|
|
jsr gettrse
|
|
|
|
sta r6L
|
|
|
|
stx r6H
|
|
|
|
jsr FindBAMBit
|
|
|
|
bne inUse
|
|
|
|
jmp return0
|
|
|
|
inUse: jmp return1
|