ack/mach/m65oo2/libem/rck.s

21 lines
305 B
ArmAsm
Raw Normal View History

2024-02-22 15:13:52 +00:00
.sect .text; .sect .rom; .sect .data; .sect .bss
.sect .text
.define .rck
! descriptor address in bx
! value in ax, must be left there
.rck:
cmp ax,(bx)
jl 2f
cmp ax,2(bx)
jg 2f
ret
2:
push ax
.extern ERANGE
.extern .error
mov ax,ERANGE
call .error
pop ax
ret