~ubuntu-branches/debian/sid/mame/sid

« back to all changes in this revision

Viewing changes to src/mame/machine/mie.c

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach, Emmanuel Kasper, Jordi Mallach
  • Date: 2012-06-05 20:02:23 UTC
  • mfrom: (0.3.1) (0.1.4)
  • Revision ID: package-import@ubuntu.com-20120605200223-gnlpogjrg6oqe9md
Tags: 0.146-1
[ Emmanuel Kasper ]
* New upstream release
* Drop patch to fix man pages section and patches to link with flac 
  and jpeg system lib: all this has been pushed upstream by Cesare Falco
* Add DM-Upload-Allowed: yes field.

[ Jordi Mallach ]
* Create a "gnu" TARGETOS stanza that defines NO_AFFINITY_NP.
* Stop setting TARGETOS to "unix" in d/rules. It should be autodetected,
  and set to the appropriate value.
* mame_manpage_section.patch: Change mame's manpage section to 6 (games),
  in the TH declaration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#define ADDRESS_MAP_MODERN
2
1
 
3
2
#include "emu.h"
4
3
#include "mie.h"
102
101
        maple_device::device_start();
103
102
        cpu = subdevice<z80_device>("mie");
104
103
        timer = timer_alloc(0);
105
 
        cpu->set_irq_callback(irq_callback_1);
 
104
        cpu->set_irq_acknowledge_callback(irq_callback_1);
106
105
        jvs = machine().device<mie_jvs_device>(jvs_name);
107
106
 
108
107
        save_item(NAME(gpiodir));
203
202
READ8_MEMBER(mie_device::gpio_r)
204
203
{
205
204
        if(gpiodir & (1 << offset))
206
 
                return gpio_name[offset] ? input_port_read(machine(), gpio_name[offset]) : 0xff;
 
205
                return gpio_name[offset] ? ioport(gpio_name[offset])->read() : 0xff;
207
206
        else
208
207
                return gpio_val[offset];
209
208
}
212
211
{
213
212
        gpio_val[offset] = data;
214
213
        if(!(gpiodir & (1 << offset)) && gpio_name[offset])
215
 
                input_port_write(machine(), gpio_name[offset], data, 0xff);
 
214
                ioport(gpio_name[offset])->write(data, 0xff);
216
215
}
217
216
 
218
217
READ8_MEMBER(mie_device::gpiodir_r)