ESSreg macro

This commit is contained in:
Cacodemon345
2024-03-02 16:50:29 +06:00
committed by Kagamiin~
parent 8308f41069
commit d5dad279c4
2 changed files with 4 additions and 0 deletions

View File

@@ -140,6 +140,8 @@ typedef struct sb_dsp_t {
uint8_t azt_eeprom[AZTECH_EEPROM_SIZE]; /* the eeprom in the Aztech cards is attached to the DSP */
uint8_t ess_regs[256]; /* ESS registers. */
mpu_t *mpu;
} sb_dsp_t;

View File

@@ -135,6 +135,8 @@ sb_dsp_log(const char *fmt, ...)
# define sb_dsp_log(fmt, ...)
#endif
#define ESSreg(reg) (dsp)->ess_regs[reg - 0xA0]
static __inline double
sinc(double x)
{