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

20 lines
314 B
ArmAsm

.sect .text; .sect .rom; .sect .data; .sect .bss
.sect .text
.define .rck
! descriptor address in ebx
! value in eax, must be left there
.rck:
cmp eax,(ebx)
jl 2f
cmp eax,4(ebx)
jg 2f
ret
2:
push eax
.extern ERANGE
.extern .error
mov eax,ERANGE
call .error
pop eax
ret