FANDOM

  • MasterKnight

    FE1 hacking notes

    March 15, 2017 by MasterKnight

    3CBBD

    20CFCB

    204DCC : sets Fight Speed values


    202FCD


    20E5CB


    20F0CC


    2064CC : sets Damage values

    2016CD


    203BCD


    B015

    9045 : Branch to Return if enemy is ranged but player isn't

    Enemy melee returns here:

    2070CE

    BE2003 : X = Weapon Type

    BDC3D9 : A = Weapon Range bytes (bits for 2 and 4 used)

    BE1E03 : X = Range

    F001 : Branch Melee Range +1

    4A : LSR A

    4A

    4A

    9032 : Branch to Return if other player doesn't have melee

    Both units same range:

    B93A03 : A = Net Hit

    F014

    20A9CD


    B00F

    207ECE

    D93A03

    F002

    B005

    Attack hits: A901

    994403 : $0344 = 1

    Come back here if Net Hit is 0 or if attack misses:

    B93A03 : A = Net Hit

    F014

    20A9CD

    B00F

    207ECE

    D93A03

    F002

    B005

    A901

    994603 : $0346 = 1

    Come back here if Net Hit is 0 or ? or attack misses:

    88

    3003 : Branch to Return if done

    4C3DCD : Usual redo process for P1

    6…








    Read more >
  • MasterKnight

    Branch Negative/Overflow/Carry/Zero status: MMS10000; M = Mark, S = Status

    Branch Unconditional: 10000000


    OR/AND/XOR(/ADC) A, M: 0AAX XXX1

    Add/Subtract Carry A, M: N11X XXX1

    Store/Load A, M: 10LX XXX1

    -89 is BIT A, Immediate

    Compare A, M: 110X XXX1

    -

    XXXX:

    0: DP Indexed Indirect,X (+1 byte)

    1: Stack Relative (+1 byte)

    2: Direct Page (+1 byte)

    3: DP Indirect Long (+1 byte)

    4: Immediate (+1~2 bytes)

    6: Absolute (+2 bytes):

    7: Absolute Long (+3 bytes)

    8: DP Indirect Indexed,Y (+1 byte)

    9.5: DP Indirect (+1 byte)

    9: SR Indirect Indexed,Y (+1 byte)

    10: DP Indexed,X (+1 byte)

    11: DP Indirect Long Indexed,Y (+1 byte)

    12: Absolute Indexed,Y (+2 bytes)

    14: Absolute Indexed,X (+2 bytes)

    15: Absolute Long Indexed,X (3 bytes)


    Process 0001D38B:

    E220 : Set Processor Status Bits…




    Read more >

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.