BIOSF LOADFILE: Difference between revisions
Jump to navigation
Jump to search
m (Created page with "== BIOSF_LOADFILE ($C00552): Load file from CD (with animation) == A0 points to a file information block made of: *The file name, ends with 0 (32 chars buffer ?) *The destinatio…") |
mNo edit summary |
||
Line 4: | Line 4: | ||
*The file name, ends with 0 (32 chars buffer ?) | *The file name, ends with 0 (32 chars buffer ?) | ||
*The destination bank (8bit) | *The destination bank (8bit) | ||
*Eventual padding | *Eventual padding byte to align the destination | ||
*Destination (32bit) | *Destination (32bit) | ||
Example (?): "STAGE_2.SPR",0x02,0x00,0x1600 loads STAGE_2.SPR at $201600 in the sprite DRAM. | Example (?): "STAGE_2.SPR",0x02,0x00,0x1600 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). | For [[FIX file|FIX]], [[Z80 file|Z80]] (, [[PAT file|PAT]] ?) and [[PCM file|PCM]] files, the destination is multiplied by 2 (8bit busses). | ||
The destination memory is automatically chosen according to the file's extension. | The destination memory is automatically chosen according to the file's extension. | ||
[[Category:BIOS calls]] | [[Category:BIOS calls]] |
Revision as of 06:09, 23 May 2011
BIOSF_LOADFILE ($C00552): Load file from CD (with animation)
A0 points to a file information block made of:
- The file name, ends with 0 (32 chars buffer ?)
- The destination bank (8bit)
- Eventual padding byte to align the destination
- Destination (32bit)
Example (?): "STAGE_2.SPR",0x02,0x00,0x1600 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.