summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/eolith.c
diff options
context:
space:
mode:
authorGravatarGravatar Aaron Giles <aaron@aarongiles.com>2009-03-28 22:10:55 +0000
committerGravatarGravatar Aaron Giles <aaron@aarongiles.com>2009-03-28 22:10:55 +0000
commit9c63c950435a3d896cfb5d0d8cb639d55f559819 (patch) (github)
treebe1350d8272557292cc78787c62b3a38791db700 /src/mame/drivers/eolith.c
parent1c61e96910d5ccf215c64aad8ea70e35da719bae (diff)
downloadmame-9c63c950435a3d896cfb5d0d8cb639d55f559819.tar.bz2
mame-9c63c950435a3d896cfb5d0d8cb639d55f559819.zip
Cleanups and version bump.mame0130u2
Diffstat (limited to 'src/mame/drivers/eolith.c')
-rw-r--r--src/mame/drivers/eolith.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mame/drivers/eolith.c b/src/mame/drivers/eolith.c
index eced5c61e84..5bebb90f6d4 100644
--- a/src/mame/drivers/eolith.c
+++ b/src/mame/drivers/eolith.c
@@ -122,20 +122,20 @@ static WRITE32_HANDLER( systemcontrol_w )
}
static READ32_HANDLER( hidctch3_pen1_r )
-{
+{
//320 x 240
int xpos = input_port_read(space->machine, "PEN_X_P1");
int ypos = input_port_read(space->machine, "PEN_Y_P1");
-
+
return xpos + (ypos*168*2);
}
static READ32_HANDLER( hidctch3_pen2_r )
-{
+{
//320 x 240
int xpos = input_port_read(space->machine, "PEN_X_P2");
int ypos = input_port_read(space->machine, "PEN_Y_P2");
-
+
return xpos + (ypos*168*2);
}
@@ -273,7 +273,7 @@ static INPUT_PORTS_START( hidctch3 )
PORT_START("PEN_Y_P1")
PORT_BIT( 0xffff, 0, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_MINMAX(0,119) PORT_SENSITIVITY(25) PORT_KEYDELTA(1) PORT_PLAYER(1)
-
+
PORT_START("PEN_X_P2")
PORT_BIT( 0xffff, 0, IPT_LIGHTGUN_X ) PORT_CROSSHAIR(X, 1.0, 0.0, 0) PORT_MINMAX(0,159) PORT_SENSITIVITY(25) PORT_KEYDELTA(1) PORT_PLAYER(2)
@@ -365,9 +365,9 @@ MACHINE_DRIVER_END
-/*
+/*
-Iron Fortress
+Iron Fortress
Eolith, 1998
This game runs on hardware that looks exactly like the Gradation 2D PCB
@@ -1032,17 +1032,17 @@ static DRIVER_INIT( hidctch2 )
}
static DRIVER_INIT( hidctch3 )
-{
+{
memory_install_write32_handler(cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM), 0xfc200000, 0xfc200003, 0, 0, SMH_NOP); // this generates pens vibration
-
+
// It is not clear why the first reads are needed too
-
+
memory_install_read32_handler(cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM), 0xfce00000, 0xfce00003, 0, 0, hidctch3_pen1_r);
memory_install_read32_handler(cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM), 0xfce80000, 0xfce80003, 0, 0, hidctch3_pen1_r);
-
+
memory_install_read32_handler(cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM), 0xfcf00000, 0xfcf00003, 0, 0, hidctch3_pen2_r);
memory_install_read32_handler(cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM), 0xfcf80000, 0xfcf80003, 0, 0, hidctch3_pen2_r);
-
+
init_eolith_speedup(machine);
}