aboutsummaryrefslogtreecommitdiff
path: root/drunkwalk.s
diff options
context:
space:
mode:
Diffstat (limited to 'drunkwalk.s')
-rw-r--r--drunkwalk.s12
1 files changed, 6 insertions, 6 deletions
diff --git a/drunkwalk.s b/drunkwalk.s
index 6156e4a..ca017c0 100644
--- a/drunkwalk.s
+++ b/drunkwalk.s
@@ -10,8 +10,8 @@ oob:
rts
drunkwalk:
- ldy part_x ; 3
- ldx part_y ; 3
+ ldy cursor_x ; 3
+ ldx cursor_y ; 3
lda lineaddrs_l,x ; 5
sta pixptr ; 3
@@ -27,14 +27,14 @@ up:
selfmod_ymin = * + 1
cpx #0 ; 2
beq oob ; 2
- stx part_y
+ stx cursor_y
jmp check_lru
down:
inx ; 2 ; N=1 V=0 down
selfmod_ymax = * + 1
cpx #0 ; 2
beq oob ; 2
- stx part_y
+ stx cursor_y
jmp check_lrd
lr:
bvc right ; 2/3
@@ -43,7 +43,7 @@ left:
selfmod_xmin = * + 1
cpy #0 ; 2
beq oob ; 2
- sty part_x
+ sty cursor_x
; check left neighbor (we just vacated the right one)
dey
lda (pixptr),y
@@ -55,7 +55,7 @@ right:
selfmod_xmax = * + 1
cpy #0 ; 2
beq oob ; 2
- sty part_x
+ sty cursor_x
; check right neighbor (we just vacated the left one)
iny
lda (pixptr),y