mirror of
https://github.com/cc65/cc65.git
synced 2025-01-10 19:29:45 +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;
|
||||
RODATA: load = ROM, type = ro, 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;
|
||||
BSS: load = RAM, type = bss, define = yes;
|
||||
}
|
||||
|
@ -65,12 +65,12 @@ not_dma:
|
||||
.endproc
|
||||
|
||||
; Removing this segment gives only a warning.
|
||||
.segment "FFF0"
|
||||
.segment "FFEA"
|
||||
.proc reset32kcode
|
||||
lda #$A0
|
||||
sta lcd_width
|
||||
sta lcd_height
|
||||
lda #$C9
|
||||
lda #(6<<5) | SV_LCD_ON | SV_NMI_ENABLE_ON
|
||||
sta sv_bank
|
||||
; Now, the 32Kbyte image can reside in the top of 64Kbyte and 128Kbyte ROMs.
|
||||
jmp reset
|
||||
|
Loading…
x
Reference in New Issue
Block a user