From 0169619c28806bbc6b3353a032088274ef8c0064 Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Thu, 11 Nov 2021 21:08:35 -0500 Subject: [PATCH] d2_hgr: more inlining --- demos/d2/clear_bottom.s | 2 +- demos/d2/d2.s | 59 ++++++++++++++++++++++------------------- demos/d2/dsr_shape.s | 10 +++---- demos/d2/moving.s | 1 + 4 files changed, 38 insertions(+), 34 deletions(-) diff --git a/demos/d2/clear_bottom.s b/demos/d2/clear_bottom.s index 80fe6a51..432bbfba 100644 --- a/demos/d2/clear_bottom.s +++ b/demos/d2/clear_bottom.s @@ -9,4 +9,4 @@ cbloop: sta $B00,X dex bne cbloop - rts +; rts diff --git a/demos/d2/d2.s b/demos/d2/d2.s index 3ea2ebc0..837f09bb 100644 --- a/demos/d2/d2.s +++ b/demos/d2/d2.s @@ -79,10 +79,24 @@ sin_done: ;===================== ; setup credits - ; TODO: inline? - jsr print_message + ;=================== + ; print message + ;=================== +print_message: +.include "clear_bottom.s" + + ldx #12 +print_message_loop: + lda message1,X + sta $6d2,X + sta $Ad2,X + lda message2,X + sta $6ea,X + sta $Aea,X + dex + bpl print_message_loop ;========================== @@ -90,7 +104,7 @@ sin_done: ;========================== - jsr dsr_spin +.include "dsr_shape.s" ; start music, no music for spin @@ -127,11 +141,17 @@ forever: ;===================== ; repeat + ; switch things up for the second round + lda #$7f sta color_smc+1 lda #159 sta moving_size_smc+1 sta oval_size_smc+1 + lda #