Final Burn Neo > FBN Development
MAME to FBA conversion code
iq_132:
The main idea of this thread is to give a reference library to anyone who wants to port MAME code to FBA.
MAME FBA conversion code
memory_region(REGION_CPU1) -> Neo68KROM
memory_region(REGION_CPU2) -> NeoZ80ROM
memory_region(REGION_GFX1) -> NeoTextROM + 0x20000
memory_region(REGION_GFX3) -> NeoSpriteROM
Here's a site that shows the different data types between C and C++
http://www.chrisdanielson.com/tutorials/win32datatypes.htm
Here's a site that can help explain some common and useful functions:
http://www.cplusplus.com/ref/cstdio/index.html
neo04:
nice info iq.. thx.. :)
robber804:
--- Quote from: iq_132 ---The main idea of this thread is to give a reference library to anyone who wants to port MAME code to FBA.
MAME FBA conversion code
memory_region(REGION_CPU1) -> Neo68KROM
memory_region(REGION_CPU2) -> NeoZ80ROM
memory_region(REGION_GFX1) -> NeoTextROM + 0x20000
memory_region(REGION_GFX3) -> NeoSpriteROM
Here's a site that shows the different data types between C and C++
http://www.chrisdanielson.com/tutorials/win32datatypes.htm
Here's a site that can help explain some common and useful functions:
http://www.cplusplus.com/ref/cstdio/index.html
--- End quote ---
Did you finally break down and decide to import some of MAME's functions into FBA? ;)
bms888:
Anyone can tell me how to change this MAME code MRA16_RAM & MWA16_RAM to FBA,thx.
In that means, how to define MRA16_RAM & MWA16_RAM in FBA?
bms888:
--- Quote from: bms888 ---Anyone can tell me how to change this MAME code MRA16_RAM & MWA16_RAM to FBA,thx.
In that means, how to define MRA16_RAM & MWA16_RAM in FBA?
--- End quote ---
I hope some can tell me how to covert this code to FBA,thx.
--- Code: ---
static UINT16 mv0_bank_ram[ 0x10/2 ];
static READ16_HANDLER( kof2003b_prot_r )
{
return mv0_bank_ram[ 1 ];
}
memory_install_read16_handler(0, ADDRESS_SPACE_PROGRAM, 0x??????, 0x??????, 0, 0, MRA16_RAM);
memory_install_write16_handler(0, ADDRESS_SPACE_PROGRAM, 0x??????, 0x??????, 0, 0, MWA16_RAM);
memory_install_read16_handler(0, ADDRESS_SPACE_PROGRAM, 0x??????, 0x??????, 0, 0, kof2003b_prot_r);
--- End code ---
then kof10th can work on FBA,^_^.
Navigation
[0] Message Index
[#] Next page
Go to full version