Author Topic: How to convert this code used in mame to that in FBA?  (Read 5171 times)

Offline lxd_bruce

  • Jr. Member
  • **
  • Posts: 75
  • Karma: +1/-0
How to convert this code used in mame to that in FBA?
« on: July 16, 2007, 06:26:19 AM »
How to convert this code used in mame to that in FBA?
 :confused:
Code: [Select]
        UINT8 *mem8 = memory_region(NEOGEO_REGION_MAIN_CPU_CARTRIDGE);
        mem8[0x006CEA] = 0x3C;
        mem8[0x006CEB] = 0x10;
        mem8[0x006CEC] = 0x01;
        mem8[0x006CED] = 0x00;
        mem8[0x0074BD] = 0x60;
        mem8[0x0074E2] = 0x1A;
        mem8[0x0074E3] = 0x60;

Offline iq_132

  • Administrator
  • *****
  • Posts: 3724
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: How to convert this code used in mame to that in FBA?
« Reply #1 on: July 16, 2007, 08:56:48 AM »
Code: [Select]
        unsigned char *mem8 = Neo68KROM;
        mem8[0x006CEA] = 0x3C;
        mem8[0x006CEB] = 0x10;
        mem8[0x006CEC] = 0x01;
        mem8[0x006CED] = 0x00;
        mem8[0x0074BD] = 0x60;
        mem8[0x0074E2] = 0x1A;
        mem8[0x0074E3] = 0x60;


Offline lxd_bruce

  • Jr. Member
  • **
  • Posts: 75
  • Karma: +1/-0
Re: How to convert this code used in mame to that in FBA?
« Reply #2 on: July 16, 2007, 11:03:38 AM »
Thx IQ

how about these?
 :confused:

Code: [Select]
UINT8 *mem8 = memory_region(NEOGEO_REGION_AUDIO_DATA_1);
Code: [Select]
UINT8 *mem8 = memory_region(NEOGEO_REGION_SPRITES);
Code: [Select]
UINT8 *mem8 = memory_region(NEOGEO_REGION_FIXED_LAYER_CARTRIDGE);



Offline iq_132

  • Administrator
  • *****
  • Posts: 3724
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: How to convert this code used in mame to that in FBA?
« Reply #3 on: July 16, 2007, 08:27:51 PM »
Code: [Select]
UINT8 *mem8 = memory_region(NEOGEO_REGION_AUDIO_DATA_1);unsigned char *mem8 = YM2610ADPCMAROM;

Code: [Select]
UINT8 *mem8 = memory_region(NEOGEO_REGION_SPRITES);unsigned char *mem8 = NeoSpriteROM;

Code: [Select]
UINT8 *mem8 = memory_region(NEOGEO_REGION_FIXED_LAYER_CARTRIDGE);unsigned char *mem8 = nNeoTextROMSize + 0x020000;
« Last Edit: July 16, 2007, 08:45:52 PM by iq_132 »


Offline lxd_bruce

  • Jr. Member
  • **
  • Posts: 75
  • Karma: +1/-0
Re: How to convert this code used in mame to that in FBA?
« Reply #4 on: July 16, 2007, 09:23:32 PM »
Thx a lot. :biggrin: