Changed literal zeroes of the style "#>0" into the style "#>$0000".

This commit is contained in:
Greg King
2014-09-10 19:15:07 -04:00
parent e702832e80
commit 74c2415795
16 changed files with 75 additions and 69 deletions

View File

@@ -2,7 +2,7 @@
; Driver for a "joystick mouse".
;
; 2009-09-26, Ullrich von Bassewitz
; 2013-09-05, Greg King
; 2014-09-10, Greg King
;
.include "zeropage.inc"
@@ -266,7 +266,7 @@ BUTTONS:
; Bits go up when buttons go down.
eor #MOUSE_BTN_LEFT | MOUSE_BTN_RIGHT
ldx #>0
ldx #>$0000
rts
;----------------------------------------------------------------------------
@@ -358,11 +358,11 @@ IRQ: jsr CPREP
and #JOY::RIGHT << 4 ; Check RIGHT bit
bnz @Right
lda #<-1
lda #<-$0001
tax
bnz @AddX ; Branch always
@Right: lda #<1
ldx #>1
@Right: lda #<$0001
ldx #>$0001
; Calculate the new x co-ordinate (--> .YA).
@@ -401,11 +401,11 @@ IRQ: jsr CPREP
and #JOY::UP << 4 ; Check UP bit
bze @Down
lda #<-1
lda #<-$0001
tax
bnz @AddY
@Down: lda #<1
ldx #>1
@Down: lda #<$0001
ldx #>$0001
; Calculate the new y co-ordinate (--> .YA).