1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-11 11:30:13 +00:00

Improve init code readability

This commit is contained in:
Fabrizio Caruso 2019-10-06 13:00:37 +02:00 committed by Oliver Schmidt
parent cdb8035cf0
commit 915836b3ec
2 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ SEGMENTS {
CODE: load = ROM, type = ro, define = yes; CODE: load = ROM, type = ro, define = yes;
RODATA: load = ROM, type = ro, define = yes; RODATA: load = ROM, type = ro, define = yes;
DATA: load = ROM, run = RAM, type = rw, define = yes; DATA: load = ROM, run = RAM, type = rw, define = yes;
FFF0: load = ROM, type = ro, offset = $7FEA; FFEA: load = ROM, type = ro, offset = $7FEA;
VECTOR: load = ROM, type = ro, offset = $7FFA; VECTOR: load = ROM, type = ro, offset = $7FFA;
BSS: load = RAM, type = bss, define = yes; BSS: load = RAM, type = bss, define = yes;
} }

View File

@ -65,12 +65,12 @@ not_dma:
.endproc .endproc
; Removing this segment gives only a warning. ; Removing this segment gives only a warning.
.segment "FFF0" .segment "FFEA"
.proc reset32kcode .proc reset32kcode
lda #$A0 lda #$A0
sta lcd_width sta lcd_width
sta lcd_height sta lcd_height
lda #$C9 lda #(6<<5) | SV_LCD_ON | SV_NMI_ENABLE_ON
sta sv_bank sta sv_bank
; Now, the 32Kbyte image can reside in the top of 64Kbyte and 128Kbyte ROMs. ; Now, the 32Kbyte image can reside in the top of 64Kbyte and 128Kbyte ROMs.
jmp reset jmp reset