Macros not math

This commit is contained in:
Joshua Bell 2018-12-20 09:12:19 -08:00
parent f6580ca8c2
commit 81c65f7fff
3 changed files with 8 additions and 8 deletions

View File

@ -930,7 +930,7 @@ L9857: sub16 findwindow_params2::mousex, L9C8E, deltax
lda deltax+1 lda deltax+1
bpl x_lo bpl x_lo
lda deltax lda deltax
cmp #($100 - drag_delta) cmp #AS_BYTE(-drag_delta)
bcc is_drag bcc is_drag
jmp check_deltay jmp check_deltay
x_lo: lda deltax x_lo: lda deltax
@ -942,7 +942,7 @@ check_deltay:
lda deltay+1 lda deltay+1
bpl y_lo bpl y_lo
lda deltay lda deltay
cmp #($100 - drag_delta) cmp #AS_BYTE(-drag_delta)
bcc is_drag bcc is_drag
jmp peek_loop jmp peek_loop
y_lo: lda deltay y_lo: lda deltay

View File

@ -8183,7 +8183,7 @@ exit: return #$FF ; not double-click
;; is -delta < x < 0 ? ;; is -delta < x < 0 ?
lda delta lda delta
cmp #($100 - double_click_deltax) cmp #AS_BYTE(-double_click_deltax)
bcs check_y bcs check_y
fail: return #$FF fail: return #$FF
@ -8204,7 +8204,7 @@ check_y:
;; is -delta < y < 0 ? ;; is -delta < y < 0 ?
lda delta lda delta
cmp #($100 - double_click_deltay) cmp #AS_BYTE(-double_click_deltay)
bcs ok bcs ok
;; is 0 < y < delta ? ;; is 0 < y < delta ?
@ -13257,7 +13257,7 @@ exit: return #$FF ; not double-click
;; is -delta < x < 0 ? ;; is -delta < x < 0 ?
lda delta lda delta
cmp #($100 - double_click_deltax) cmp #AS_BYTE(-double_click_deltax)
bcs check_y bcs check_y
fail: return #$FF fail: return #$FF
@ -13278,7 +13278,7 @@ check_y:
;; is -delta < y < 0 ? ;; is -delta < y < 0 ?
lda delta lda delta
cmp #($100 - double_click_deltay) cmp #AS_BYTE(-double_click_deltay)
bcs ok bcs ok
;; is 0 < y < delta ? ;; is 0 < y < delta ?

View File

@ -1236,7 +1236,7 @@ exit: return #$FF ; not double-click
;; is -delta < x < 0 ? ;; is -delta < x < 0 ?
lda delta lda delta
cmp #($100 - double_click_deltax) cmp #AS_BYTE(-double_click_deltax)
bcs check_y bcs check_y
fail: return #$FF fail: return #$FF
@ -1256,7 +1256,7 @@ check_y:
;; is -delta < y < 0 ? ;; is -delta < y < 0 ?
lda delta lda delta
cmp #($100 - double_click_deltay) cmp #AS_BYTE(-double_click_deltay)
bcs ok bcs ok
: lda delta : lda delta