1993-11-24 12:39:21 +00:00
|
|
|
.define .csb4
|
1986-07-22 13:37:16 +00:00
|
|
|
.sect .text
|
|
|
|
.sect .rom
|
|
|
|
.sect .data
|
|
|
|
.sect .bss
|
1985-02-07 22:06:32 +00:00
|
|
|
|
1986-07-22 13:37:16 +00:00
|
|
|
.sect .text
|
1993-11-24 12:39:21 +00:00
|
|
|
.csb4:
|
1989-02-22 17:18:17 +00:00
|
|
|
! case descriptor in a0
|
|
|
|
! index in d0
|
1985-02-07 22:06:32 +00:00
|
|
|
move.l (a0)+,a1 ! default jump address
|
|
|
|
move.l (a0)+,d1 ! # entries
|
|
|
|
beq 2f
|
|
|
|
sub.l #1,d1
|
|
|
|
1:
|
|
|
|
cmp.l (a0)+,d0
|
|
|
|
beq 3f
|
|
|
|
tst.l (a0)+ ! skip jump address
|
|
|
|
dbf d1,1b
|
|
|
|
2:
|
|
|
|
move.l a1,d1 ! default jump address
|
|
|
|
bne 4f
|
|
|
|
move.l #ECASE,-(sp)
|
1987-03-27 12:43:17 +00:00
|
|
|
jmp .fatal
|
1985-02-07 22:06:32 +00:00
|
|
|
3:
|
|
|
|
move.l (a0)+,a1 ! get jump address
|
|
|
|
4:
|
|
|
|
move.l a1,-(sp)
|
|
|
|
rts
|
|
|
|
.align 2
|