aboutsummaryrefslogtreecommitdiff
path: root/src-z80/core/main.z80
diff options
context:
space:
mode:
authorJavier Degirolmo2012-07-15 21:02:54 -0300
committerJavier Degirolmo2012-07-15 21:02:54 -0300
commitc7cf8a2eb4178f59a5dfe2c3ad6bf1a39eeca523 (patch)
treeddaf8602e1d089644753d6e0a52421f35b730b10 /src-z80/core/main.z80
parent84ce0220dd5449587467c37d7afbd99fb1fbe69e (diff)
Added BGM pausing support (stop BGM to pause, resume BGM to unpause)
Diffstat (limited to 'src-z80/core/main.z80')
-rw-r--r--src-z80/core/main.z806
1 files changed, 2 insertions, 4 deletions
diff --git a/src-z80/core/main.z80 b/src-z80/core/main.z80
index 491860a..3a5a441 100644
--- a/src-z80/core/main.z80
+++ b/src-z80/core/main.z80
@@ -31,10 +31,6 @@ EntryPoint:
ld (hl), l
ld (hl), l
- ;ex af, af' ; Set 9th bank bit to 0 by default
- ;xor a ; (0 = $000000-$7FFFFF range aka MD mode)
- ;ex af, af' ; (1 = $800000-$FFFFFF range aka 32X mode)
-
ld ix, $4000 ; YM2612 I/O ports base address
ld iyh, $40
@@ -120,6 +116,8 @@ RunCommand:
jp z, PlayBGM
dec a ; Command $05: stop BGM
jp z, StopBGMCmd
+ dec a ; Command $06: resume BGM
+ jp z, ResumeBGM
PollPCM