Readd __fastcall to vez - removal broke all games

This commit is contained in:
Barry Harris 2012-01-02 21:10:21 +00:00
parent 46f5d3b181
commit 5a158bb36c
11 changed files with 47 additions and 47 deletions

View File

@ -1006,7 +1006,7 @@ static void palette_write(INT32 offset, INT32 offset2)
DrvPalette[offset3] = BurnHighCol((r << 3) | (r >> 2), (g << 3) | (g >> 2), (b << 3) | (b >> 2), 0);
}
UINT8 m72_main_read(UINT32 address)
UINT8 __fastcall m72_main_read(UINT32 address)
{
if ((address & 0xff000) == 0xb0000) {
return protection_read(address);
@ -1015,7 +1015,7 @@ UINT8 m72_main_read(UINT32 address)
return 0;
}
void m72_main_write(UINT32 address, UINT8 data)
void __fastcall m72_main_write(UINT32 address, UINT8 data)
{
if ((address & 0xff000) == 0xb0000) {
protection_write(address, data);
@ -1037,7 +1037,7 @@ void m72_main_write(UINT32 address, UINT8 data)
}
}
void rtype2_main_write(UINT32 address, UINT8 data)
void __fastcall rtype2_main_write(UINT32 address, UINT8 data)
{
if ((address & 0xff000) == 0xc8000 || (address & 0xff000) == 0xa0000 || (address & 0xff000) == 0xcc000) {
if (address & 1) data = 0xff;
@ -1074,7 +1074,7 @@ void rtype2_main_write(UINT32 address, UINT8 data)
}
}
void m72_main_write_port(UINT32 port, UINT8 data)
void __fastcall m72_main_write_port(UINT32 port, UINT8 data)
{
// bprintf (0, _T("%2.2x, %2.2x wp\n"), port, data);
@ -1155,7 +1155,7 @@ void m72_main_write_port(UINT32 port, UINT8 data)
}
}
static UINT16 poundfor_trackball_r(INT32 offset)
static __fastcall UINT16 poundfor_trackball_r(INT32 offset)
{
static INT32 prev[4],diff[4];
// static const char *const axisnames[] = { "TRACK0_X", "TRACK0_Y", "TRACK1_X", "TRACK1_Y" };
@ -1193,7 +1193,7 @@ static UINT16 poundfor_trackball_r(INT32 offset)
return 0;
}
UINT8 m72_main_read_port(UINT32 port)
UINT8 __fastcall m72_main_read_port(UINT32 port)
{
switch (port)
{

View File

@ -822,7 +822,7 @@ static inline void update_palette_entry(INT32 entry)
DrvPalette[entry / 2] = BurnHighCol(r, g, b, 0);
}
void m90_main_write(UINT32 address, UINT8 data)
void __fastcall m90_main_write(UINT32 address, UINT8 data)
{
if ((address & 0xffc00) == 0xe0000) {
DrvPalRAM[address & 0x3ff] = data;
@ -831,12 +831,12 @@ void m90_main_write(UINT32 address, UINT8 data)
}
}
UINT8 m90_main_read(UINT32 /*address*/)
UINT8 __fastcall m90_main_read(UINT32 /*address*/)
{
return 0;
}
void m90_main_write_port(UINT32 port, UINT8 data)
void __fastcall m90_main_write_port(UINT32 port, UINT8 data)
{
if ((port & ~0x0f) == 0x80) {
m90_video_control[port & 0x0f] = data;
@ -875,7 +875,7 @@ void m90_main_write_port(UINT32 port, UINT8 data)
}
}
UINT8 m90_main_read_port(UINT32 port)
UINT8 __fastcall m90_main_read_port(UINT32 port)
{
switch (port)
{

View File

@ -1239,7 +1239,7 @@ static void m92YM2151IRQHandler(INT32 nStatus)
VezRun(100);
}
UINT8 m92ReadByte(UINT32 address)
UINT8 __fastcall m92ReadByte(UINT32 address)
{
if ((address & 0xff800) == 0xf8800 )
return DrvPalRAM[ address - 0xf8800 + PalBank ];
@ -1255,7 +1255,7 @@ UINT8 m92ReadByte(UINT32 address)
return 0;
}
void m92WriteByte(UINT32 address, UINT8 data)
void __fastcall m92WriteByte(UINT32 address, UINT8 data)
{
if ((address & 0xff800) == 0xf8800 ) {
DrvPalRAM[ address - 0xf8800 + PalBank ] = data;
@ -1300,7 +1300,7 @@ void m92WriteByte(UINT32 address, UINT8 data)
}
}
UINT8 m92ReadPort(UINT32 port)
UINT8 __fastcall m92ReadPort(UINT32 port)
{
switch (port)
{
@ -1348,7 +1348,7 @@ static void set_pf_scroll(INT32 layer)
ptr->scrolly = (pf_control[layer][0] << 0) | (pf_control[layer][1] << 8);
}
void m92WritePort(UINT32 port, UINT8 data)
void __fastcall m92WritePort(UINT32 port, UINT8 data)
{
switch (port)
{
@ -1444,7 +1444,7 @@ void m92WritePort(UINT32 port, UINT8 data)
}
}
UINT8 m92SndReadByte(UINT32 address)
UINT8 __fastcall m92SndReadByte(UINT32 address)
{
if ((address & 0xfffc0) == 0xa8000) {
return iremga20_read( 0, (address & 0x0003f) / 2 );
@ -1468,7 +1468,7 @@ UINT8 m92SndReadByte(UINT32 address)
return 0;
}
void m92SndWriteByte(UINT32 address, UINT8 data)
void __fastcall m92SndWriteByte(UINT32 address, UINT8 data)
{
if ((address & 0xfffc0) == 0xa8000) {
iremga20_write( 0, (address & 0x0003f) / 2, data );

View File

@ -266,7 +266,7 @@ static void update_irq_lines()
}
}
static UINT8 seibu_main_v30_r(UINT32 offset)
static UINT8 __fastcall seibu_main_v30_r(UINT32 offset)
{
switch (offset) {
case 0x4: return sub2main[0];
@ -281,7 +281,7 @@ static UINT8 seibu_main_v30_r(UINT32 offset)
}
}
static void seibu_main_v30_w(UINT32 offset, UINT8 data)
static void __fastcall seibu_main_v30_w(UINT32 offset, UINT8 data)
{
switch (offset) {
case 0x0: main2sub[0] = data; break;
@ -320,7 +320,7 @@ INT32 raidenSynchroniseStream(INT32 nSoundRate)
return (INT64)ZetTotalCycles() * nSoundRate / 3579545;
}
UINT8 raidenReadByte(UINT32 vezAddress)
UINT8 __fastcall raidenReadByte(UINT32 vezAddress)
{
switch (vezAddress) {
case 0x0b000: return ~DrvInput[1];
@ -349,7 +349,7 @@ UINT8 raidenReadByte(UINT32 vezAddress)
return 0;
}
void raidenWriteByte(UINT32 vezAddress, UINT8 byteValue)
void __fastcall raidenWriteByte(UINT32 vezAddress, UINT8 byteValue)
{
switch (vezAddress) {
@ -398,7 +398,7 @@ void raidenWriteByte(UINT32 vezAddress, UINT8 byteValue)
}
}
UINT8 raidenAltReadByte(UINT32 vezAddress)
UINT8 __fastcall raidenAltReadByte(UINT32 vezAddress)
{
switch (vezAddress) {
case 0x0a000:
@ -427,7 +427,7 @@ UINT8 raidenAltReadByte(UINT32 vezAddress)
return 0;
}
void raidenAltWriteByte(UINT32 vezAddress, UINT8 byteValue)
void __fastcall raidenAltWriteByte(UINT32 vezAddress, UINT8 byteValue)
{
switch (vezAddress) {
@ -474,7 +474,7 @@ void raidenAltWriteByte(UINT32 vezAddress, UINT8 byteValue)
}
}
UINT8 raidenSubReadByte(UINT32 vezAddress)
UINT8 __fastcall raidenSubReadByte(UINT32 vezAddress)
{
switch (vezAddress) {
case 0x04008: {
@ -493,7 +493,7 @@ UINT8 raidenSubReadByte(UINT32 vezAddress)
return 0;
}
void raidenSubWriteByte(UINT32 vezAddress, UINT8 byteValue)
void __fastcall raidenSubWriteByte(UINT32 vezAddress, UINT8 byteValue)
{
if ((vezAddress & 0xFF000) == 0x03000 ) {
vezAddress -= 0x03000;

View File

@ -151,7 +151,7 @@ static void sync_sound_cpu()
}
}
void master_write(UINT32 address, UINT8 data)
void __fastcall master_write(UINT32 address, UINT8 data)
{
switch (address)
{
@ -180,7 +180,7 @@ void master_write(UINT32 address, UINT8 data)
}
}
UINT8 master_read(UINT32 address)
UINT8 __fastcall master_read(UINT32 address)
{
switch (address)
{
@ -220,7 +220,7 @@ static inline void palette_update_entry(INT32 entry)
DrvPalette[entry] = BurnHighCol((r<<4)|r, (g<<4)|g, (b<<4)|b, 0);
}
void slave_write(UINT32 address, UINT8 data)
void __fastcall slave_write(UINT32 address, UINT8 data)
{
if ((address & 0xff000) == 0x07000) {
DrvPalRAM[(address & 0xfff)] = data;

View File

@ -400,7 +400,7 @@ void __fastcall batsugunWriteWord(UINT32 sekAddress, UINT16 wordValue)
}
}
void batsugun_v25_write(UINT32 address, UINT8 data)
void __fastcall batsugun_v25_write(UINT32 address, UINT8 data)
{
switch (address)
{
@ -418,7 +418,7 @@ void batsugun_v25_write(UINT32 address, UINT8 data)
}
}
UINT8 batsugun_v25_read(UINT32 address)
UINT8 __fastcall batsugun_v25_read(UINT32 address)
{
switch (address)
{
@ -432,7 +432,7 @@ UINT8 batsugun_v25_read(UINT32 address)
return 0;
}
UINT8 batsugun_v25_read_port(UINT32 port)
UINT8 __fastcall batsugun_v25_read_port(UINT32 port)
{
switch (port)
{

View File

@ -460,7 +460,7 @@ void __fastcall dogyuunWriteWord(UINT32 sekAddress, UINT16 wordValue)
}
}
void dogyuun_v25_write(UINT32 address, UINT8 data)
void __fastcall dogyuun_v25_write(UINT32 address, UINT8 data)
{
switch (address)
{
@ -478,7 +478,7 @@ void dogyuun_v25_write(UINT32 address, UINT8 data)
}
}
UINT8 dogyuun_v25_read(UINT32 address)
UINT8 __fastcall dogyuun_v25_read(UINT32 address)
{
switch (address)
{
@ -492,7 +492,7 @@ UINT8 dogyuun_v25_read(UINT32 address)
return 0;
}
UINT8 dogyuun_v25_read_port(UINT32 port)
UINT8 __fastcall dogyuun_v25_read_port(UINT32 port)
{
switch (port)
{

View File

@ -208,7 +208,7 @@ void __fastcall fixeightWriteWord(UINT32 sekAddress, UINT16 wordValue)
}
}
void fixeight_v25_write(UINT32 address, UINT8 data)
void __fastcall fixeight_v25_write(UINT32 address, UINT8 data)
{
switch (address)
{
@ -226,7 +226,7 @@ void fixeight_v25_write(UINT32 address, UINT8 data)
}
}
UINT8 fixeight_v25_read(UINT32 address)
UINT8 __fastcall fixeight_v25_read(UINT32 address)
{
switch (address)
{
@ -243,7 +243,7 @@ UINT8 fixeight_v25_read(UINT32 address)
return 0;
}
UINT8 fixeight_v25_read_port(UINT32 port)
UINT8 __fastcall fixeight_v25_read_port(UINT32 port)
{
switch (port)
{
@ -254,7 +254,7 @@ UINT8 fixeight_v25_read_port(UINT32 port)
return 0;
}
void fixeight_v25_write_port(UINT32 port, UINT8 data)
void __fastcall fixeight_v25_write_port(UINT32 port, UINT8 data)
{
switch (port)
{

View File

@ -313,7 +313,7 @@ void __fastcall kbashWriteWord(UINT32 sekAddress, UINT16 wordValue)
}
}
void kbash_v25_write(UINT32 address, UINT8 data)
void __fastcall kbash_v25_write(UINT32 address, UINT8 data)
{
switch (address)
{
@ -331,7 +331,7 @@ void kbash_v25_write(UINT32 address, UINT8 data)
}
}
UINT8 kbash_v25_read(UINT32 address)
UINT8 __fastcall kbash_v25_read(UINT32 address)
{
switch (address)
{
@ -345,7 +345,7 @@ UINT8 kbash_v25_read(UINT32 address)
return 0;
}
UINT8 kbash_v25_read_port(UINT32 port)
UINT8 __fastcall kbash_v25_read_port(UINT32 port)
{
switch (port)
{

View File

@ -366,7 +366,7 @@ void __fastcall vfiveWriteWord(UINT32 sekAddress, UINT16 wordValue)
}
}
void vfive_v25_write(UINT32 address, UINT8 data)
void __fastcall vfive_v25_write(UINT32 address, UINT8 data)
{
switch (address)
{
@ -380,7 +380,7 @@ void vfive_v25_write(UINT32 address, UINT8 data)
}
}
UINT8 vfive_v25_read(UINT32 address)
UINT8 __fastcall vfive_v25_read(UINT32 address)
{
switch (address)
{
@ -391,7 +391,7 @@ UINT8 vfive_v25_read(UINT32 address)
return 0;
}
UINT8 vfive_v25_read_port(UINT32 port)
UINT8 __fastcall vfive_v25_read_port(UINT32 port)
{
switch (port)
{

View File

@ -29,16 +29,16 @@ INT32 VezMemCallback(INT32 nStart,INT32 nEnd,INT32 nMode);
INT32 VezMapArea(INT32 nStart, INT32 nEnd, INT32 nMode, UINT8 *Mem);
INT32 VezMapArea(INT32 nStart, INT32 nEnd, INT32 nMode, UINT8 *Mem1, UINT8 *Mem2);
void VezSetReadHandler(UINT8 (*)(UINT32));
void VezSetWriteHandler(void (*)(UINT32, UINT8));
void VezSetReadHandler(UINT8 (__fastcall*)(UINT32));
void VezSetWriteHandler(void (__fastcall*)(UINT32, UINT8));
#define V25_PORT_P0 0x10000
#define V25_PORT_P1 0x10002
#define V25_PORT_P2 0x10004
#define V25_PORT_PT 0x10006
void VezSetReadPort(UINT8 (*)(UINT32));
void VezSetWritePort(void (*)(UINT32, UINT8));
void VezSetReadPort(UINT8 (__fastcall*)(UINT32));
void VezSetWritePort(void (__fastcall*)(UINT32, UINT8));
void VezSetIrqCallBack(INT32 (*cb)(INT32));
INT32 VezReset();