From: Alan Cox Date: Wed, 13 Dec 2017 14:13:42 +0000 (+0000) Subject: z80: crt0 - let binman fill in the header properly X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=18a4a2a0b1185fc304d06d5f1548f3fe28440b00;p=FUZIX.git z80: crt0 - let binman fill in the header properly --- diff --git a/Library/libs/crt0.s b/Library/libs/crt0.s index a817c79a..b0ffdcd2 100644 --- a/Library/libs/crt0.s +++ b/Library/libs/crt0.s @@ -46,9 +46,10 @@ start: jp start2 ; .db 0x01 ; page to load at .dw 0 ; chmem ("0 - 'all'") - .dw s__INITIALIZED ; gives us code size info - .dw s__DATA ; gives us data size info - .dw l__DATA ; bss size info + ; These three are set by binman + .dw 0 ; code + .dw 0 ; data + .dw 0 ; bss size .dw 0 ; spare start2: ld hl, #l__DATA - 1 ; work around linker limit diff --git a/Library/libs/crt0nostdio.s b/Library/libs/crt0nostdio.s index 1ed5c7d5..288e2a88 100644 --- a/Library/libs/crt0nostdio.s +++ b/Library/libs/crt0nostdio.s @@ -45,9 +45,10 @@ start: jp start2 ; .db 0x01 ; page to load at .dw 0 ; chmem ("0 - 'all'") - .dw s__INITIALIZED ; gives us code size info - .dw s__DATA ; gives us data size info - .dw l__DATA ; bss size info + ; These three are set by binman + .dw 0 ; code + .dw 0 ; data + .dw 0 ; bss size .dw 0 ; spare start2: ld hl, #l__DATA - 1 ; work around linker limit