1990-07-25 11:46:27 +00:00
|
|
|
.define .csb4
|
1990-09-03 10:25:57 +00:00
|
|
|
.define .csb
|
1987-01-29 22:10:18 +00:00
|
|
|
.sect .text
|
|
|
|
.sect .rom
|
|
|
|
.sect .data
|
|
|
|
.sect .bss
|
1988-10-03 10:53:47 +00:00
|
|
|
ECASE=20
|
1987-01-29 22:10:18 +00:00
|
|
|
|
|
|
|
.sect .text
|
|
|
|
|
1990-07-25 11:46:27 +00:00
|
|
|
.csb4:
|
1990-09-03 10:25:57 +00:00
|
|
|
.csb:
|
1989-02-21 10:09:01 +00:00
|
|
|
! case descriptor in a0
|
|
|
|
! index in d0
|
|
|
|
|
1987-01-29 22:10:18 +00:00
|
|
|
move.l (a0)+, a1 ! default jump address
|
|
|
|
move.l (a0)+, d1 ! # entries
|
|
|
|
beq 3f
|
|
|
|
sub.l #1, d1
|
|
|
|
1:
|
|
|
|
cmp.l (a0,d1.w*8), d0
|
|
|
|
dbeq d1, 1b
|
|
|
|
bne 3f
|
|
|
|
move.l (4,a0,d1.w*8), a1 ! jump address
|
|
|
|
3:
|
|
|
|
move.l a1, d0
|
|
|
|
beq 4f
|
|
|
|
jmp (a1)
|
|
|
|
4:
|
|
|
|
move.l #ECASE, -(sp)
|
|
|
|
jmp (.fatal)
|
|
|
|
.align 2
|