Previous 199869 Revisions Next

r18029 Wednesday 19th September, 2012 at 20:59:42 UTC by Aaron Giles
MESS fixes.
[src/mess/drivers]astrocde.c bigbord2.c p8k.c

trunk/src/mess/drivers/astrocde.c
r18028r18029
100100INPUT_CHANGED_MEMBER(astrocde_mess_state::set_write_protect)  // run when RAM expansion write protect switch is changed
101101{
102102   int ram_expansion_installed = 0, write_protect_on = 0, expansion_ram_start = 0, expansion_ram_end = 0, shadow_ram_end = 0;
103<<<<<<< .mine
104   address_space &space = field.machine().device("maincpu")->memory().space(AS_PROGRAM);
105   UINT8 *expram = field.machine().device<ram_device>("ram_tag")->pointer();
106=======
107   address_space &space = *machine().device("maincpu")->memory().space(AS_PROGRAM);
103   address_space &space = machine().device("maincpu")->memory().space(AS_PROGRAM);
108104   UINT8 *expram = machine().device<ram_device>("ram_tag")->pointer();
109>>>>>>> .r18023
110105
111106   get_ram_expansion_settings(ram_expansion_installed, write_protect_on, expansion_ram_start, expansion_ram_end, shadow_ram_end);  // passing by reference
112107
r18028r18029
325320MACHINE_RESET_MEMBER(astrocde_mess_state, astrocde)
326321{
327322    int ram_expansion_installed = 0, write_protect_on = 0, expansion_ram_start = 0, expansion_ram_end = 0, shadow_ram_end = 0;
328<<<<<<< .mine
329    address_space &space = machine.device("maincpu")->memory().space(AS_PROGRAM);
330    UINT8 *expram = machine.device<ram_device>("ram_tag")->pointer();
331=======
332    address_space &space = *machine().device("maincpu")->memory().space(AS_PROGRAM);
323    address_space &space = machine().device("maincpu")->memory().space(AS_PROGRAM);
333324    UINT8 *expram = machine().device<ram_device>("ram_tag")->pointer();
334>>>>>>> .r18023
335325    space.unmap_readwrite(0x5000, 0xffff);  // unmap any previously installed expansion RAM
336326
337327    get_ram_expansion_settings(ram_expansion_installed, write_protect_on, expansion_ram_start, expansion_ram_end, shadow_ram_end);  // passing by reference
trunk/src/mess/drivers/bigbord2.c
r18028r18029
175175
176176WRITE8_MEMBER( bigbord2_state::bigbord2_kbd_put )
177177{
178   address_space &mem = *m_maincpu->space(AS_PROGRAM);
178   address_space &mem = m_maincpu->space(AS_PROGRAM);
179179
180180   if (data)
181181   {
trunk/src/mess/drivers/p8k.c
r18028r18029
175175
176176WRITE8_MEMBER( p8k_state::kbd_put )
177177{
178   address_space &mem = *m_maincpu->space(AS_PROGRAM);
178   address_space &mem = m_maincpu->space(AS_PROGRAM);
179179   m_term_data = data;
180180   // This is a dreadful hack..
181181   // simulate interrupt by saving current pc on
r18028r18029
439439
440440WRITE8_MEMBER( p8k_state::kbd_put_16 )
441441{
442   address_space &mem = *m_maincpu->space(AS_PROGRAM);
442   address_space &mem = m_maincpu->space(AS_PROGRAM);
443443   // keyboard int handler is at 0x0700
444444   m_term_data = data;
445445   // This is another dire hack..

Previous 199869 Revisions Next


© 1997-2024 The MAME Team