More comments for constant<->table correspondences

This commit is contained in:
Remy Oukaour 2017-12-22 23:08:55 -05:00
parent 14a244ad3a
commit daa071451d
2 changed files with 5 additions and 2 deletions

View File

@ -27,7 +27,7 @@ ITEM_NAME_LENGTH EQU 13
TRAINER_CLASS_NAME_LENGTH EQU 13 TRAINER_CLASS_NAME_LENGTH EQU 13
NAME_LENGTH_JAPANESE EQU 6 NAME_LENGTH_JAPANESE EQU 6
; GetName types (see home.asm) ; GetName types (see home/names.asm)
PKMN_NAME EQU 1 PKMN_NAME EQU 1
MOVE_NAME EQU 2 MOVE_NAME EQU 2
; dummied out EQU 3 ; dummied out EQU 3
@ -44,12 +44,13 @@ const_value set 5
const PRINTNUM_RIGHTALIGN_F ; 6 const PRINTNUM_RIGHTALIGN_F ; 6
const PRINTNUM_LEADINGZEROS_F ; 7 const PRINTNUM_LEADINGZEROS_F ; 7
; PrintNum arguments (see engine/printnum.asm)
PRINTNUM_MONEY EQU 1 << PRINTNUM_MONEY_F PRINTNUM_MONEY EQU 1 << PRINTNUM_MONEY_F
PRINTNUM_RIGHTALIGN EQU 1 << PRINTNUM_RIGHTALIGN_F PRINTNUM_RIGHTALIGN EQU 1 << PRINTNUM_RIGHTALIGN_F
PRINTNUM_LEADINGZEROS EQU 1 << PRINTNUM_LEADINGZEROS_F PRINTNUM_LEADINGZEROS EQU 1 << PRINTNUM_LEADINGZEROS_F
; movement ; DoPlayerMovement.DoStep arguments (see engine/player_movement.asm)
const_def const_def
const STEP_SLOW ; 0 const STEP_SLOW ; 0
const STEP_WALK ; 1 const STEP_WALK ; 1
@ -61,6 +62,7 @@ PRINTNUM_LEADINGZEROS EQU 1 << PRINTNUM_LEADINGZEROS_F
const STEP_WALK_IN_PLACE ; 7 const STEP_WALK_IN_PLACE ; 7
; hMenuReturn
HMENURETURN_SCRIPT EQU %10000000 HMENURETURN_SCRIPT EQU %10000000
HMENURETURN_ASM EQU %11111111 HMENURETURN_ASM EQU %11111111

View File

@ -1,4 +1,5 @@
NamesPointers:: ; 33ab NamesPointers:: ; 33ab
; entries correspond to GetName constants (see constants/misc_constants.asm)
dba PokemonNames dba PokemonNames
dba MoveNames dba MoveNames
dbw 0, 0 dbw 0, 0