Move data data segment to SDRAM

This commit is contained in:
Byron Lathi
2022-03-17 15:05:25 -05:00
parent ee97c4cbaa
commit bbba99d099
2 changed files with 7 additions and 7 deletions

View File

@@ -8,7 +8,7 @@
.import _main
.export __STARTUP__ : absolute = 1 ; Mark as startup
.import __RAM_START__, __RAM_SIZE__ ; Linker generated
.import __SDRAM_START__, __SDRAM_SIZE__ ; Linker generated
.import copydata, zerobss, initlib, donelib
@@ -29,9 +29,9 @@ _init: LDX #$FF ; Initialize stack pointer to $01FF
; ---------------------------------------------------------------------------
; Set cc65 argument stack pointer
LDA #<(__RAM_START__ + __RAM_SIZE__)
LDA #<(__SDRAM_START__ + __SDRAM_SIZE__)
STA sp
LDA #>(__RAM_START__ + __RAM_SIZE__)
LDA #>(__SDRAM_START__ + __SDRAM_SIZE__)
STA sp+1
; ---------------------------------------------------------------------------