BIOSF LOADFILE: Difference between revisions

From NeoGeo Development Wiki
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…")
 
No edit summary
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== BIOSF_LOADFILE ($C00552): Load file from CD (with animation) ==
==BIOSF_LOADFILE ($C00552): Load file from CD (with animation)==


A0 points to a file information block made of:
A0 points to a file list, with entries having the following format:
*The file name, ends with 0 (32 chars buffer ?)
* The file name, ends with 0 (in 8.3 format)
*The destination bank (8bit)
* The destination bank (byte)
*Eventual padding bytes to align the destination
* Eventual padding byte to align the destination to an even address
*Destination (32bit)
* Destination (longword)


Example (?): "STAGE_2.SPR",0x02,0x00,0x1600 loads STAGE_2.SPR at $201600 in the sprite DRAM.
The list must not exceed 32 files, and must end with a 0 byte.


For FIX, Z80 (, PAT ?) and PCM files, the destination is multiplied by 2 (8bit busses).
Example:
 
<pre>
"STAGE_2.SPR"
0x02
0x00
0x00001600
</pre>
 
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 address 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]]

Latest revision as of 00:16, 15 May 2017

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

A0 points to a file list, with entries having the following format:

  • The file name, ends with 0 (in 8.3 format)
  • The destination bank (byte)
  • Eventual padding byte to align the destination to an even address
  • Destination (longword)

The list must not exceed 32 files, and must end with a 0 byte.

Example:

"STAGE_2.SPR"
0x02
0x00
0x00001600

Loads STAGE_2.SPR at $201600 in the sprite DRAM.

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

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