summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/model1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/model1.c')
-rw-r--r--src/mame/drivers/model1.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/mame/drivers/model1.c b/src/mame/drivers/model1.c
index f9fb3804a64..196c8e7ded1 100644
--- a/src/mame/drivers/model1.c
+++ b/src/mame/drivers/model1.c
@@ -642,12 +642,17 @@ static int to_68k[FIFO_SIZE], fifo_wptr, fifo_rptr;
static READ16_HANDLER( io_r )
{
+ static const char *analognames[] = { "AN0", "AN1", "AN2", "AN3", "AN4", "AN5", "AN6", "AN7" };
+ static const char *inputnames[] = { "IN0", "IN1", "IN2" };
+
if(offset < 0x8)
- return input_port_read_indexed(machine, offset);
- if(offset < 0x10) {
+ return input_port_read(machine, analognames[offset]);
+
+ if(offset < 0x10)
+ {
offset -= 0x8;
if(offset < 3)
- return input_port_read_indexed(machine, offset+8) | 0xff00;
+ return input_port_read(machine, inputnames[offset]) | 0xff00;
return 0xff;
}