/kernel/trunk/kernel.asm |
---|
2944,20 → 2944,22 |
; edx = [top]*65536 + [bottom] |
mov eax, [_display.width] |
mov ebx, [_display.height] |
dec eax |
dec ebx |
; check [right] |
cmp cx, ax |
jae .exit |
ja .exit |
; check [left] |
ror ecx, 16 |
cmp cx, ax |
jae .exit |
ja .exit |
; check [bottom] |
cmp dx, bx |
jae .exit |
ja .exit |
; check [top] |
ror edx, 16 |
cmp dx, bx |
jae .exit |
ja .exit |
movzx eax, cx ; [left] |
movzx ebx, dx ; [top] |