|client (0.6.2 anago only)||2010-11-19 20:00|
|kazzo (0.1.3)||2010-03-13 00:09|
Anago loads two script files: flashcore.nut and the spcified .ad file. Do not change dumpcore.nut.
.ad file must define a variable and two functions. There are 'board', 'cpu_dump()' and 'ppu_dump()'. It's possible to define another function with brief scripting.
The unit of xxx_romsize and xxx_banksize are in bytes. It is possible to change values via the commandline.
function cpu_dump(d, pagesize, banksize)
This function is assigned to the dump ROM data on CPU region. This is used for the 'loop' and 'dump' variables, as well as for fixed rombanks.
function ppu_dump(d, pagesize, banksize)
If ppu_romsize is 0, this function is unnecessary. When ppu_ramfind() returns true and charcter memory is connected RAM, this function is not called. This function is assigned to dump ROM data on PPU region. Please use this for loop and dump variable rombank.
see decsription script_common_en.
function cpu_read(d, address, length)
This function dumps program ROM data from the specified CPU region target address. When length is 0, the host will read data, but will not save any of it. Please note that this function is required when using MMC2 and MMC4 mappers.
function ppu_read(d, address, length)
This function dumps charcter ROM data from the PPU region's target address.