diff options
| author | Sik | 2019-07-07 03:35:06 -0300 |
|---|---|---|
| committer | Sik | 2019-07-07 03:35:06 -0300 |
| commit | 8e96c87f2d2bac7207718fd211f29fc085d31bc3 (patch) | |
| tree | 90b23e2324330dc963fe8e73a16699ec24a82acc /src-z80/core/direct.z80 | |
| parent | fbcb8924e878e7eff93d444762c647e126cb8e3b (diff) | |
Fixing bugs with Echo_PlayDirect (oof)
Diffstat (limited to 'src-z80/core/direct.z80')
| -rw-r--r-- | src-z80/core/direct.z80 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src-z80/core/direct.z80 b/src-z80/core/direct.z80 index d796ddf..570175f 100644 --- a/src-z80/core/direct.z80 +++ b/src-z80/core/direct.z80 @@ -10,6 +10,9 @@ ProcessDirect: inc a ret z + ld a, $FF ; Put bogus length for direct stream + ld (RAM_DirectLen), a ; so 68000 knows to wait + PollPCM ld hl, ProcessDirectEnd ; Override $FF event @@ -24,7 +27,10 @@ ProcessDirect: ProcessDirectEnd: ld hl, StopBGMEvent ; Restore $FF event ld (ProcessBGMEventFF+1), hl + ld a, $FF ; Reset the stream ld ($1F00), a + inc a + ld (RAM_DirectLen), a ret ; Return to the main loop |
