PAT file: Difference between revisions

From NeoGeo Development Wiki
Jump to navigation Jump to search
m (Created page with "PAT files contain structured data to patch already loaded Z80 code. They're used to replace sound samples adresses originally loaded in the Z80 address s…")
 
mNo edit summary
Line 1: Line 1:
PAT files contain structured data to patch already loaded [[Z80]] code. They're used to replace [[YM2610#ADPCM|sound samples]] adresses originally loaded in the [[Z80]] address space from [[Z80 file]]s.
PAT files contain structured data to patch already loaded [[Z80]] code. They're used to replace [[YM2610#ADPCM|sound samples]] addresses originally loaded from [[Z80 file]]s when different [[PCM file]]s are used.


*Maximum file size: ?
*Maximum file size: ?
Line 8: Line 8:
=Format=
=Format=


Blocks of 5 16bit values:
Blocks of 5, 16bit values:


*Patch address (in bytes, all the $0000~$FFFF range seems to work)
*Patch address (in bytes, all the $0000~$FFFF range seems to work)

Revision as of 08:00, 21 June 2011

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 ?