1990-08-21 10:17:49 +00:00
|
|
|
.define .csa2
|
1985-06-04 10:57:42 +00:00
|
|
|
.sect .text
|
|
|
|
.sect .rom
|
|
|
|
.sect .data
|
|
|
|
.sect .bss
|
1984-12-14 15:41:14 +00:00
|
|
|
|
1985-06-04 10:57:42 +00:00
|
|
|
.sect .text
|
1990-08-21 10:17:49 +00:00
|
|
|
.csa2:
|
1984-12-14 15:41:14 +00:00
|
|
|
move.l (a0)+,a1 ! default address
|
|
|
|
sub (a0)+,d0 ! index - lower bound
|
|
|
|
blt 1f
|
|
|
|
cmp (a0)+,d0 ! rel. index <-> upper - lower bound
|
|
|
|
bgt 1f
|
|
|
|
asl #2,d0
|
|
|
|
add d0,a0
|
|
|
|
move.l (a0),d1 ! test jump address
|
|
|
|
move.l d1,d0
|
|
|
|
beq 1f
|
|
|
|
move.l d1,a1
|
|
|
|
bra 3f
|
|
|
|
1:
|
|
|
|
move.l a1,d0 ! test default jump address
|
|
|
|
beq 2f
|
|
|
|
3:
|
|
|
|
jmp (a1)
|
|
|
|
2:
|
|
|
|
move.w #ECASE,-(sp)
|
|
|
|
jmp .fat
|