Merge pull request #1828 from ZeroByteOrg/x16_ym
Fixed YM2151 struct to match HW behavior
This commit is contained in:
@@ -538,11 +538,11 @@ NMIVec := $0318
|
|||||||
; YM2151 audio chip
|
; YM2151 audio chip
|
||||||
.struct YM2151
|
.struct YM2151
|
||||||
.org $9F40
|
.org $9F40
|
||||||
.union
|
|
||||||
STATUS .byte
|
|
||||||
ADDR .byte
|
ADDR .byte
|
||||||
.endunion
|
.union
|
||||||
DATA .byte
|
DATA .byte
|
||||||
|
STATUS .byte
|
||||||
|
.endunion
|
||||||
.endstruct
|
.endstruct
|
||||||
|
|
||||||
; X16 Emulator device
|
; X16 Emulator device
|
||||||
|
|||||||
@@ -285,11 +285,11 @@ struct __vera {
|
|||||||
|
|
||||||
/* Audio chip */
|
/* Audio chip */
|
||||||
struct __ym2151 {
|
struct __ym2151 {
|
||||||
|
unsigned char reg; /* Register number for data */
|
||||||
union {
|
union {
|
||||||
unsigned char reg; /* Register number for data */
|
unsigned char data;
|
||||||
unsigned char status; /* Busy flag */
|
unsigned char status; /* Busy flag */
|
||||||
};
|
};
|
||||||
unsigned char data;
|
|
||||||
};
|
};
|
||||||
#define YM2151 (*(volatile struct __ym2151 *)0x9F40)
|
#define YM2151 (*(volatile struct __ym2151 *)0x9F40)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user