From 286b21ebd36cd202e1c07e3575aa19c40b2f59e8 Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Wed, 22 Mar 2023 06:26:43 +0100 Subject: [PATCH] Commit to save work --- main.asm | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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 -- 2.30.2