mirror of
https://github.com/holub/mame
synced 2025-05-25 15:25:33 +03:00
A few minor syntax changes to make the Clang compiler (clang.llvm.org) happy.
MAME does not fully build with it yet so I can't do any drag-racing yet. Stay tuned.
This commit is contained in:
parent
b665e8b20d
commit
41091eeda8
@ -631,7 +631,9 @@ static WRITE8_HANDLER( nob_mcu_control_p2_w )
|
|||||||
|
|
||||||
/* bit 3 is toggled once at the start of an IRQ, and again at the end */
|
/* bit 3 is toggled once at the start of an IRQ, and again at the end */
|
||||||
if (((mcu_control ^ data) & 0x08) && !(data & 0x08))
|
if (((mcu_control ^ data) & 0x08) && !(data & 0x08))
|
||||||
;//logerror("MCU IRQ(8) toggle\n");
|
{
|
||||||
|
//logerror("MCU IRQ(8) toggle\n");
|
||||||
|
}
|
||||||
|
|
||||||
mcu_control = data;
|
mcu_control = data;
|
||||||
}
|
}
|
||||||
|
@ -1359,9 +1359,9 @@ static void DSP1_project(INT16 *input, INT16 *output)
|
|||||||
Py=shiftR(Py,E-refE);
|
Py=shiftR(Py,E-refE);
|
||||||
Pz=shiftR(Pz,E3-refE);
|
Pz=shiftR(Pz,E3-refE);
|
||||||
|
|
||||||
C11=- (Px*shared.Nx>>15);
|
C11= -(Px*shared.Nx>>15);
|
||||||
C8=- (Py*shared.Ny>>15);
|
C8= -(Py*shared.Ny>>15);
|
||||||
C9=- (Pz*shared.Nz>>15);
|
C9= -(Pz*shared.Nz>>15);
|
||||||
C12=C11+C8+C9; // this cannot overflow!
|
C12=C11+C8+C9; // this cannot overflow!
|
||||||
|
|
||||||
aux4=C12; // de-normalization with 32-bits arithmetic
|
aux4=C12; // de-normalization with 32-bits arithmetic
|
||||||
|
@ -363,7 +363,7 @@ static void draw_sprites2( running_machine* machine, bitmap_t *bitmap, const rec
|
|||||||
if (fy) fy = 0; else fy = 1;
|
if (fy) fy = 0; else fy = 1;
|
||||||
mult = 16;
|
mult = 16;
|
||||||
}
|
}
|
||||||
else mult =- 16;
|
else mult = -16;
|
||||||
|
|
||||||
while (multi >= 0)
|
while (multi >= 0)
|
||||||
{
|
{
|
||||||
|
@ -320,9 +320,9 @@ WRITE8_HANDLER( wardner_exscroll_w ) /* Extra unused video layer */
|
|||||||
{
|
{
|
||||||
switch (offset)
|
switch (offset)
|
||||||
{
|
{
|
||||||
case 01: data <<= 8;
|
case 01: //data <<= 8;
|
||||||
case 00: logerror("PC - write %04x to unknown video scroll X register\n",data); break;
|
case 00: logerror("PC - write %04x to unknown video scroll X register\n",data); break;
|
||||||
case 03: data <<= 8;
|
case 03: //data <<= 8;
|
||||||
case 02: logerror("PC - write %04x to unknown video scroll Y register\n",data); break;
|
case 02: logerror("PC - write %04x to unknown video scroll Y register\n",data); break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user