Moved things into ONCE.
Code and or data used only during initialization belongs into the ONCE segment.
This commit is contained in:
@@ -69,6 +69,9 @@ L2: jsr KBDREAD ; Read char and return in A
|
|||||||
|
|
||||||
.endproc
|
.endproc
|
||||||
|
|
||||||
|
fnkeys: .byte $01, $01, $01, $01, $01, $01, $01, $01
|
||||||
|
.byte 133, 137, 134, 138, 135, 139, 136, 140
|
||||||
|
|
||||||
|
|
||||||
.code
|
.code
|
||||||
|
|
||||||
@@ -82,11 +85,3 @@ L2: jsr KBDREAD ; Read char and return in A
|
|||||||
rts
|
rts
|
||||||
|
|
||||||
.endproc
|
.endproc
|
||||||
|
|
||||||
|
|
||||||
; Function key table, readonly
|
|
||||||
|
|
||||||
.rodata
|
|
||||||
fnkeys: .byte $01, $01, $01, $01, $01, $01, $01, $01
|
|
||||||
.byte 133, 137, 134, 138, 135, 139, 136, 140
|
|
||||||
|
|
||||||
|
|||||||
@@ -68,6 +68,8 @@
|
|||||||
|
|
||||||
;-----------------------------------------------------------------------------
|
;-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
.segment "ONCE"
|
||||||
|
|
||||||
.proc ppuinit
|
.proc ppuinit
|
||||||
|
|
||||||
lda #%10101000
|
lda #%10101000
|
||||||
@@ -104,7 +106,6 @@
|
|||||||
|
|
||||||
.endproc
|
.endproc
|
||||||
|
|
||||||
|
|
||||||
;-----------------------------------------------------------------------------
|
;-----------------------------------------------------------------------------
|
||||||
|
|
||||||
.proc paletteinit
|
.proc paletteinit
|
||||||
|
|||||||
@@ -72,6 +72,9 @@ L2: sta ENABLE_ROM ; Bank in the ROM
|
|||||||
|
|
||||||
.endproc
|
.endproc
|
||||||
|
|
||||||
|
fnkeys: .byte $01, $01, $01, $01, $01, $01, $01, $01
|
||||||
|
.byte 133, 137, 134, 138, 135, 139, 136, 140
|
||||||
|
|
||||||
|
|
||||||
.segment "LOWCODE" ; Accesses the ROM - must go into low mem
|
.segment "LOWCODE" ; Accesses the ROM - must go into low mem
|
||||||
|
|
||||||
@@ -87,11 +90,3 @@ L2: sta ENABLE_ROM ; Bank in the ROM
|
|||||||
rts
|
rts
|
||||||
|
|
||||||
.endproc
|
.endproc
|
||||||
|
|
||||||
|
|
||||||
; Function key table, readonly
|
|
||||||
|
|
||||||
.rodata
|
|
||||||
fnkeys: .byte $01, $01, $01, $01, $01, $01, $01, $01
|
|
||||||
.byte 133, 137, 134, 138, 135, 139, 136, 140
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user