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:
parent
cdb8035cf0
commit
915836b3ec
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user