Kodewerx

Our culture has advanced beyond all that you could possibly comprehend with one hundred percent of your brain.
It is currently Sat Apr 27, 2024 8:43 pm

All times are UTC - 8 hours [ DST ]


Forum rules





Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Sun Sep 14, 2008 8:57 pm 
Offline
Komrade
Komrade

Joined: Tue Mar 27, 2007 10:18 am
Posts: 1328
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

_________________
Image


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 63 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group