Skip to content

Commit

Permalink
FDS: Fix SMB2J black screen on level 4-4 end (#324)
Browse files Browse the repository at this point in the history
A delay is needed for the game to handle a timer irq before starting
disk reads otherwise the timer irq will interfere with the disk irq.
  • Loading branch information
paulb-nl committed Jul 25, 2022
1 parent b31e070 commit 88a5b54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rtl/mappers/FDS.sv
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ assign romoffset=diskpos + sideoffset;


// BIOS patches
localparam BIOS_PATCHES_CNT = 54;
localparam BIOS_PATCHES_CNT = 51;
wire [23:0] BIOS_PATCHES[BIOS_PATCHES_CNT] = '{
// Wait for button press before loading disk
'hEEE2_09, // Don't branch here otherwise no music
Expand All @@ -375,7 +375,7 @@ wire [23:0] BIOS_PATCHES[BIOS_PATCHES_CNT] = '{
'hF4DF_4C, 'hF4E0_E3, 'hF4E1_E6, // JMP $E6E3 (StartXfer)

// Remove some delays
'hE652_EA, 'hE653_EA, 'hE654_EA, // NOP
//'hE652_EA, 'hE653_EA, 'hE654_EA, // NOP <- This delay is needed for SMB2J Level 4-4 end
'hE655_EA, 'hE656_EA, 'hE657_EA,
'hE65D_EA, 'hE65E_EA, 'hE65F_EA,
'hE691_EA, 'hE692_EA, 'hE693_EA,
Expand Down

0 comments on commit 88a5b54

Please sign in to comment.