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
|
|
|
|
|
1987-06-09 10:22:50 +00:00
|
|
|
! descriptor address in bx
|
1985-02-07 15:33:13 +00:00
|
|
|
! value in ax, must be left there
|
|
|
|
.rck:
|
1987-06-09 10:22:50 +00:00
|
|
|
cmp ax,(bx)
|
1985-02-07 15:33:13 +00:00
|
|
|
jl 2f
|
1987-06-09 10:22:50 +00:00
|
|
|
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
|