changed interface for cs[ab]

This commit is contained in:
eck 1990-08-21 10:17:49 +00:00
parent 3fb20f5201
commit 797f90a022
5 changed files with 6 additions and 14 deletions

View file

@ -1,13 +1,11 @@
.define .csa
.define .csa2
.sect .text
.sect .rom
.sect .data
.sect .bss
.sect .text
.csa:
move.l (sp)+,a0 ! case descriptor
move (sp)+,d0 ! index
.csa2:
move.l (a0)+,a1 ! default address
sub (a0)+,d0 ! index - lower bound
blt 1f

View file

@ -6,8 +6,6 @@
.sect .text
.csa4:
move.l (sp)+,a0 ! case descriptor
move.l (sp)+,d0 ! index
move.l (a0)+,a1 ! default address
sub.l (a0)+,d0 ! index - lower bound
blt 1f

View file

@ -1,13 +1,11 @@
.define .csb
.define .csb2
.sect .text
.sect .rom
.sect .data
.sect .bss
.sect .text
.csb:
move.l (sp)+,a0 ! case descriptor
move (sp)+,d0 ! index
.csb2:
move.l (a0)+,a1 ! default jump address
move.w (a0)+,d1 ! # entries
beq 2f

View file

@ -6,10 +6,8 @@
.sect .text
.csb4:
move.l (sp)+,a0 ! case descriptor
move.l (sp)+,d0 ! index
move.l (a0)+,a1 ! default jump address
move.w (a0)+,d1 ! # entries
move.l (a0)+,d1 ! # entries
beq 2f
1:
cmp.l (a0)+,d0

View file

@ -12,5 +12,5 @@
jmp EXIT
.sect .data
fmt: .asciz "system call %d not implemented"
fmt: .asciz "system call %d not implemented\n"
.align 2