Skip to content

Commit

Permalink
Implemented MBC30 mapper
Browse files Browse the repository at this point in the history
Does not work on all emulators and flash carts. Only put non-essential things like DED Cries in upper banks.
  • Loading branch information
pkmncoraldev committed Oct 19, 2021
1 parent 5c8960e commit b6e4013
Show file tree
Hide file tree
Showing 14 changed files with 458 additions and 49 deletions.
3 changes: 3 additions & 0 deletions audio/ded/files.asm
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
SECTION "DED 1", ROMX
ExtendedSpaceString::
db "PIPPI@@@@@@"
PikipekDEDData:: INCBIN "audio/ded/pikipek.ded"
TrumbeakDEDData:: INCBIN "audio/ded/trumbeak.ded"

Expand Down
8 changes: 4 additions & 4 deletions audio/musicplayer.asm
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ MusicPlayerLoop:
ld [wMapMusic], a
ld e, a
ld d, 0
farcall PlayMusic2
farcall PlayMusic
ld hl, wChLastNotes
xor a
ld [hli], a
Expand All @@ -356,7 +356,7 @@ MusicPlayerLoop:
ld [wMapMusic], a
ld e, a
ld d, 0
farcall PlayMusic2
farcall PlayMusic
ld hl, wChLastNotes
xor a
ld [hli], a
Expand Down Expand Up @@ -705,7 +705,7 @@ AdjustTempo:
ld e, a
ld d, 0
ld [wMapMusic], a
farcall PlayMusic2
farcall PlayMusic
jr .exit

.b:
Expand Down Expand Up @@ -1699,7 +1699,7 @@ SongSelector:
.got_song
ld e, a
ld d, 0
farcall PlayMusic2
farcall PlayMusic
jr .finish

.up
Expand Down
128 changes: 128 additions & 0 deletions contents/romx.link
Original file line number Diff line number Diff line change
Expand Up @@ -230,3 +230,131 @@ ROMX $38
org $4000
"Crystal Data"
"Trainer Pic Pointers"

ROMX $e0
org $4000
"DED 1"

ROMX $e1
org $4000
"DED 2"

ROMX $e2
org $4000
"DED 3"

ROMX $e3
org $4000
"DED 4"

ROMX $e4
org $4000
"DED 5"

ROMX $e5
org $4000
"DED 6"

ROMX $e6
org $4000
"DED 7"

ROMX $e7
org $4000
"DED 8"

ROMX $e8
org $4000
"DED 9"

ROMX $e9
org $4000
"DED 10"

ROMX $ea
org $4000
"DED 11"

ROMX $eb
org $4000
"DED 12"

ROMX $ec
org $4000
"DED 13"

ROMX $ed
org $4000
"DED 14"

ROMX $ee
org $4000
"DED 15"

ROMX $ef
org $4000
"DED 16"

ROMX $f0
org $4000
"DED 17"

ROMX $f1
org $4000
"DED 18"

ROMX $f2
org $4000
"DED 19"

ROMX $f3
org $4000
"DED 20"

ROMX $f4
org $4000
"DED 21"

ROMX $f5
org $4000
"DED 22"

ROMX $f6
org $4000
"DED 23"

ROMX $f7
org $4000
"DED 24"

ROMX $f8
org $4000
"DED 25"

ROMX $f9
org $4000
"DED 26"

ROMX $fa
org $4000
"DED 27"

ROMX $fb
org $4000
"DED 28"

ROMX $fc
org $4000
"DED 29"

ROMX $fd
org $4000
"DED 30"

ROMX $fe
org $4000
"DED 31"

ROMX $ff
org $4000
"DED 32"
Loading

0 comments on commit b6e4013

Please sign in to comment.