summaryrefslogtreecommitdiff
path: root/hram.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2014-09-20 00:57:27 -0400
committeryenatch <yenatch@gmail.com>2014-09-20 00:57:27 -0400
commitdff0cdeb5a2f901dc8d1a05847d09d7faf1654ad (patch)
tree3618582f76f4183b6bc22c5d4743b6d171d11128 /hram.asm
parent1185d69819af3493fe8ace9f576fee4b420db55e (diff)
parent2ed65d9c3e3ba60939ebe2928ffddc06a90b1876 (diff)
Merge remote-tracking branch 'YamaArashi/master'
Conflicts: constants/misc_constants.asm engine/battle/core.asm engine/menu/pokedex.asm engine/town_map.asm home.asm hram.asm
Diffstat (limited to 'hram.asm')
-rw-r--r--hram.asm17
1 files changed, 17 insertions, 0 deletions
diff --git a/hram.asm b/hram.asm
index 4599e950..6bf0b76f 100644
--- a/hram.asm
+++ b/hram.asm
@@ -14,6 +14,12 @@ hSoftReset EQU $FF8A
H_DOWNARROWBLINKCNT1 EQU $FF8B
H_DOWNARROWBLINKCNT2 EQU $FF8C
+H_SPRITEDATAOFFSET EQU $FF8B
+H_SPRITEINDEX EQU $FF8C
+
+; DisplayTextID's argument
+hSpriteIndexOrTextID EQU $FF8C
+
; Multiplcation and division variables are meant
; to overlap for back-to-back usage. Big endian.
@@ -32,6 +38,11 @@ H_NUMTOPRINT EQU $FF96 ; 3 bytes
H_POWEROFTEN EQU $FF99 ; 3 bytes
H_SAVEDNUMTOPRINT EQU $FF9C ; 3 bytes
+; these values are copied to SCX, SCY, and WY during V-blank
+hVBlankSCX EQU $FFAE
+hVBlankSCY EQU $FFAF
+hVBlankWY EQU $FFB0
+
hJoyHeldLast EQU $FFB1
hJoyReleased EQU $FFB2
hJoyPressed EQU $FFB3
@@ -115,6 +126,12 @@ H_FRAMECOUNTER EQU $FFD5 ; decremented every V-blank (used for delays)
; you can detect that the V-blank handler has run since then.
H_VBLANKOCCURRED EQU $FFD6
+; 00 = indoor
+; 01 = cave
+; 02 = outdoor
+; this is often set to 00 in order to turn off water and flower BG tile animations
+hTilesetType EQU $FFD7
+
H_CURRENTSPRITEOFFSET EQU $FFDA ; multiple of $10
H_WHOSETURN EQU $FFF3 ; 0 on player’s turn, 1 on enemy’s turn