1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-12 02:30:44 +00:00

Reverted the change by Stefan Haubenthal - order of segments is important for

the heap to work correctly.


git-svn-id: svn://svn.cc65.org/cc65/trunk@4995 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz 2011-04-25 18:45:57 +00:00
parent cc3424a545
commit 671a4a653f
3 changed files with 5 additions and 5 deletions

View File

@ -33,8 +33,8 @@ information.
<sect>Binary format<p> <sect>Binary format<p>
The standard binary output format generated by the linker for the Atmos target The standard binary output format generated by the linker for the Atmos target
is a machine language program with a 14 byte tape header. The standard load is a machine language program with a 17 byte tape header including a cc65 tag.
and autostart address is &dollar;500. The standard load and autostart address is &dollar;500.
<sect>Memory layout<p> <sect>Memory layout<p>

View File

@ -9,7 +9,7 @@
.import initlib, donelib .import initlib, donelib
.import callmain, zerobss .import callmain, zerobss
.import __RAM_START__, __RAM_SIZE__ .import __RAM_START__, __RAM_SIZE__
.import __BSS_LOAD__, __STACKSIZE__ .import __ZPSAVE_LOAD__, __STACKSIZE__
.include "zeropage.inc" .include "zeropage.inc"
.include "atmos.inc" .include "atmos.inc"
@ -27,7 +27,7 @@
.byte $00 ; $2AF .byte $00 ; $2AF
.byte $80 ; $2AE Machine code flag .byte $80 ; $2AE Machine code flag
.byte $C7 ; $2AD Autoload flag .byte $C7 ; $2AD Autoload flag
.dbyt __BSS_LOAD__ ; $2AB .dbyt __ZPSAVE_LOAD__ ; $2AB
.dbyt __RAM_START__ ; $2A9 .dbyt __RAM_START__ ; $2A9
.byte $00 ; $2A8 .byte $00 ; $2A8
.byte ((.VERSION >> 8) & $0F) + '0' .byte ((.VERSION >> 8) & $0F) + '0'

View File

@ -14,8 +14,8 @@ SEGMENTS {
CODE: load = RAM, type = ro; CODE: load = RAM, type = ro;
RODATA: load = RAM, type = ro; RODATA: load = RAM, type = ro;
DATA: load = RAM, type = rw; DATA: load = RAM, type = rw;
ZPSAVE: load = RAM, type = bss, define = yes;
BSS: load = RAM, type = bss, define = yes; BSS: load = RAM, type = bss, define = yes;
ZPSAVE: load = RAM, type = bss;
ZEROPAGE: load = ZP, type = zp; ZEROPAGE: load = ZP, type = zp;
} }
FEATURES { FEATURES {