--- hatari/src/includes/psg.h 2019/04/01 07:15:33 1.1.1.5 +++ hatari/src/includes/psg.h 2019/04/09 08:54:33 1.1.1.9 @@ -1,8 +1,8 @@ /* Hatari - This file is distributed under the GNU Public License, version 2 or at - your option any later version. Read the file gpl.txt for details. + This file is distributed under the GNU General Public License, version 2 + or at your option any later version. Read the file gpl.txt for details. */ #ifndef HATARI_PSG_H @@ -25,13 +25,13 @@ enum PSG_REG_ENV_COARSE, /* 0x1100 */ PSG_REG_ENV_SHAPE, /* 0x1101 */ PSG_REG_IO_PORTA, /* 0x1110 */ - PSG_REG_IO_PORTB /* 0x1111 */ + PSG_REG_IO_PORTB, /* 0x1111 */ + MAX_PSG_REGISTERS }; -#define NUM_PSG_SOUND_REGISTERS 14 /* Number of register, not including IO ports */ +#define NUM_PSG_SOUND_REGISTERS 14 /* Number of sound related registers, not including IO ports */ -extern Uint8 PSGRegisterSelect; -extern Uint8 PSGRegisters[16]; +extern Uint8 PSGRegisters[MAX_PSG_REGISTERS]; extern void PSG_Reset(void); extern void PSG_MemorySnapShot_Capture(bool bSave); @@ -47,4 +47,6 @@ extern void PSG_ff8801_WriteByte(void); extern void PSG_ff8802_WriteByte(void); extern void PSG_ff8803_WriteByte(void); +extern void PSG_Info(Uint32 dummy); + #endif /* HATARI_PSG_H */