diff options
Diffstat (limited to 'src/wram.asm')
-rw-r--r-- | src/wram.asm | 42 |
1 files changed, 24 insertions, 18 deletions
diff --git a/src/wram.asm b/src/wram.asm index ad078c7..212d85e 100644 --- a/src/wram.asm +++ b/src/wram.asm @@ -912,39 +912,45 @@ SECTION "WRAM Engine 2", WRAM0 wTextBoxFrameType:: ; ccf3 ds $1 -wccf4:: ; ccf4 - ds $1 - -wccf5:: ; ccf5 - ds $1 - - ds $e +wVWFOrRegularFontTile:: ; ccf4 + ds $10 wcd04:: ; cd04 ds $1 -wcd05:: ; cd05 +wCurTextTile:: ; cd05 ds $1 -wcd06:: ; cd06 +; VRAM tile patterns selector for text tiles +; if wTilePatternSelector == $80 and wTilePatternSelectorCorrection == $00 -> select tiles at $8000-$8FFF +; if wTilePatternSelector == $88 and wTilePatternSelectorCorrection == $80 -> select tiles at $8800-$97FF +wTilePatternSelector:: ; cd06 ds $1 -wcd07:: ; cd07 +; complements wTilePatternSelector by correcting the VRAM tile order when $8800-$97FF is selected +; a value of $80 in wTilePatternSelectorCorrection reflects tiles $00-$7f being located after tiles $80-$ff +wTilePatternSelectorCorrection:: ; cd07 ds $1 -wcd08:: ; cd08 +; if 0, text lines are separated by a blank line +wLineSeparation:: ; cd08 ds $1 -wcd09:: ; cd09 +; line number in which text is being printed as an offset to +; the topmost line, including separator lines +wCurTextLine:: ; cd09 ds $1 -wcd0a:: ; cd0a +; how to process the current text tile +; 0: regular font | non-0: VWF +wRegularFontOrVWF:: ; cd0a ds $1 wcd0b:: ; cd0b ds $2 -wUppercaseFlag:: ; cd0d +; VWF letters become uppercase if non-0, lowercase if 0 +wUppercaseVWFLetters:: ; cd0d ds $1 ds $1 @@ -1086,12 +1092,12 @@ wce2b:: ; ce2b ds $13 -; text pointer for the first TX_RAM2 of a text +; text id for the first TX_RAM2 of a text ; prints from wDefaultText if $0000 wTxRam2:: ; cd3f ds $2 -; text pointer for the second TX_RAM2 of a text +; text id for the second TX_RAM2 of a text wTxRam2_b:: ; ce41 ds $2 @@ -1114,10 +1120,10 @@ wce49:: ; ce49 wce4a:: ; ce4a ds $1 -wce4b:: ; ce4b +wIsTextBoxLabeled:: ; ce4b ds $1 -wce4c:: ; ce4c +wTextBoxLabel:: ; ce4c ds $2 wCoinTossScreenTextID:: ; ce4e |