minix/lib/i86/em/em_rck.s

20 lines
247 B
ArmAsm
Raw Normal View History

2005-04-21 16:53:53 +02:00
.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