minix/lib/i86/em/em_rck.s
2009-11-09 10:26:00 +00:00

19 lines
247 B
ArmAsm

.define .rck
.text
! 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
ERANGE = 1
.extern .error
mov ax,#ERANGE
call .error
pop ax
ret