mirror of https://github.com/pret/pokecrystal.git
321 lines
6.9 KiB
NASM
321 lines
6.9 KiB
NASM
NO_ITEM EQU $00
|
|
MASTER_BALL EQU $01
|
|
ULTRA_BALL EQU $02
|
|
BRIGHTPOWDER EQU $03
|
|
GREAT_BALL EQU $04
|
|
POKE_BALL EQU $05
|
|
TOWN_MAP EQU $06
|
|
BICYCLE EQU $07
|
|
MOON_STONE EQU $08
|
|
ANTIDOTE EQU $09
|
|
BURN_HEAL EQU $0A
|
|
ICE_HEAL EQU $0B
|
|
AWAKENING EQU $0C
|
|
PARLYZ_HEAL EQU $0D
|
|
FULL_RESTORE EQU $0E
|
|
MAX_POTION EQU $0F
|
|
HYPER_POTION EQU $10
|
|
SUPER_POTION EQU $11
|
|
POTION EQU $12
|
|
ESCAPE_ROPE EQU $13
|
|
REPEL EQU $14
|
|
MAX_ELIXER EQU $15
|
|
FIRE_STONE EQU $16
|
|
THUNDERSTONE EQU $17
|
|
WATER_STONE EQU $18
|
|
ITEM_19 EQU $19
|
|
HP_UP EQU $1A
|
|
PROTEIN EQU $1B
|
|
IRON EQU $1C
|
|
CARBOS EQU $1D
|
|
LUCKY_PUNCH EQU $1E
|
|
CALCIUM EQU $1F
|
|
RARE_CANDY EQU $20
|
|
X_ACCURACY EQU $21
|
|
LEAF_STONE EQU $22
|
|
METAL_POWDER EQU $23
|
|
NUGGET EQU $24
|
|
POKE_DOLL EQU $25
|
|
FULL_HEAL EQU $26
|
|
REVIVE EQU $27
|
|
MAX_REVIVE EQU $28
|
|
GUARD_SPEC EQU $29
|
|
SUPER_REPEL EQU $2A
|
|
MAX_REPEL EQU $2B
|
|
DIRE_HIT EQU $2C
|
|
ITEM_2D EQU $2D
|
|
FRESH_WATER EQU $2E
|
|
SODA_POP EQU $2F
|
|
LEMONADE EQU $30
|
|
X_ATTACK EQU $31
|
|
ITEM_32 EQU $32
|
|
X_DEFEND EQU $33
|
|
X_SPEED EQU $34
|
|
X_SPECIAL EQU $35
|
|
COIN_CASE EQU $36
|
|
ITEMFINDER EQU $37
|
|
POKE_FLUTE EQU $38
|
|
EXP_SHARE EQU $39
|
|
OLD_ROD EQU $3A
|
|
GOOD_ROD EQU $3B
|
|
SILVER_LEAF EQU $3C
|
|
SUPER_ROD EQU $3D
|
|
PP_UP EQU $3E
|
|
ETHER EQU $3F
|
|
MAX_ETHER EQU $40
|
|
ELIXER EQU $41
|
|
RED_SCALE EQU $42
|
|
SECRETPOTION EQU $43
|
|
S_S_TICKET EQU $44
|
|
MYSTERY_EGG EQU $45
|
|
CLEAR_BELL EQU $46
|
|
SILVER_WING EQU $47
|
|
MOOMOO_MILK EQU $48
|
|
QUICK_CLAW EQU $49
|
|
PSNCUREBERRY EQU $4A
|
|
GOLD_LEAF EQU $4B
|
|
SOFT_SAND EQU $4C
|
|
SHARP_BEAK EQU $4D
|
|
PRZCUREBERRY EQU $4E
|
|
BURNT_BERRY EQU $4F
|
|
ICE_BERRY EQU $50
|
|
POISON_BARB EQU $51
|
|
KINGS_ROCK EQU $52
|
|
BITTER_BERRY EQU $53
|
|
MINT_BERRY EQU $54
|
|
RED_APRICORN EQU $55
|
|
TINYMUSHROOM EQU $56
|
|
BIG_MUSHROOM EQU $57
|
|
SILVERPOWDER EQU $58
|
|
BLU_APRICORN EQU $59
|
|
ITEM_5A EQU $5A
|
|
AMULET_COIN EQU $5B
|
|
YLW_APRICORN EQU $5C
|
|
GRN_APRICORN EQU $5D
|
|
CLEANSE_TAG EQU $5E
|
|
MYSTIC_WATER EQU $5F
|
|
TWISTEDSPOON EQU $60
|
|
WHT_APRICORN EQU $61
|
|
BLACKBELT EQU $62
|
|
BLK_APRICORN EQU $63
|
|
ITEM_64 EQU $64
|
|
PNK_APRICORN EQU $65
|
|
BLACKGLASSES EQU $66
|
|
SLOWPOKETAIL EQU $67
|
|
PINK_BOW EQU $68
|
|
STICK EQU $69
|
|
SMOKE_BALL EQU $6A
|
|
NEVERMELTICE EQU $6B
|
|
MAGNET EQU $6C
|
|
MIRACLEBERRY EQU $6D
|
|
PEARL EQU $6E
|
|
BIG_PEARL EQU $6F
|
|
EVERSTONE EQU $70
|
|
SPELL_TAG EQU $71
|
|
RAGECANDYBAR EQU $72
|
|
GS_BALL EQU $73
|
|
BLUE_CARD EQU $74
|
|
MIRACLE_SEED EQU $75
|
|
THICK_CLUB EQU $76
|
|
FOCUS_BAND EQU $77
|
|
ITEM_78 EQU $78
|
|
ENERGYPOWDER EQU $79
|
|
ENERGY_ROOT EQU $7A
|
|
HEAL_POWDER EQU $7B
|
|
REVIVAL_HERB EQU $7C
|
|
HARD_STONE EQU $7D
|
|
LUCKY_EGG EQU $7E
|
|
CARD_KEY EQU $7F
|
|
MACHINE_PART EQU $80
|
|
EGG_TICKET EQU $81
|
|
LOST_ITEM EQU $82
|
|
STARDUST EQU $83
|
|
STAR_PIECE EQU $84
|
|
BASEMENT_KEY EQU $85
|
|
PASS EQU $86
|
|
ITEM_87 EQU $87
|
|
ITEM_88 EQU $88
|
|
ITEM_89 EQU $89
|
|
CHARCOAL EQU $8A
|
|
BERRY_JUICE EQU $8B
|
|
SCOPE_LENS EQU $8C
|
|
ITEM_8D EQU $8D
|
|
ITEM_8E EQU $8E
|
|
METAL_COAT EQU $8F
|
|
DRAGON_FANG EQU $90
|
|
ITEM_91 EQU $91
|
|
LEFTOVERS EQU $92
|
|
ITEM_93 EQU $93
|
|
ITEM_94 EQU $94
|
|
ITEM_95 EQU $95
|
|
MYSTERYBERRY EQU $96
|
|
DRAGON_SCALE EQU $97
|
|
BERSERK_GENE EQU $98
|
|
ITEM_99 EQU $99
|
|
ITEM_9A EQU $9A
|
|
ITEM_9B EQU $9B
|
|
SACRED_ASH EQU $9C
|
|
HEAVY_BALL EQU $9D
|
|
FLOWER_MAIL EQU $9E
|
|
LEVEL_BALL EQU $9F
|
|
LURE_BALL EQU $A0
|
|
FAST_BALL EQU $A1
|
|
ITEM_A2 EQU $A2
|
|
LIGHT_BALL EQU $A3
|
|
FRIEND_BALL EQU $A4
|
|
MOON_BALL EQU $A5
|
|
LOVE_BALL EQU $A6
|
|
NORMAL_BOX EQU $A7
|
|
GORGEOUS_BOX EQU $A8
|
|
SUN_STONE EQU $A9
|
|
POLKADOT_BOW EQU $AA
|
|
ITEM_AB EQU $AB
|
|
UP_GRADE EQU $AC
|
|
BERRY EQU $AD
|
|
GOLD_BERRY EQU $AE
|
|
SQUIRTBOTTLE EQU $AF
|
|
ITEM_B0 EQU $B0
|
|
PARK_BALL EQU $B1
|
|
RAINBOW_WING EQU $B2
|
|
ITEM_B3 EQU $B3
|
|
BRICK_PIECE EQU $B4
|
|
SURF_MAIL EQU $B5
|
|
LITEBLUEMAIL EQU $B6
|
|
PORTRAITMAIL EQU $B7
|
|
LOVELY_MAIL EQU $B8
|
|
EON_MAIL EQU $B9
|
|
MORPH_MAIL EQU $BA
|
|
BLUESKY_MAIL EQU $BB
|
|
MUSIC_MAIL EQU $BC
|
|
MIRAGE_MAIL EQU $BD
|
|
ITEM_BE EQU $BE
|
|
TM_01 EQU $BF
|
|
TM_02 EQU $C0
|
|
TM_03 EQU $C1
|
|
TM_04 EQU $C2
|
|
ITEM_C3 EQU $C3
|
|
TM_05 EQU $C4
|
|
TM_06 EQU $C5
|
|
TM_07 EQU $C6
|
|
TM_08 EQU $C7
|
|
TM_09 EQU $C8
|
|
TM_10 EQU $C9
|
|
TM_11 EQU $CA
|
|
TM_12 EQU $CB
|
|
TM_13 EQU $CC
|
|
TM_14 EQU $CD
|
|
TM_15 EQU $CE
|
|
TM_16 EQU $CF
|
|
TM_17 EQU $D0
|
|
TM_18 EQU $D1
|
|
TM_19 EQU $D2
|
|
TM_20 EQU $D3
|
|
TM_21 EQU $D4
|
|
TM_22 EQU $D5
|
|
TM_23 EQU $D6
|
|
TM_24 EQU $D7
|
|
TM_25 EQU $D8
|
|
TM_26 EQU $D9
|
|
TM_27 EQU $DA
|
|
TM_28 EQU $DB
|
|
ITEM_DC EQU $DC
|
|
TM_29 EQU $DD
|
|
TM_30 EQU $DE
|
|
TM_31 EQU $DF
|
|
TM_32 EQU $E0
|
|
TM_33 EQU $E1
|
|
TM_34 EQU $E2
|
|
TM_35 EQU $E3
|
|
TM_36 EQU $E4
|
|
TM_37 EQU $E5
|
|
TM_38 EQU $E6
|
|
TM_39 EQU $E7
|
|
TM_40 EQU $E8
|
|
TM_41 EQU $E9
|
|
TM_42 EQU $EA
|
|
TM_43 EQU $EB
|
|
TM_44 EQU $EC
|
|
TM_45 EQU $ED
|
|
TM_46 EQU $EE
|
|
TM_47 EQU $EF
|
|
TM_48 EQU $F0
|
|
TM_49 EQU $F1
|
|
TM_50 EQU $F2
|
|
HM_01 EQU $F3
|
|
HM_02 EQU $F4
|
|
HM_03 EQU $F5
|
|
HM_04 EQU $F6
|
|
HM_05 EQU $F7
|
|
HM_06 EQU $F8
|
|
HM_07 EQU $F9
|
|
HM_08 EQU $FA
|
|
|
|
NUM_TMS EQU HM_01 - TM_01 - 2
|
|
|
|
; pockets
|
|
ITEM EQU 1
|
|
KEY_ITEM EQU 2
|
|
BALL EQU 3
|
|
TM_HM EQU 4
|
|
|
|
; item actions
|
|
CANT_SELECT EQU 1 << 6
|
|
CANT_TOSS EQU 1 << 7
|
|
|
|
; held item effects
|
|
HELD_BERRY EQU $01
|
|
HELD_LEFTOVERS EQU $03
|
|
HELD_RESTORE_PP EQU $06
|
|
HELD_CLEANSE_TAG EQU $08
|
|
|
|
HELD_HEAL_POISON EQU $0a
|
|
HELD_HEAL_FREEZE EQU $0b
|
|
HELD_HEAL_BURN EQU $0c
|
|
HELD_HEAL_SLEEP EQU $0d
|
|
HELD_HEAL_PARALYZE EQU $0e
|
|
HELD_HEAL_STATUS EQU $0f
|
|
HELD_HEAL_CONFUSION EQU $10
|
|
|
|
HELD_PREVENT_POISON EQU $14
|
|
HELD_PREVENT_BURN EQU $15
|
|
HELD_PREVENT_FREEZE EQU $16
|
|
HELD_PREVENT_SLEEP EQU $17
|
|
HELD_PREVENT_PARALYZE EQU $18
|
|
HELD_PREVENT_CONFUSE EQU $19
|
|
|
|
HELD_ATTACK_UP EQU $1f
|
|
HELD_DEFENSE_UP EQU $20
|
|
HELD_SPEED_UP EQU $21
|
|
HELD_SP_ATTACK_UP EQU $22
|
|
HELD_SP_DEFENSE_UP EQU $23
|
|
HELD_ACCURACY_UP EQU $24
|
|
HELD_EVASION_UP EQU $25
|
|
|
|
HELD_METAL_POWDER EQU $2a
|
|
|
|
HELD_NORMAL_BOOST EQU $32
|
|
HELD_FIGHTING_BOOST EQU $33
|
|
HELD_FLYING_BOOST EQU $34
|
|
HELD_POISON_BOOST EQU $35
|
|
HELD_GROUND_BOOST EQU $36
|
|
HELD_ROCK_BOOST EQU $37
|
|
HELD_BUG_BOOST EQU $38
|
|
HELD_GHOST_BOOST EQU $39
|
|
HELD_FIRE_BOOST EQU $3a
|
|
HELD_WATER_BOOST EQU $3b
|
|
HELD_GRASS_BOOST EQU $3c
|
|
HELD_ELECTRIC_BOOST EQU $3d
|
|
HELD_PSYCHIC_BOOST EQU $3e
|
|
HELD_ICE_BOOST EQU $3f
|
|
HELD_DRAGON_BOOST EQU $40
|
|
HELD_DARK_BOOST EQU $41
|
|
HELD_STEEL_BOOST EQU $42
|
|
|
|
HELD_ESCAPE EQU $48
|
|
HELD_CRITICAL_UP EQU $49
|
|
HELD_QUICK_CLAW EQU $4a
|
|
HELD_TRADE_EVOLVE EQU $4b
|
|
HELD_AMULET_COIN EQU $4c
|
|
HELD_BRIGHTPOWDER EQU $4d
|
|
HELD_FOCUS_BAND EQU $4f
|