From ab7e7ffbbc7a0e117f65612015e4d36498cb4bb2 Mon Sep 17 00:00:00 2001 From: giomba Date: Sun, 4 Dec 2022 22:22:03 +0100 Subject: [PATCH] Add colors to the tree. --- res/tree.bin | Bin 512 -> 512 bytes src/main.asm | 36 +++++++++++++++++++++++++++++++++++- 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/res/tree.bin b/res/tree.bin index 174a76722161d28712b8b0a36c23b8294fbebb74..de70b97b7eef014ceccc2ad17b548d0f5393ae5e 100644 GIT binary patch delta 12 TcmZo*X<(V`z*w=dqJt3t8BYWU delta 24 fcmZo*X<(V4#Kp@hBqXW8%pt@%k($1001 + demo_end - demo_start) sta $2e + lda #$02 jsr clear_color_ram ; print informative message for user @@ -91,8 +92,8 @@ fake_chrin SUBROUTINE rts +; Put color in A clear_color_ram SUBROUTINE - lda #$02 ldx #$00 .loop: sta $9600,x @@ -183,6 +184,7 @@ loading_feedback SUBROUTINE ; draws a Christmas tree shamelessly copied from another demo copytree SUBROUTINE + ; all this is just a memcpy lda #tree_start @@ -215,6 +217,38 @@ copytree SUBROUTINE cmp #>tree_end bne .loop + ; colors + lda #$08 + sta $900f + + lda #$05 + jsr clear_color_ram + + ; balls + lda #$02 + sta $96a3 + sta $96a6 + lda #$06 + sta $96ce + sta $96d3 + lda #$04 + sta $96f9 + sta $9700 + lda #$03 + sta $9724 + sta $972d + + ; ì puntale di' monni + ; (can't translate) + lda #$07 + sta $9678 + sta $9679 + + ; gambo + lda #$02 + sta $973e + sta $973f + rts