aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: