BIOSF LOADFILE: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
|||
Line 7: | Line 7: | ||
*Destination (32bit) | *Destination (32bit) | ||
Example (?): "STAGE_2.SPR",0x02,0x00, | Example (?): "STAGE_2.SPR\0",0x02,0x00,0x00001600 loads '''STAGE_2.SPR''' at '''$201600''' in the sprite [[DRAM]]. | ||
For [[FIX file|FIX]], [[Z80 file|Z80]] (, [[PAT file|PAT]] ?) and [[PCM file|PCM]] files, the destination is multiplied by 2 (8bit busses). | For [[FIX file|FIX]], [[Z80 file|Z80]] (, [[PAT file|PAT]] ?) and [[PCM file|PCM]] files, the destination is multiplied by 2 (8bit busses). |
Revision as of 14:28, 6 February 2014
BIOSF_LOADFILE ($C00552): Load file from CD (with animation)
A0 points to a file information block made of:
- The file name, ends with 0 (16 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.