From ea7f1d5948a86e94180d399d88b2d7eac0047799 Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Fri, 8 Nov 2024 01:27:53 -0500 Subject: [PATCH] driven: work on horiz scroll --- demos/driven/part05_atrus/big_horiz_scroll.s | 15 +++++++++++++++ .../{old => other}/big_horiz_scroll.s | 0 2 files changed, 15 insertions(+) rename demos/driven/part05_atrus/{old => other}/big_horiz_scroll.s (100%) diff --git a/demos/driven/part05_atrus/big_horiz_scroll.s b/demos/driven/part05_atrus/big_horiz_scroll.s index 03c8d520..b95f6260 100644 --- a/demos/driven/part05_atrus/big_horiz_scroll.s +++ b/demos/driven/part05_atrus/big_horiz_scroll.s @@ -7,6 +7,21 @@ ; even frames, like normal ; odd frames, start with odd + ; X6543210 XDCBA987 + + ; 0123456 789ABCD X Y Z + ; lda X, sta Y lda X+1, sta Y+1 + ; 2345678 9ABCDef X<<2 | Y<<2 + ; lda X, sta Y lda X+1 and #$fc lda Y+1, and #$3 ora, sta Y+1 + ; 456789A BCDefgh X<<4 | Y<<4 + ; lda X, sta Y lda X+1 and #$fc lda Y+1, and #$3 ora, sta Y+1 + ; 6789ABC Defghij X<<6 | Y<<6 + ; 89ABCDe fghijkl Y<<1 | Z<<1 + ; ABCDefg hijklmn Y<<3 | Z<<3 + ; CDefghi jklmnop Y<<5 | Z<<6 + ; efghijk lmnopqr Z + + do_scroll: lda #0 diff --git a/demos/driven/part05_atrus/old/big_horiz_scroll.s b/demos/driven/part05_atrus/other/big_horiz_scroll.s similarity index 100% rename from demos/driven/part05_atrus/old/big_horiz_scroll.s rename to demos/driven/part05_atrus/other/big_horiz_scroll.s