Skip to content

Commit 37a3bc6

Browse files
committed
Fixed Dandanator paging ROM in and out
Test ROM is in position 31, not 0. Using config to disable and re-enable it instead.
1 parent d81b506 commit 37a3bc6

2 files changed

Lines changed: 8 additions & 9 deletions

File tree

src/Dandanator.asm

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11

2-
32
DandanatorPagingStop:
43
; Stop paging mode in Dandanator so system lower ROM is accessible
5-
ld b, %00100000
6-
jr DandanatorZone0CommandSequence
4+
ld a, %10000011
5+
jr DandanatorConfigCommandSequence
76

87
DandanatorPagingStart:
9-
; Stop paging mode in Dandanator so system lower ROM is accessible
10-
ld b, %00000000
11-
jr DandanatorZone0CommandSequence
8+
; Start paging mode in Dandanator again to diag ROM is in 0x0000-0x3FFFF
9+
ld a, %10000010
10+
jr DandanatorConfigCommandSequence
1211

13-
DandanatorZone0CommandSequence:
12+
DandanatorConfigCommandSequence:
1413
ld iy, ScratchByte
1514
db #FD, #FD
16-
ld (iy+0), b
15+
ld (iy+0), a
1716
ret

src/PlaySound.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
ld bc,#F400 + %00000111 ;; << data
5454
out (c),c
55-
ld bc,#F680 ;; << write data to register
55+
ld bc,#F6A0 ;; << write data to register
5656
out (c),c
5757
ld bc,#F600
5858
out (c),c

0 commit comments

Comments
 (0)