src/mess/machine/apple2.c
| r14910 | r14911 | |
| 19 | 19 | #include "devices/appldriv.h" |
| 20 | 20 | #include "imagedev/flopdrv.h" |
| 21 | 21 | #include "imagedev/cassette.h" |
| 22 | | #include "machine/ram.h" |
| 23 | 22 | #include "sound/speaker.h" |
| 24 | 23 | #include "debugger.h" |
| 25 | 24 | |
| r14910 | r14911 | |
| 204 | 203 | else |
| 205 | 204 | { |
| 206 | 205 | /* RAM */ |
| 207 | | if (end_r >= machine.device<ram_device>(RAM_TAG)->size()) |
| 208 | | end_r = machine.device<ram_device>(RAM_TAG)->size() - 1; |
| 206 | if (end_r >= state->m_ram->size()) |
| 207 | end_r = state->m_ram->size() - 1; |
| 209 | 208 | offset = meminfo.read_mem & APPLE2_MEM_MASK; |
| 210 | 209 | if (end_r >= begin) |
| 211 | | rbase = &machine.device<ram_device>(RAM_TAG)->pointer()[offset]; |
| 210 | rbase = &state->m_ram->pointer()[offset]; |
| 212 | 211 | } |
| 213 | 212 | |
| 214 | 213 | /* install the actual handlers */ |
| r14910 | r14911 | |
| 295 | 294 | else |
| 296 | 295 | { |
| 297 | 296 | /* RAM */ |
| 298 | | if (end_w >= machine.device<ram_device>(RAM_TAG)->size()) |
| 299 | | end_w = machine.device<ram_device>(RAM_TAG)->size() - 1; |
| 297 | if (end_w >= state->m_ram->size()) |
| 298 | end_w = state->m_ram->size() - 1; |
| 300 | 299 | offset = meminfo.write_mem & APPLE2_MEM_MASK; |
| 301 | 300 | if (end_w >= begin) |
| 302 | | wbase = &machine.device<ram_device>(RAM_TAG)->pointer()[offset]; |
| 301 | wbase = &state->m_ram->pointer()[offset]; |
| 303 | 302 | } |
| 304 | 303 | |
| 305 | 304 | |
| r14910 | r14911 | |
| 1093 | 1092 | //CMemory::mState |= CMemory::kVBLBar; // N: VBL' is true // FIX: MESS? |
| 1094 | 1093 | } |
| 1095 | 1094 | |
| 1096 | | return machine.device<ram_device>(RAM_TAG)->pointer()[address % machine.device<ram_device>(RAM_TAG)->size()]; // FIX: this seems to work, but is it right!? |
| 1095 | return state->m_ram->pointer()[address % machine.device<ram_device>(RAM_TAG)->size()]; // FIX: this seems to work, but is it right!? |
| 1097 | 1096 | } |
| 1098 | 1097 | |
| 1099 | 1098 | |
src/mess/includes/apple2.h
| r14910 | r14911 | |
| 11 | 11 | |
| 12 | 12 | #include "machine/a2bus.h" |
| 13 | 13 | #include "machine/applefdc.h" |
| 14 | #include "machine/ram.h" |
| 14 | 15 | |
| 15 | 16 | |
| 16 | 17 | /*************************************************************************** |
| r14910 | r14911 | |
| 111 | 112 | apple2_state(const machine_config &mconfig, device_type type, const char *tag) |
| 112 | 113 | : driver_device(mconfig, type, tag), |
| 113 | 114 | m_maincpu(*this, "maincpu"), |
| 115 | m_ram(*this, RAM_TAG), |
| 114 | 116 | m_a2bus(*this, "a2bus") |
| 115 | 117 | { } |
| 116 | 118 | |
| 117 | 119 | required_device<cpu_device> m_maincpu; |
| 120 | required_device<ram_device> m_ram; |
| 118 | 121 | required_device<a2bus_device> m_a2bus; |
| 119 | 122 | |
| 120 | 123 | UINT32 m_flags, m_flags_mask; |
src/mess/mess.mak
| r14910 | r14911 | |
| 1985 | 1985 | $(MESS_MACHINE)/egret.o: $(MESSSRC)/machine/egret.c\ |
| 1986 | 1986 | $(MESSSRC)/machine/egret.h |
| 1987 | 1987 | |
| 1988 | $(MESS_DRIVERS)/apple2.o: $(MESSSRC)/includes/apple2.h |
| 1989 | $(MESS_MACHINE)/apple2.o: $(MESSSRC)/includes/apple2.h |
| 1990 | $(MESS_VIDEO)/apple2.o: $(MESSSRC)/includes/apple2.h |
| 1991 | $(MESS_DRIVERS)/apple2gs.o: $(MESSSRC)/includes/apple2.h $(MESSSRC)/includes/apple2gs.h |
| 1992 | $(MESS_MACHINE)/apple2gs.o: $(MESSSRC)/includes/apple2.h $(MESSSRC)/includes/apple2gs.h |
| 1993 | $(MESS_VIDEO)/apple2gs.o: $(MESSSRC)/includes/apple2.h $(MESSSRC)/includes/apple2gs.h |
| 1994 | |
| 1995 | |
| 1988 | 1996 | # $(MESSSRC)/drivers/apollo.c includes m68kcpu.h and m68kcpu.h now includes m68kops.h |
| 1989 | 1997 | $(MESS_DRIVERS)/apollo.o: $(EMUSRC)/cpu/m68000/m68kcpu.h |
| 1990 | 1998 | $(MESS_MACHINE)/apollo_dbg.o: $(EMUSRC)/cpu/m68000/m68kcpu.h |