All registers are used, what should I do? Assembly language -
i'm making graphical calculator , using mouse choose numbers. i'm using windows xp
i'm using int 33h, requires ax=3 (to click) bx=1 (check if mouse clicked) cx=horizontal coordinates, dx=vertical coordinates.
i'm getting position of mouse using loop
mousel: mov ax,03h int 33h cmp bx,1b jne mousel
and check position
check1: cmp cx,200 jl mousel cmp cx,240 jg check2 cmp dx,160 jl mousel cmp dx,200 jg check4 mov al,1 mov [si],al <<i need counter here>> je operation
i want 3 numbers, store them, , perform arithmetic operations on. doing wrong?
you try use pusha , popa
mouselxxx: pusha mousel: mov ax,03h int 33h cmp bx,1b jne mousel popa check1: cmp cx,200 jl mouselxxx etc
Comments
Post a Comment