From: Lukas Krickl Date: Wed, 22 Mar 2023 05:26:43 +0000 (+0100) Subject: Commit to save work X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=286b21ebd36cd202e1c07e3575aa19c40b2f59e8;p=turtlebay%2F.git Commit to save work --- diff --git a/main.asm b/main.asm index 46a7dbd..f4625ef 100644 --- a/main.asm +++ b/main.asm @@ -222,20 +222,12 @@ DoDrawGrp0 ; sta GRP0 ; update player0 to draw turtle ; draw playfield - tya ; transfer y to a - ldy Temp ; load y with map counter - sta Temp ; store y for now - lda (MapPtr0),y ; playfiled pattern test sta PF0 lda (MapPtr1),y ; playfiled pattern test sta PF1 lda (MapPtr2),y ; playfiled pattern test sta PF2 - iny ; increment y - lda Temp ; load back old y - sty Temp ; store new map counter - tay ; and transfer it back ; precalculate date for next line lda #TURTLEHEIGHT-1 ; height of gfx @@ -249,6 +241,14 @@ DoDrawGrp1 ; start of line 2 of the 2LK sta GRP1 + ; draw playfield + lda (MapPtr0),y ; playfiled pattern test + sta PF0 + lda (MapPtr1),y ; playfiled pattern test + sta PF1 + lda (MapPtr2),y ; playfiled pattern test + sta PF2 + dey ; decrease the loop counter bne pfLoop ; branch if more left to draw