mirror of https://github.com/snes9xgit/snes9x.git
Properly report MSU-1 revision in the status register
This commit is contained in:
parent
a95d69c051
commit
fc224c0df7
2
msu1.cpp
2
msu1.cpp
|
@ -464,7 +464,7 @@ uint8 S9xMSU1ReadPort(uint8 port)
|
|||
switch (port)
|
||||
{
|
||||
case 0:
|
||||
return MSU1.MSU1_STATUS;
|
||||
return MSU1.MSU1_STATUS | MSU1_REVISION;
|
||||
case 1:
|
||||
{
|
||||
if (MSU1.MSU1_STATUS & DataBusy)
|
||||
|
|
5
msu1.h
5
msu1.h
|
@ -194,6 +194,8 @@
|
|||
#define _MSU1_H_
|
||||
#include "snes9x.h"
|
||||
|
||||
#define MSU1_REVISION 0x02
|
||||
|
||||
struct SMSU1
|
||||
{
|
||||
uint8 MSU1_STATUS;
|
||||
|
@ -209,8 +211,7 @@ struct SMSU1
|
|||
};
|
||||
|
||||
enum SMSU1_FLAG {
|
||||
Revision = 0x02, //max: 0x07
|
||||
AudioResume = 0x04,
|
||||
Revision = 0x07, // bitmask, not the actual version number
|
||||
AudioError = 0x08,
|
||||
AudioPlaying = 0x10,
|
||||
AudioRepeating = 0x20,
|
||||
|
|
Loading…
Reference in New Issue