From 291f6ba7b54fb01053c8927d526bec5b3a1a111f Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 23 Apr 2025 17:41:47 -0400 Subject: reloc.s: shave off 4 bytes. --- autorun.sys | Bin 1117 -> 1113 bytes hello.s | 2 ++ reloc.s | 4 +--- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/autorun.sys b/autorun.sys index 2ef3512..8aedd8b 100644 Binary files a/autorun.sys and b/autorun.sys differ diff --git a/hello.s b/hello.s index 8642218..19d0918 100644 --- a/hello.s +++ b/hello.s @@ -144,6 +144,8 @@ end_str: .byte "My code ends at $",0 memlo_str: .byte EOL, "MEMLO is currently set to $",0 relax_str: .byte EOL, EOL, "Watchen das blinkenlights...",EOL,0 + .out .sprintf("hello.s code size $%04x (%d)", (* - start_addr), (* - start_addr)) + .ifndef RAW end_addr: .word INITAD diff --git a/reloc.s b/reloc.s index 019679f..5e06056 100644 --- a/reloc.s +++ b/reloc.s @@ -165,9 +165,7 @@ move_loop: bcc do_init ; fix up RUNAD - lda RUNAD+1 - sec - sbc offset_pages + sbc offset_pages ; carry already set by the cmp above sta RUNAD+1 do_init: -- cgit v1.2.3