Code:
//////////////////////////////
0x64E4 - Executed after write to sprite object ID when spawning sword beam
Wrote high byte of AF (== 0xDF; AF == 0xDF80) at previous PC
At previous PC, HL = target address (was 0xC3AF)
Opcode was likely
LD (HL), A
0xE4E3 - ROM address of LD (HL), A instruction that writes object ID for sword beams
Bank 3; address is 03:64E3
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Pretty much everything after this point is the same for all versions of Link's Awakening (Deluxe or not)
0xC167 - Byte of "items disabled" flag
//////////////////////////////
Byte arrays for the 16 sprites that aren't Link:
0xC200 - X position
0xC210 - Y position
0xC280 - Mode
0xC290 - State
0xC310 - Z Position
0xC3A0 - Object ID
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
0xC51F - Byte of Z position speed
0xD477 - Byte that toggles raft ride activation using 0xF1
0xD47C - Byte of tristate of power up mode (0 = normal, 1 = piece of power, 2 = acorn)
0xD700 - Current screen tile map
0xDB00 - Byte of item assigned to B button
0xDB01 - Byte of item assigned to A button
0xDB0C - Byte of "has flippers" flag
0xDB0D - Byte of "has potion" flag
0xDB0E - Byte of "has Magnifying Glass" flag
0xDB0F - Byte of seashell count
0xDB11 - Byte of Tail Key flag
0xDB12 - Byte of Angler Key flag
0xDB13 - Byte of Face Key flag
0xDB14 - Byte of Eagle Key flag
0xDB15 - Byte of gold leaf count
0xDBCF - Byte of "has boss key" flag
0xDB43 - Byte of Power Bracelet level
0xDB44 - Byte of shield level
0xDB4E - Byte of sword level
0xDB45 - Byte of arrow count
0xDB4C - Byte of magic powder count
0xDB4D - Byte of bomb count
0xDB49 - Byte of 3 bit flags of which Ocarina songs are available (low 3 bits)
0xDB56 - Byte of "has Bow Wow" flag
0xDB73 - Byte of "has Marin" flag
0xDB7B - Byte of "has Rooster" flag
0xDB57 - Lower byte of continues used
0xDB5A - Byte of current health
0xDB5B - Byte of max health
0xDB5C - Byte of heart piece count
0xDB5D - Halfword (big endian) of rupee count
//////////////////////////////
Use 0x2 to set the following to true:
0xDB65 - Byte of "has instrument" flag
0xDB66 - Byte of "has instrument" flag
0xDB67 - Byte of "has instrument" flag
0xDB68 - Byte of "has instrument" flag
0xDB69 - Byte of "has instrument" flag
0xDB6A - Byte of "has instrument" flag
0xDB6B - Byte of "has instrument" flag
0xDB6C - Byte of "has instrument" flag
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
0xDBC7 - Byte of hitstun (recommended value 0x40)
0xDBCC - Byte of "has map" flag (use 0x50)
0xDBCD - Byte of "has compass" flag (use 0x50)
0xDBCE - Byte of "has stone slab" flag
0xDBD0 - Byte of small key count
0xDC0F - Byte of tunic selected (0 = green, 1 = red, 2 = blue)
0xFFA2 (I/O) - Link's Z position
Bank 1:
0xDB46 - Byte of "stole" flag
Shop Keeper Doesn't Kill:
910046DB