mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
Replace raw hex values with HRAM constants
To do: turn constants into labels and use ldh
This commit is contained in:
parent
35deb77113
commit
6ef36800b0
65 changed files with 311 additions and 248 deletions
|
|
@ -925,7 +925,7 @@ Audio1_ApplyWavePatternAndFrequency:
|
|||
ld e, [hl]
|
||||
inc hl
|
||||
ld d, [hl]
|
||||
ld hl, $ff30 ; wave pattern RAM
|
||||
ld hl, rWave_0
|
||||
ld b, $f
|
||||
ld a, $0 ; stop hardware channel 3
|
||||
ld [rNR30], a
|
||||
|
|
|
|||
|
|
@ -936,7 +936,7 @@ Audio2_ApplyWavePatternAndFrequency:
|
|||
ld e, [hl]
|
||||
inc hl
|
||||
ld d, [hl]
|
||||
ld hl, $ff30 ; wave pattern RAM
|
||||
ld hl, rWave_0
|
||||
ld b, $f
|
||||
ld a, $0 ; stop hardware channel 3
|
||||
ld [rNR30], a
|
||||
|
|
|
|||
|
|
@ -925,7 +925,7 @@ Audio3_ApplyWavePatternAndFrequency:
|
|||
ld e, [hl]
|
||||
inc hl
|
||||
ld d, [hl]
|
||||
ld hl, $ff30 ; wave pattern RAM
|
||||
ld hl, rWave_0
|
||||
ld b, $f
|
||||
ld a, $0 ; stop hardware channel 3
|
||||
ld [rNR30], a
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
PlayPokedexRatingSfx::
|
||||
ld a, [$ffdc]
|
||||
ld a, [hDexRatingNumMonsOwned]
|
||||
ld c, $0
|
||||
ld hl, OwnedMonValues
|
||||
.getSfxPointer
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
; these are the definitions for the channel 3 instruments
|
||||
; each instrument definition is made up of 32 points (nibbles) that form
|
||||
; the graph of the wave
|
||||
; the current instrument is copied to $FF30
|
||||
; the current instrument is copied to rWave_0--rWave_f
|
||||
.wave0
|
||||
db $02,$46,$8A,$CE,$FF,$FE,$ED,$DC,$CB,$A9,$87,$65,$44,$33,$22,$11
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue