feat(init): no Cartridge or VIC-II at a Blade's reset and NMI
A Blade has no expansion port for Cartridges and no VIC-II: with ARNITECH_BLADE the reset neither looks for a Cartridge nor blanks the screen, and the NMI handler looks for no Cartridge.
This commit is contained in:
1 parent
f809b9b7ea
commit
b1fbc1c693
2 files changed
+5
-2
No files matched your search
@@ -45,6 +45,8 @@ hw_entry_reset:
|
|||||||
; Also, https://codebase64.org/doku.php?id=base:assembling_your_own_cart_rom_image was used
|
; Also, https://codebase64.org/doku.php?id=base:assembling_your_own_cart_rom_image was used
|
||||||
; as it shows example startup sequence, to be followe by cartridge creators
|
; as it shows example startup sequence, to be followe by cartridge creators
|
||||||
|
|
||||||
|
!ifndef CONFIG_ARNITECH_BLADE { ; a Blade has no Cartridges and no VIC-II
|
||||||
|
|
||||||
!ifndef ROM_LAYOUT_CRT {
|
!ifndef ROM_LAYOUT_CRT {
|
||||||
|
|
||||||
; C64 PRG p269
|
; C64 PRG p269
|
||||||
@@ -56,6 +58,7 @@ hw_entry_reset:
|
|||||||
; Disable the screen (and set 40 columns) to prevent visual glitches later
|
; Disable the screen (and set 40 columns) to prevent visual glitches later
|
||||||
ldx #$28
|
ldx #$28
|
||||||
stx VIC_SCROLX
|
stx VIC_SCROLX
|
||||||
|
}
|
||||||
}
|
}
|
||||||
; Initialising IO is obviously required. Also indicated by c64 prg p269.
|
; Initialising IO is obviously required. Also indicated by c64 prg p269.
|
||||||
jsr JIOINIT
|
jsr JIOINIT
|
||||||
|
|||||||
@@ -17,13 +17,13 @@ default_nmi_handler:
|
|||||||
|
|
||||||
; XXX confirm NMIs from CIA, or no other NMI will arrive!
|
; XXX confirm NMIs from CIA, or no other NMI will arrive!
|
||||||
|
|
||||||
!ifdef CONFIG_PLATFORM_COMMODORE_64 {
|
!ifdef CONFIG_PLATFORM_COMMODORE_64 { !ifndef CONFIG_ARNITECH_BLADE { ; a Blade has no Cartridges
|
||||||
|
|
||||||
jsr cartridge_check
|
jsr cartridge_check
|
||||||
bne @1
|
bne @1
|
||||||
jmp (ICART_WARM_START)
|
jmp (ICART_WARM_START)
|
||||||
@1:
|
@1:
|
||||||
}
|
} }
|
||||||
|
|
||||||
; According to C64 Wiki, if STOP key is pressed, the routine assumes warm start request
|
; According to C64 Wiki, if STOP key is pressed, the routine assumes warm start request
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user