Skip to content

Commit

Permalink
fix incorrect pad0 padding size
Browse files Browse the repository at this point in the history
  • Loading branch information
bbbradsmith committed Apr 27, 2024
1 parent ca12567 commit a94c43d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/nsf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ bool NSFCore::nsf_parse(bool bin)
NSF_DEBUG("load_addr = %04X",load_addr);
// setup pad0/pad1 banks if needed
load_addr &= 0x0FFF;
int load_pad = load_addr ? (0x10000 - load_addr) : 0;
int load_pad = load_addr ? (0x1000 - load_addr) : 0;
rom = nsf_data - load_pad;
if (load_addr) // pad0 reuses ram6000 @ E000 to make a padded version of bank 0
{
Expand Down

0 comments on commit a94c43d

Please sign in to comment.