Difference between revisions of "Routine Locations"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Clearing page to lessen the number of pages that need to be updated in future.)
Tag: Replaced
m (filling out the kernel/bios routine pages, whether or not they get filled)
Line 46: Line 46:
  
 
== PSX BIOS ==
 
== PSX BIOS ==
  000000a0: [[Jump to 0x5c4]] (Bios call - First table)
+
  000000a0: [[Jump to 0x5c4]] (Bios call - First table) --> [[Bios call A]]
  000000b0: (Bios call - Second table)
+
  000000b0: (Bios call - Second table) --> [[Bios call B]]
  000000c0: (Bios call - Third table)
+
  000000c0: (Bios call - Third table) --> [[Bios call C]]
 +
000005c4: [[Bios A]]
 +
000005e0: [[Bios B]]
 +
00000600: [[Bios C]]
 +
00002958: [[A(0x00) open]] also B(0x32)
 +
00002a64: [[A(0x01) lseek]] also B(0x33)
 +
00002b28: [[A(0x02) read]] also B(0x34)
 +
00002c94: [[A(0x03) write]] also B(0x35)
 +
00002e00: [[A(0x04) close]] also B(0x36)
 +
00002efc: [[A(0x05) ioctl]] also B(0x37)
 +
00003000: [[A(0x06) exit]] also B(0x38)
 +
0000346c: [[A(0x07) isatty]] also B(0x39)
 +
00004024: [[A(0x08) getc]] also B(0x3a)
 +
00004134: [[A(0x09) putc]] also B(0x3b)
 +
...
 +
07c02240: [[A(0x13) setjmp]]
 +
07c0227c: [[A(0x14) longjmp]]
 +
07c022c0: [[A(0x0a) todigit]]
 +
07c02590: [[A(0x0b) atof]] Doesn't work!
 +
07c025b0: [[A(0x0c) strtoul]]
 +
07c02738: [[A(0x0d) strtol]]
 +
07c02918: [[A(0x0e) abs]]
 +
07c02934: [[A(0x0f) labs]]
 +
07c02950: [[A(0x10) atoi]]
 +
07c02af0: [[A(0x11) atol]]
 +
07c02b10: [[A(0x12) atob]]
 +
07c03190: [[A(0x15) strcat]]
 +
07c03200: [[A(0x16) strncat]]
 +
07c03288: [[A(0x17) strcmp]]
 +
07c03310: [[A(0x18) strncmp]]
 +
07c033c8: [[A(0x19) strcpy]]
 +
07c03418: [[A(0x1a) strncpy]]
 +
07c03494: [[A(0x1b) strlen]]
 +
07c034d0: [[A(0x1c) index]]
 +
07c03514: [[A(0x1d) rindex]]
 +
07c0357c: [[A(0x1e) strchr]]
 +
07c035c0: [[A(0x1f) strrchr]]
 +
...

Revision as of 12:51, 21 September 2024

Here is a list of Routine locations in RAM. To view the actual code of the routine follow the link under it.

If you add routines PLEASE keep them in order. When unfinished routines are deciphered they'll be inserted in the correct location. If you know the return locations of the routine, please link to them under the routine code. See "Defense Up" for an example.

Thanks!

 Main Routine Locations:

RAM -> File
   0x00F800 -> SCUS_942.21
   0x067000 -> WLDCORE.BIN
   0x067000 -> BATTLE.BIN
   0x067000 -> OPEN.BIN
   0x0E0000 -> WORLD.BIN
   0x1BF000 -> ATTACK.OUT
   0x1BF000 -> REQUIRE.OUT
   0x1BF000 -> OPTION.OUT
   0x1BF000 -> ETC.OUT
   0x1BF000 -> EQUIP.OUT
   0x1BF000 -> CARD.OUT
   0x1BF000 -> BUNIT.OUT
   0x1DF000 -> JOBSTTS.OUT
   0x1DF000 -> HELPMENU.OUT
   0x1DF000 -> SP2 + effects + other.
Main Data Locations:

RAM -> File
   0x00F800 -> SCUS_942.21
   0x067000 -> WLDCORE.BIN
   0x067000 -> BATTLE.BIN
   0x067000 -> OPEN.BIN
   0x0E0000 -> WORLD.BIN
   0x1BF000 -> ATTACK.OUT
   0x1BF000 -> REQUIRE.OUT
   0x1BF000 -> OPTION.OUT
   0x1BF000 -> ETC.OUT
   0x1BF000 -> EQUIP.OUT
   0x1BF000 -> CARD.OUT
   0x1BF000 -> BUNIT.OUT
   0x1DF000 -> JOBSTTS.OUT
   0x1DF000 -> HELPMENU.OUT
   0x1DF000 -> SP2 + effects + other.


PSX BIOS

000000a0: Jump to 0x5c4 (Bios call - First table) --> Bios call A
000000b0: (Bios call - Second table) --> Bios call B
000000c0: (Bios call - Third table) --> Bios call C
000005c4: Bios A
000005e0: Bios B
00000600: Bios C
00002958: A(0x00) open also B(0x32)
00002a64: A(0x01) lseek also B(0x33)
00002b28: A(0x02) read also B(0x34)
00002c94: A(0x03) write also B(0x35)
00002e00: A(0x04) close also B(0x36)
00002efc: A(0x05) ioctl also B(0x37)
00003000: A(0x06) exit also B(0x38)
0000346c: A(0x07) isatty also B(0x39)
00004024: A(0x08) getc also B(0x3a)
00004134: A(0x09) putc also B(0x3b)
...
07c02240: A(0x13) setjmp
07c0227c: A(0x14) longjmp
07c022c0: A(0x0a) todigit
07c02590: A(0x0b) atof Doesn't work!
07c025b0: A(0x0c) strtoul
07c02738: A(0x0d) strtol
07c02918: A(0x0e) abs
07c02934: A(0x0f) labs
07c02950: A(0x10) atoi
07c02af0: A(0x11) atol
07c02b10: A(0x12) atob
07c03190: A(0x15) strcat
07c03200: A(0x16) strncat
07c03288: A(0x17) strcmp
07c03310: A(0x18) strncmp
07c033c8: A(0x19) strcpy
07c03418: A(0x1a) strncpy
07c03494: A(0x1b) strlen
07c034d0: A(0x1c) index
07c03514: A(0x1d) rindex
07c0357c: A(0x1e) strchr
07c035c0: A(0x1f) strrchr
...