aboutsummaryrefslogtreecommitdiff
path: root/src-z80/core/main.z80
diff options
context:
space:
mode:
authorJavier Degirolmo2013-03-20 22:22:52 -0300
committerJavier Degirolmo2013-03-20 22:22:52 -0300
commite7617bcf94af9e31655f838bc343f0fea1e80eaa (patch)
tree70dc89a7597944ce0bd0812a0e3640f39ab70a47 /src-z80/core/main.z80
parentda7654b94830523294ecd5fb071bc0eaa06a5087 (diff)
PCM is now buffered to improve performance somewhat. Version bumped up to 1.1.
Diffstat (limited to 'src-z80/core/main.z80')
-rw-r--r--src-z80/core/main.z8011
1 files changed, 5 insertions, 6 deletions
diff --git a/src-z80/core/main.z80 b/src-z80/core/main.z80
index 82c6bb0..1bd6074 100644
--- a/src-z80/core/main.z80
+++ b/src-z80/core/main.z80
@@ -35,9 +35,7 @@ EntryPoint:
ld iyh, $40
exx ; Init PCM playback status
- ld bc, $0000 ; B = playing, C = bank
- ld de, $0000 ; DE = address
- ld hl, $6000 ; HL = always $6000
+ ld b, $00 ; Not playing
exx
ld (ix+0), $2B ; Disable DAC by default
@@ -203,7 +201,7 @@ BankSwitch: macro
ld (hl), a
rrca
ld (hl), a
- ld (hl), l
+ ld (hl), h
rrca
ld (hl), a
endm
@@ -265,9 +263,10 @@ GetParam:
jp z, .noswitchp
ld a, c
ld (RAM_LastBank), a
- exx
+ push hl
+ ld hl, $6000
BankSwitch
- exx
+ pop hl
.noswitchp:
ld b, (hl) ; Get volume