1990-04-12 11:29:49 +00:00
|
|
|
.define .csb4
|
|
|
|
.sect .text
|
|
|
|
.sect .rom
|
|
|
|
.sect .data
|
|
|
|
.sect .bss
|
|
|
|
|
|
|
|
.sect .text
|
|
|
|
.csb4:
|
|
|
|
move.l (a0)+,a1 ! default jump address
|
1990-08-21 10:17:49 +00:00
|
|
|
move.l (a0)+,d1 ! # entries
|
1990-04-12 11:29:49 +00:00
|
|
|
beq 2f
|
|
|
|
1:
|
|
|
|
cmp.l (a0)+,d0
|
|
|
|
beq 3f
|
|
|
|
tst.l (a0)+ ! skip jump address
|
|
|
|
sub.l #1,d1
|
|
|
|
bgt 1b
|
|
|
|
2:
|
|
|
|
move.l a1,d1 ! default jump address
|
|
|
|
bne 4f
|
|
|
|
move.w #ECASE,-(sp)
|
|
|
|
jmp .fat
|
|
|
|
3:
|
|
|
|
move.l (a0)+,a1 ! get jump address
|
|
|
|
4:
|
|
|
|
jmp (a1)
|