From 5daf3c9b39d2c320ad812147845eb9774d4330b2 Mon Sep 17 00:00:00 2001 From: giomba Date: Sun, 4 Dec 2022 20:16:44 +0100 Subject: [PATCH] Automatic computation of start-of-variables. --- src/main.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.asm b/src/main.asm index bc2bb2a..3228888 100644 --- a/src/main.asm +++ b/src/main.asm @@ -47,9 +47,9 @@ coldstart SUBROUTINE sta $3b ; set start of variables - lda #$ff + lda #<($1001 + demoend - basicdemo) sta $2d - lda #$15 + lda #>($1001 + demoend - basicdemo) sta $2e jsr clear_color_ram