- Push de rigor

This commit is contained in:
2024-12-02 09:04:21 +01:00
parent c6b6830c5c
commit 4a9b13126b
2 changed files with 4 additions and 1 deletions

View File

@@ -5,4 +5,4 @@ run: compile
./z80
debug: compile
gdb z80
gdb -ex run z80

View File

@@ -57,6 +57,9 @@ namespace zx_ula
static uint8_t ear = 0;
static uint8_t mic = 0;
// this variable keeps track of the last "1" written to the sound buffer, so when streaming it in the audio callback, if there
// are only zeros remaining in the buffer, we just discard it. It's a poor man's method of keeping the buffer size in control.
// This is useless when there are music, sounds, tape loading, etc... as 1's and 0's keep alternating
static uint16_t last_1 = 0;
void update_zx_keyboard()