From: Alan Cox Date: Thu, 5 Oct 2017 23:07:20 +0000 (+0100) Subject: 6502: Make crt0 put the right address in the header not a hardcode X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=3a00a747475269af92ebc0ab974b9137489bf8b3;p=FUZIX.git 6502: Make crt0 put the right address in the header not a hardcode --- 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__