ack/mach/i86/libem/rck.s

21 lines
305 B
ArmAsm
Raw Normal View History

1987-01-08 10:13:48 +00:00
.sect .text; .sect .rom; .sect .data; .sect .bss
.sect .text
1985-02-07 15:33:13 +00:00
.define .rck
! descriptor address in bx
1985-02-07 15:33:13 +00:00
! value in ax, must be left there
.rck:
cmp ax,(bx)
1985-02-07 15:33:13 +00:00
jl 2f
cmp ax,2(bx)
1985-02-07 15:33:13 +00:00
jg 2f
ret
2:
push ax
1987-01-08 10:13:48 +00:00
.extern ERANGE
.extern .error
1985-02-07 15:33:13 +00:00
mov ax,ERANGE
call .error
pop ax
ret