diff options
author | B. Watson <urchlay@slackware.uk> | 2022-11-08 02:00:56 -0500 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2022-11-08 02:00:56 -0500 |
commit | c38d545b4882898faccf9db32d88ace67f4e1f05 (patch) | |
tree | 0bec8b2a7336e4b6c3747dfbf1c18817911a6fbc /drunkwalk.s | |
parent | b694d22114fc57d5c8df67853ec1657d7916fbce (diff) | |
download | dla-asm-c38d545b4882898faccf9db32d88ace67f4e1f05.tar.gz |
Remove part_x and part_y.
Diffstat (limited to 'drunkwalk.s')
-rw-r--r-- | drunkwalk.s | 12 |
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 |