Direct Page and Stack at C2 Bank, and Other Fundamental Info
#1
I've found some fundamental information about the Direct Page, which can be changed by assembly opcodes, and thought I'd make a page for critical reference info like this:

Quote:Hatzen08
11-30-2015, 02:44 PM
RE: ASM coding - Checking battle command in use

Perhaps, can it be the direct page value? In the C2 bank, it is always zero and TDC is almost used to clear the two bytes of the A register. When the direct page is changed, it always is set back to zero afterwards.

The direct page can be different in the code in the C1 bank. You can try a TDC and check if the value returned to A is zero (two bytes). If it is not, it is the wrong value for the direct page and all opcodes related to the direct page will load the wrong value.

The user Synchisi also had a quote about the direct page changing in C2 based on code, so it's actually changed at times, apparently.



The stack address can also be defined as well--It's not just $100 - $1FF like in previous chipsets.  Does anyone know what the stack address boundaries are?
Reply


Messages In This Thread
Direct Page and Stack at C2 Bank, and Other Fundamental Info - by ReturnerScum - 03-06-2016, 01:24 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Utility Patch - Moved Ending (Free your CA bank!) DrakeyC 0 1,286 06-14-2022, 03:18 PM
Last Post: DrakeyC
  I need help with a 'mystery' code located in my project's F0 bank Marketa Lazarova 4 3,779 08-30-2021, 10:02 PM
Last Post: SilentEnigma
  Stack Bonus Physical Dmg doofenH 3 3,304 02-25-2020, 10:01 AM
Last Post: PowerPanda
  Better bank C2 disassembly 13375K37CH3R 21 22,791 03-01-2017, 05:00 PM
Last Post: madsiur
  ROM expantion and bank shifting dachschaden 2 3,666 12-31-2014, 10:45 AM
Last Post: dachschaden
  Modifying Portrait Info in FF6 Advance DarkPhoenix 6 7,607 06-11-2013, 06:59 PM
Last Post: madsiur
  C1 - C3 Disassembly Bank Help Angelo26 2 4,243 07-18-2010, 05:35 PM
Last Post: Angelo26

Forum Jump:


Users browsing this thread: 1 Guest(s)