Skip to content

Commit d4ffde9

Browse files
authored
Clean unused init bytes (#136)
These bytes are remnants from the vanilla rom and aren't used by anything. They appear to be either an incorrect version of the Famicom Disk System Interupt/Reset vector controls, or the correct version of the same controls for an internal development platform. Either way they can be cleaned up. from: https://www.nesdev.org/wiki/FDS_BIOS#Interrupt/Reset_vector_controls > Interrupt/Reset vector controls > The FDS BIOS uses 4 bytes at the > lower end of the stack page to control the behaviour of interrupt/reset > vectors: > > [$0100]: PC action on NMI. $C0 (NMI #3) on reset. > [$0101]: PC action on IRQ. $80 (BIOS acknowledge and delay) on reset. > [$0102]: RESET flag. $35 on reset after the boot files have loaded. > [$0103]: RESET type. $AC = first boot of the game, $53 = the game was soft-reset by the user.
1 parent df937b1 commit d4ffde9

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/boot.asm

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,6 @@
7676
sta PPUMASK
7777
jsr LE006
7878
jsr updateAudio2
79-
lda #$C0
80-
sta stack
81-
lda #$80
82-
sta stack+1
83-
lda #$35
84-
sta stack+3
85-
lda #$AC
86-
sta stack+4
8779
jsr updateAudioWaitForNmiAndDisablePpuRendering
8880
jsr disableNmi
8981
jsr drawBlackBGPalette

0 commit comments

Comments
 (0)