Skip to content

Commit

Permalink
2.4 beta 11 implements non-returning INIT with Y=$80/$81
Browse files Browse the repository at this point in the history
  • Loading branch information
bbbradsmith committed Mar 5, 2019
1 parent 49333d3 commit c1c0993
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion distribute/nsfplay.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ loopcount - number of times to loop, 0 default
Versions
========

NSFPlay 2.4 beta 11 - ?
NSFPlay 2.4 beta 11 - 3/04/2019
- Fixed incorrect bytes per second in stereo WAV output.
- Fixed NSFe track title display when using playlist.
- Fixed crash issue with 1MB NSF files. (Bank counting was incorrect.)
Expand Down
6 changes: 3 additions & 3 deletions xgm/devices/CPU/nes_cpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ UINT32 NES_CPU::Exec (UINT32 clock)
if (extra_init)
{
enable_nmi = true;
run_from(init_addr);
extra_init = false;
context.A = song;
context.X = region;
context.Y = 1;
context.Y = 0x81;
run_from(init_addr);
}

if (enable_irq && !(context.P & K6502_I_FLAG) && context.iRequest)
Expand Down Expand Up @@ -313,7 +313,7 @@ void NES_CPU::Start (

context.A = song;
context.X = region;
context.Y = 0;
context.Y = extra_init ? 0x80 : 0;
context.P = 0x26; // VIZ

run_from (init_addr);
Expand Down
4 changes: 2 additions & 2 deletions xgm/version.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _VERSION_H_
#define _VERSION_H_
#define NSFPLAY_TITLE "NSFPlay 2.4 beta (unofficial)"
#define NSFPLAY_VERSION "2.4 beta (unofficial)"
#define NSFPLAY_TITLE "NSFPlay 2.4 beta 11"
#define NSFPLAY_VERSION "2.4 beta 11"
#endif

0 comments on commit c1c0993

Please sign in to comment.