From 3a00a747475269af92ebc0ab974b9137489bf8b3 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 6 Oct 2017 00:07:20 +0100 Subject: [PATCH] 6502: Make crt0 put the right address in the header not a hardcode --- Library/libs/crt0_6502.s | 3 ++- Library/libs/crt0nostdio_6502.s | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Library/libs/crt0_6502.s b/Library/libs/crt0_6502.s index 9da5fff7..a5f4e358 100644 --- a/Library/libs/crt0_6502.s +++ b/Library/libs/crt0_6502.s @@ -20,13 +20,14 @@ .segment "STARTUP" +head: jmp start .byte 'F' .byte 'Z' .byte 'X' .byte '1' - .byte $20 + .byte >head .word 0 .word __CODE_SIZE__ + __RODATA_SIZE__ .word __DATA_SIZE__ diff --git a/Library/libs/crt0nostdio_6502.s b/Library/libs/crt0nostdio_6502.s index 0162852b..9806f80f 100644 --- a/Library/libs/crt0nostdio_6502.s +++ b/Library/libs/crt0nostdio_6502.s @@ -20,13 +20,14 @@ .segment "STARTUP" +head: jmp start .byte 'F' .byte 'Z' .byte 'X' .byte '1' - .byte $20 + .byte >head .word 0 .word __CODE_SIZE__ + __RODATA_SIZE__ .word __DATA_SIZE__ -- 2.34.1