From 2d92fa90cf1b0f9dea2294f275639ccc90a538c1 Mon Sep 17 00:00:00 2001 From: Quinn Dunki Date: Sun, 26 Feb 2017 20:18:20 -0800 Subject: [PATCH] Revert --- HiSprite.py | 8 +- graphics.s | 50 +----- hisprite.dsk | Bin 143360 -> 143360 bytes hisprite.s | 110 ++----------- spritegen0.s | 448 +++++++++++++-------------------------------------- 5 files changed, 131 insertions(+), 485 deletions(-) diff --git a/HiSprite.py b/HiSprite.py index 4f761ce..aac1f3d 100755 --- a/HiSprite.py +++ b/HiSprite.py @@ -162,14 +162,10 @@ def generateBlitter(colorStreams,maskStreams,height,xdraw): def rowStartCalculatorCode(): return \ - "\tphy\n" + \ - "\ttxa\n" + \ - "\ttay\n" + \ - "\tlda (HIRES_PAGE_L),y\n" + \ + "\tlda HGRROWS_H1,x\n" + \ "\tsta SCRATCH1\n" + \ - "\tlda HGRROWS_L,y\n" + \ + "\tlda HGRROWS_L,x\n" + \ "\tsta SCRATCH0\n" + \ - "\tply\n" + \ "\tldy PARAM0\n" + \ "\tlda DIV7_2,y\n" + \ "\ttay\n"; diff --git a/graphics.s b/graphics.s index d3e70d4..347a9c3 100644 --- a/graphics.s +++ b/graphics.s @@ -16,42 +16,6 @@ EnableHires: lda HIRES2 rts -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; WritePage1 -; Trashes A -; -WritePage1: - lda #HGRROWS_H1 - sta HIRES_PAGE_H - rts - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; WritePage2 -; Trashes A -; -WritePage2: - lda #HGRROWS_H2 - sta HIRES_PAGE_H - rts - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; PageFlip -; Trashes A -; -PageFlip: - lda RDPAGE2 - bmi PageFlip_Show1 - lda HIRESPAGE2 - jmp WritePage1 - -PageFlip_Show1: - lda HIRESPAGE1 - jmp WritePage2 - ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; SaveBackground ; PARAM0: X pos @@ -73,24 +37,21 @@ saveBackground_loop: pha adc PARAM1 ; Calculate Y line tax - phy - tay - lda (HIRES_PAGE_L),y ; Compute hires row + lda HGRROWS_H1,x ; Compute hires row sta saveBackground_smc0+2 sta saveBackground_smc1+2 sta saveBackground_smc2+2 sta saveBackground_smc3+2 sta saveBackground_smc4+2 sta saveBackground_smc5+2 - lda HGRROWS_L,y + lda HGRROWS_L,x sta saveBackground_smc0+1 sta saveBackground_smc1+1 sta saveBackground_smc2+1 sta saveBackground_smc3+1 sta saveBackground_smc4+1 sta saveBackground_smc5+1 - ply ldx PARAM0 ; Compute hires column lda DIV7_2,x @@ -159,24 +120,21 @@ restoreBackground_loop: pha adc PARAM1 ; Calculate Y line tax - phy - tay - lda (HIRES_PAGE_L),y ; Compute hires row + lda HGRROWS_H1,x ; Compute hires row sta restoreBackground_smc0+2 sta restoreBackground_smc1+2 sta restoreBackground_smc2+2 sta restoreBackground_smc3+2 sta restoreBackground_smc4+2 sta restoreBackground_smc5+2 - lda HGRROWS_L,y + lda HGRROWS_L,x sta restoreBackground_smc0+1 sta restoreBackground_smc1+1 sta restoreBackground_smc2+1 sta restoreBackground_smc3+1 sta restoreBackground_smc4+1 sta restoreBackground_smc5+1 - ply ldx PARAM0 ; Compute hires column lda DIV7_2,x diff --git a/hisprite.dsk b/hisprite.dsk index dbec86de3274f2b3d7e5ef5bb74bcd701efcce85..8e5912f3eb733c00096923518710151d06a2735a 100644 GIT binary patch delta 2023 zcmbVNdq`7J7{8n4t}X0NtT|u1h+r9+Qb7+jm5B8qEpSo|I!9Y9dSFOU5jcxW5uH#E z74?VgVRLsWZV2Vb=^zTDLVNs^63imlpOOTnLEUrb$ad~v_{YAT^W!_;_xqmL9%1bf z)~`)d8HZM<+1acN=KdPyXi)*jFkcx!4nsZK=DXP8ELaoLwg|bQ*DZpfH$6B9@r1LO z!YuwmE}E#g(Ql*_=Le0|33^_U>oSasY9e$*FtUirE(2w@$4Q$#r+`(ah)HjC6ea9; z7gFR0-L&V30;Y4(dUY;3YZK0OxUKi_k@n`RX6s4or&EV)&rfeZGjO)(yhlS(Y9whX zB|`NtON%EeNlFwXs$8N~{LZo&&ssRlH62vf?CI`p!)+df!=7qf{b(ERFt_81#^boP zF<<(va;wy;Zjr?*_0Mw2650yUE{N(N+6PesL`_g?6SM`QoeCYxkYo(7{Mhci#@(42+K3 ze~8mUx(Edge-GmQeH&`{i$G-f>rm7Rd18x@?_zFA3XGr;YXw#WLI&Rs_yblE@ZR48 zhVbkH_e=UKU*NxkXhfKNj|0I99D1BtWtuwXU_{20V>4MbKEi4YpqBu>1?VF{(*S(| zB(70_UI6q4pbr2|0W<^TxbP-ld3G$M|Lu@mxdznwWEFZfNH>Wz9aPgPO_9Z4T$NZ! zv4(h(`$O)O`25K8MD@q;DDCNn0%lGTlirpnGm?48+!h(R0vbKpDB;*fi9)Z)>I{VZ z3akp`u*=o;Af5IT3Rq{b6?5u5+&@ydmP`w^4sd5sVdE;9l3XgRw?D%L^d6RJ z^KvDKD3U~c8!PN#=QBE%))XXHKLk(RRVDk`I>_Y^Ayv-dT&yQOo@{aoeXq;hV+=EtpLl}ngG zjHjZ?I^v(H=Bi{qmt=oND;|AWHtfePcP%M>pSxa{k)9=pZh7@Y9~Q}GBO3FTqs5St zOs?Az%V1AdC}T$SUYAVAl*BIn5Y9`ENOEr`^`!(gmsckP%aG7k1gEYdVakY%lf_5A z+paI$*X;dgzd44^Yc7mmY`El85p-~(A(C%8X?_Xyc6-p*ZY|Pwnia-YbimSu!qas~ z;~PdWaJaa`7F%-uz{fcyws9&Z--gx#d(pX0Cvr}2M+(J;3#;iaL@R#nhXw!-0oV*+ z8-Qj2PXlo(U=x4`0Xzy|D}e0)o&tkDB|l(8^A8MdVuyFFA9GGj)~p( zDCVYiJr)&KKCqr+w>Q89B|^+I7E{bmz^t+!YD6rJ;#9#J!BBu9r^YOo?^NTSM8tey znFTv$8UJtQ9V?UcvQWwNfse{qlv|l$#b&TA?I+As@T3sz6oO|277uaNxR0x0@gFhh z7Xyh&8MFxI*KDvuFs~B2;H4F`C#cvKA4%j6=}JkX2HnI_i;&@p5HVW@mLZXmbcgCm z^IE>3J4rC^$HvVW{3pussFDZvNT)nADych2h}4iI??i}I0y2E<>E%3et+^ugEu=>i zx5P-Q>F1NfCX!K+@x(_`8zp0hQkhE?Rm~GiGW{1Ul61(Hs7_r+Iuh&LdUaWV*gDk2 z6W#TY;ZdG6D6WXkvQ;epZxe5J+EY5(beA+P?Gn=7L!&(T>B!iVDTXE&L-Vx_ZK>Af o8jRjBu}LzpA*{EO?#h_bN=G?Vldq;xIu)PaMDFmSZ;`(87b=8deEHGRROWS_H1 + sta HIRES_PAGE_H ldx #0 ;;;; @@ -102,23 +103,10 @@ loop: lda #0 sta PARAM1 - lda RDPAGE2 - bmi loop_SavePage1 - -loop_SavePage2: - lda #bgBuffer2 + lda #>bgBuffer sta PARAM3 - bra loop_SavePage - -loop_SavePage1: - lda #bgBuffer1 - sta PARAM3 - -loop_SavePage: jsr SaveBackground jsr BOXW_MAG @@ -126,34 +114,13 @@ loop_SavePage: jsr ROMWAIT ; Sync to VBL -;@1: lda $C019 -; beq @1 -; bpl @1 -;@0: lda $C019 -; bmi @0 +@1: lda $C019 + beq @1 + bpl @1 +@0: lda $C019 + bmi @0 - jsr PageFlip - - lda RDPAGE2 - bmi loop_RestorePage1 - -loop_RestorePage2: - lda #bgBuffer2 - sta PARAM3 - bra loop_RestorePage - -loop_RestorePage1: - lda #bgBuffer1 - sta PARAM3 - -loop_RestorePage: - dec PARAM0 jsr RestoreBackground - inc PARAM0 inx cpx #133 @@ -163,7 +130,7 @@ loop_RestorePage: rts -bgBuffer1: +bgBuffer: .byte 0 .byte 0 .byte 0 @@ -213,57 +180,6 @@ bgBuffer1: .byte 0 .byte 0 -bgBuffer2: - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - .byte 0 - - bgFilename: .byte "KOL",0 diff --git a/spritegen0.s b/spritegen0.s index 4a7e59a..9d873d1 100644 --- a/spritegen0.s +++ b/spritegen0.s @@ -20,14 +20,10 @@ BOXW_MAG_JMP: BOXW_MAG_SHIFT0: ldx PARAM1 - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -51,14 +47,10 @@ BOXW_MAG_SHIFT0: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -82,14 +74,10 @@ BOXW_MAG_SHIFT0: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -113,14 +101,10 @@ BOXW_MAG_SHIFT0: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -144,14 +128,10 @@ BOXW_MAG_SHIFT0: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -175,14 +155,10 @@ BOXW_MAG_SHIFT0: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -206,14 +182,10 @@ BOXW_MAG_SHIFT0: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -237,14 +209,10 @@ BOXW_MAG_SHIFT0: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -274,14 +242,10 @@ BOXW_MAG_SHIFT0: BOXW_MAG_SHIFT1: ldx PARAM1 - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -305,14 +269,10 @@ BOXW_MAG_SHIFT1: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -336,14 +296,10 @@ BOXW_MAG_SHIFT1: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -367,14 +323,10 @@ BOXW_MAG_SHIFT1: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -398,14 +350,10 @@ BOXW_MAG_SHIFT1: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -429,14 +377,10 @@ BOXW_MAG_SHIFT1: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -460,14 +404,10 @@ BOXW_MAG_SHIFT1: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -491,14 +431,10 @@ BOXW_MAG_SHIFT1: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -528,14 +464,10 @@ BOXW_MAG_SHIFT1: BOXW_MAG_SHIFT2: ldx PARAM1 - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -559,14 +491,10 @@ BOXW_MAG_SHIFT2: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -590,14 +518,10 @@ BOXW_MAG_SHIFT2: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -621,14 +545,10 @@ BOXW_MAG_SHIFT2: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -652,14 +572,10 @@ BOXW_MAG_SHIFT2: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -683,14 +599,10 @@ BOXW_MAG_SHIFT2: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -714,14 +626,10 @@ BOXW_MAG_SHIFT2: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -745,14 +653,10 @@ BOXW_MAG_SHIFT2: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -782,14 +686,10 @@ BOXW_MAG_SHIFT2: BOXW_MAG_SHIFT3: ldx PARAM1 - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -813,14 +713,10 @@ BOXW_MAG_SHIFT3: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -844,14 +740,10 @@ BOXW_MAG_SHIFT3: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -875,14 +767,10 @@ BOXW_MAG_SHIFT3: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -906,14 +794,10 @@ BOXW_MAG_SHIFT3: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -937,14 +821,10 @@ BOXW_MAG_SHIFT3: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -968,14 +848,10 @@ BOXW_MAG_SHIFT3: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -999,14 +875,10 @@ BOXW_MAG_SHIFT3: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -1036,14 +908,10 @@ BOXW_MAG_SHIFT3: BOXW_MAG_SHIFT4: ldx PARAM1 - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -1067,14 +935,10 @@ BOXW_MAG_SHIFT4: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -1098,14 +962,10 @@ BOXW_MAG_SHIFT4: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -1129,14 +989,10 @@ BOXW_MAG_SHIFT4: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -1160,14 +1016,10 @@ BOXW_MAG_SHIFT4: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -1191,14 +1043,10 @@ BOXW_MAG_SHIFT4: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -1222,14 +1070,10 @@ BOXW_MAG_SHIFT4: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -1253,14 +1097,10 @@ BOXW_MAG_SHIFT4: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -1290,14 +1130,10 @@ BOXW_MAG_SHIFT4: BOXW_MAG_SHIFT5: ldx PARAM1 - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -1321,14 +1157,10 @@ BOXW_MAG_SHIFT5: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -1352,14 +1184,10 @@ BOXW_MAG_SHIFT5: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -1383,14 +1211,10 @@ BOXW_MAG_SHIFT5: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -1414,14 +1238,10 @@ BOXW_MAG_SHIFT5: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -1445,14 +1265,10 @@ BOXW_MAG_SHIFT5: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -1476,14 +1292,10 @@ BOXW_MAG_SHIFT5: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -1507,14 +1319,10 @@ BOXW_MAG_SHIFT5: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -1544,14 +1352,10 @@ BOXW_MAG_SHIFT5: BOXW_MAG_SHIFT6: ldx PARAM1 - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -1575,14 +1379,10 @@ BOXW_MAG_SHIFT6: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -1606,14 +1406,10 @@ BOXW_MAG_SHIFT6: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -1637,14 +1433,10 @@ BOXW_MAG_SHIFT6: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -1668,14 +1460,10 @@ BOXW_MAG_SHIFT6: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -1699,14 +1487,10 @@ BOXW_MAG_SHIFT6: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -1730,14 +1514,10 @@ BOXW_MAG_SHIFT6: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay @@ -1761,14 +1541,10 @@ BOXW_MAG_SHIFT6: sta (SCRATCH0),y inx - phy - txa - tay - lda (HIRES_PAGE_L),y + lda HGRROWS_H1,x sta SCRATCH1 - lda HGRROWS_L,y + lda HGRROWS_L,x sta SCRATCH0 - ply ldy PARAM0 lda DIV7_2,y tay