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

« back to all changes in this revision

Viewing changes to src/emu/machine/k056230.c

  • Committer: Bazaar Package Importer
  • Author(s): Jordi Mallach, Emmanuel Kasper, Félix Arreola Rodríguez, Jordi Mallach
  • Date: 2011-05-11 21:06:50 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110511210650-jizvh8a6x117y9hr
Tags: 0.142-1
[ Emmanuel Kasper ]
* New upstream release
* Set NOWERROR=1 to allow compiling with gcc-4.6
* Remove fix_powerpc_build.patch, as upstream has taken it in this release
* Add gnome-video-arcade front end as a suggested package

[ Félix Arreola Rodríguez ]
* Add kfreebsd-build.patch to quilt series, to fix build on kfreebsd

[ Jordi Mallach ]
* Remove unneeded and bogus addition of --with-quilt to the dh invocation.
* Add Cesare Falco (long time Ubuntu maintainer) to Uploaders, and wrap
  them into multiple lines.

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
 
75
75
        m_is_thunderh = m_config.m_is_thunderh;
76
76
 
77
 
        m_ram = auto_alloc_array(&m_machine, UINT32, 0x2000);
 
77
        m_ram = auto_alloc_array(m_machine, UINT32, 0x2000);
78
78
 
79
 
        state_save_register_device_item_pointer(this, 0, m_ram, 0x2000);
 
79
        save_pointer(NAME(m_ram), 0x2000);
80
80
}
81
81
 
82
82
 
90
90
                }
91
91
        }
92
92
 
93
 
//  mame_printf_debug("k056230_r: %d at %08X\n", offset, cpu_get_pc(space->cpu));
 
93
//  mame_printf_debug("k056230_r: %d at %08X\n", offset, cpu_get_pc(&space->device()));
94
94
 
95
95
        return 0;
96
96
}
104
104
{
105
105
        if(m_cpu)
106
106
        {
107
 
                cpu_set_input_line(m_cpu, INPUT_LINE_IRQ2, CLEAR_LINE);
 
107
                device_set_input_line(m_cpu, INPUT_LINE_IRQ2, CLEAR_LINE);
108
108
        }
109
109
}
110
110
 
126
126
                                {
127
127
                                        if(m_cpu)
128
128
                                        {
129
 
                                                cpu_set_input_line(m_cpu, INPUT_LINE_IRQ2, ASSERT_LINE);
 
129
                                                device_set_input_line(m_cpu, INPUT_LINE_IRQ2, ASSERT_LINE);
130
130
                                        }
131
 
                                        timer_set(&m_machine, ATTOTIME_IN_USEC(10), (void*)this, 0, network_irq_clear_callback);
 
131
                                        m_machine.scheduler().timer_set(attotime::from_usec(10), FUNC(network_irq_clear_callback), 0, (void*)this);
132
132
                                }
133
133
                        }
134
134
//          else
135
 
//              cpu_set_input_line(k056230->cpu, INPUT_LINE_IRQ2, CLEAR_LINE);
 
135
//              device_set_input_line(k056230->cpu, INPUT_LINE_IRQ2, CLEAR_LINE);
136
136
                        break;
137
137
                }
138
138
                case 2:         // Sub ID register
140
140
                        break;
141
141
                }
142
142
        }
143
 
//  mame_printf_debug("k056230_w: %d, %02X at %08X\n", offset, data, cpu_get_pc(space->cpu));
 
143
//  mame_printf_debug("k056230_w: %d, %02X at %08X\n", offset, data, cpu_get_pc(&space->device()));
144
144
}
145
145
 
146
146
READ32_DEVICE_HANDLER_TRAMPOLINE(k056230, lanc_ram_r)
147
147
{
148
 
        //mame_printf_debug("LANC_RAM_r: %08X, %08X at %08X\n", offset, mem_mask, cpu_get_pc(space->cpu));
 
148
        //mame_printf_debug("LANC_RAM_r: %08X, %08X at %08X\n", offset, mem_mask, cpu_get_pc(&space->device()));
149
149
        return m_ram[offset & 0x7ff];
150
150
}
151
151
 
152
152
WRITE32_DEVICE_HANDLER_TRAMPOLINE(k056230, lanc_ram_w)
153
153
{
154
 
        //mame_printf_debug("LANC_RAM_w: %08X, %08X, %08X at %08X\n", data, offset, mem_mask, cpu_get_pc(space->cpu));
 
154
        //mame_printf_debug("LANC_RAM_w: %08X, %08X, %08X at %08X\n", data, offset, mem_mask, cpu_get_pc(&space->device()));
155
155
        COMBINE_DATA(m_ram + (offset & 0x7ff));
156
156
}