aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2025-04-23 17:41:47 -0400
committerB. Watson <urchlay@slackware.uk>2025-04-23 17:41:47 -0400
commit291f6ba7b54fb01053c8927d526bec5b3a1a111f (patch)
tree15dc6b5f3159f3182e7ac54d481d475235425fb7
parentad84188c66a3f1112a8c6df444cc2b814fca0386 (diff)
downloadatari8-self-relocator-291f6ba7b54fb01053c8927d526bec5b3a1a111f.tar.gz
reloc.s: shave off 4 bytes.
-rw-r--r--autorun.sysbin1117 -> 1113 bytes
-rw-r--r--hello.s2
-rw-r--r--reloc.s4
3 files changed, 3 insertions, 3 deletions
diff --git a/autorun.sys b/autorun.sys
index 2ef3512..8aedd8b 100644
--- a/autorun.sys
+++ b/autorun.sys
Binary files 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: