summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/alg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/alg.c')
-rw-r--r--src/mame/drivers/alg.c29
1 files changed, 14 insertions, 15 deletions
diff --git a/src/mame/drivers/alg.c b/src/mame/drivers/alg.c
index d0370c34e1f..c787dfb0295 100644
--- a/src/mame/drivers/alg.c
+++ b/src/mame/drivers/alg.c
@@ -22,7 +22,6 @@
#include "driver.h"
#include "render.h"
-#include "deprecat.h"
#include "includes/amiga.h"
#include "machine/laserdsc.h"
#include "machine/6526cia.h"
@@ -196,52 +195,52 @@ static CUSTOM_INPUT( lightgun_holster_r )
*
*************************************/
-static void alg_cia_0_porta_w(UINT8 data)
+static void alg_cia_0_porta_w(const device_config *device, UINT8 data)
{
/* switch banks as appropriate */
- memory_set_bank(Machine, 1, data & 1);
+ memory_set_bank(device->machine, 1, data & 1);
/* swap the write handlers between ROM and bank 1 based on the bit */
if ((data & 1) == 0)
/* overlay disabled, map RAM on 0x000000 */
- memory_install_write16_handler(cpu_get_address_space(Machine->cpu[0], ADDRESS_SPACE_PROGRAM), 0x000000, 0x07ffff, 0, 0, SMH_BANK1);
+ memory_install_write16_handler(cpu_get_address_space(device->machine->cpu[0], ADDRESS_SPACE_PROGRAM), 0x000000, 0x07ffff, 0, 0, SMH_BANK1);
else
/* overlay enabled, map Amiga system ROM on 0x000000 */
- memory_install_write16_handler(cpu_get_address_space(Machine->cpu[0], ADDRESS_SPACE_PROGRAM), 0x000000, 0x07ffff, 0, 0, SMH_UNMAP);
+ memory_install_write16_handler(cpu_get_address_space(device->machine->cpu[0], ADDRESS_SPACE_PROGRAM), 0x000000, 0x07ffff, 0, 0, SMH_UNMAP);
}
-static UINT8 alg_cia_0_porta_r(void)
+static UINT8 alg_cia_0_porta_r(const device_config *device)
{
- return input_port_read(Machine, "FIRE") | 0x3f;
+ return input_port_read(device->machine, "FIRE") | 0x3f;
}
-static UINT8 alg_cia_0_portb_r(void)
+static UINT8 alg_cia_0_portb_r(const device_config *device)
{
- logerror("%06x:alg_cia_0_portb_r\n", cpu_get_pc(Machine->activecpu));
+ logerror("%06x:alg_cia_0_portb_r\n", cpu_get_pc(device->machine->activecpu));
return 0xff;
}
-static void alg_cia_0_portb_w(UINT8 data)
+static void alg_cia_0_portb_w(const device_config *device, UINT8 data)
{
/* parallel port */
- logerror("%06x:alg_cia_0_portb_w(%02x)\n", cpu_get_pc(Machine->activecpu), data);
+ logerror("%06x:alg_cia_0_portb_w(%02x)\n", cpu_get_pc(device->machine->activecpu), data);
}
-static UINT8 alg_cia_1_porta_r(void)
+static UINT8 alg_cia_1_porta_r(const device_config *device)
{
- logerror("%06x:alg_cia_1_porta_r\n", cpu_get_pc(Machine->activecpu));
+ logerror("%06x:alg_cia_1_porta_r\n", cpu_get_pc(device->machine->activecpu));
return 0xff;
}
-static void alg_cia_1_porta_w(UINT8 data)
+static void alg_cia_1_porta_w(const device_config *device, UINT8 data)
{
- logerror("%06x:alg_cia_1_porta_w(%02x)\n", cpu_get_pc(Machine->activecpu), data);
+ logerror("%06x:alg_cia_1_porta_w(%02x)\n", cpu_get_pc(device->machine->activecpu), data);
}