--- hatari/src/includes/psg.h 2019/04/01 07:15:33 1.1.1.5 +++ hatari/src/includes/psg.h 2019/04/09 08:52:08 1.1.1.7 @@ -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);