PAT file

From NeoGeo Development Wiki
Revision as of 15:27, 26 June 2011 by Furrtek (talk | contribs) (2 revisions: Import from wikkii)
Jump to navigation Jump to search

PAT files contain structured data to patch already loaded Z80 code. They're used to replace sound samples addresses originally loaded from Z80 files when different PCM files are used.

  • Maximum file size: ?
  • Type code: 5
  • Loadable in: Z80 RAM
  • Banks: 1

Format

Blocks of 5, 16bit values:

  • Patch address (in bytes, all the $0000~$FFFF range seems to work)
  • First data word, written to address (/2) ?
  • Second data word, written to address+2 (/2)-1 ?
  • Third optional data word, written to address+5 (/2) ?
  • Fourth optional data word, written to address+7 (/2)-1 ?