diff options
| author | Ian C <ianc@noddybox.co.uk> | 2026-06-29 09:41:42 +0900 |
|---|---|---|
| committer | Ian C <ianc@noddybox.co.uk> | 2026-06-29 09:41:42 +0900 |
| commit | c527acfc79f3bda8cfe13a7b51b0b16a32683960 (patch) | |
| tree | e5bbd119a070848301a03b52f1232a797b35c119 /src/z80.h | |
| parent | c31b779c20638ce25f11489c445a53798a663b13 (diff) | |
First partial working attempt at sound. Producing output, but very distorted
Diffstat (limited to 'src/z80.h')
| -rw-r--r-- | src/z80.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -151,6 +151,16 @@ typedef struct } Z80Label; +/* The Z80 provides a number of cycle timers +*/ +typedef enum +{ + eZ80_Timer_1, + eZ80_Timer_2, + eZ80_Timer_3 +} Z80Timer; + + /* ---------------------------------------- INTERFACES */ @@ -230,6 +240,12 @@ void Z80GetState(Z80 *cpu, Z80State *state); void Z80SetState(Z80 *cpu, const Z80State *state); +/* Timers that count in cycle counts +*/ +Z80Val Z80GetTimer(Z80 *cpu, Z80Timer timer); +void Z80SetTimer(Z80 *cpu, Z80Timer timer, Z80Val cycles); + + /* Set address to label mappings for the disassembler */ void Z80SetLabels(Z80Label labels[]); |
