BIOSF LOADFILE

From NeoGeo Development Wiki
Revision as of 03:44, 27 October 2015 by Furrtek (talk | contribs)
Jump to navigation Jump to search

BIOSF_LOADFILE ($C00552): Load file from CD (with animation)

A0 points to a file information block made of:

  • The file name, ends with 0 (12 byte max)
  • The destination bank (8bit)
  • Eventual padding byte to align the destination
  • Destination (32bit)

Example (?): "STAGE_2.SPR\0",0x02,0x00,0x00001600 loads STAGE_2.SPR at $201600 in the sprite DRAM.

For FIX, Z80 (, PAT ?) and PCM files, the destination is multiplied by 2 (8bit busses).

The destination memory is automatically chosen according to the file's extension.