mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
Use HIGH() and LOW()
This commit is contained in:
parent
bbc257476f
commit
45ed05decf
22 changed files with 89 additions and 87 deletions
|
|
@ -25,10 +25,10 @@
|
|||
const Ch8 ; 7
|
||||
|
||||
; HW sound channel register base addresses
|
||||
HW_CH1_BASE EQU (rNR10 % $100)
|
||||
HW_CH2_BASE EQU ((rNR21 % $100) - 1)
|
||||
HW_CH3_BASE EQU (rNR30 % $100)
|
||||
HW_CH4_BASE EQU ((rNR41 % $100) - 1)
|
||||
HW_CH1_BASE EQU LOW(rNR10)
|
||||
HW_CH2_BASE EQU LOW(rNR21) - 1
|
||||
HW_CH3_BASE EQU LOW(rNR30)
|
||||
HW_CH4_BASE EQU LOW(rNR41) - 1
|
||||
|
||||
; HW sound channel enable bit masks
|
||||
HW_CH1_ENABLE_MASK EQU %00010001
|
||||
|
|
|
|||
|
|
@ -35,6 +35,8 @@ BRN EQU 4
|
|||
FRZ EQU 5
|
||||
PAR EQU 6
|
||||
|
||||
MAX_STAT_VALUE EQU 999
|
||||
|
||||
; volatile statuses 1
|
||||
STORING_ENERGY EQU 0 ; Bide
|
||||
THRASHING_ABOUT EQU 1 ; e.g. Thrash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue