summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/mn10200/mn10200.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/cpu/mn10200/mn10200.c')
-rw-r--r--src/emu/cpu/mn10200/mn10200.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/emu/cpu/mn10200/mn10200.c b/src/emu/cpu/mn10200/mn10200.c
index 8fb39bc6954..1c66ae76d45 100644
--- a/src/emu/cpu/mn10200/mn10200.c
+++ b/src/emu/cpu/mn10200/mn10200.c
@@ -149,11 +149,10 @@ INLINE void mn102_change_pc(mn102_info *mn102, UINT32 pc)
INLINE mn102_info *get_safe_token(running_device *device)
{
assert(device != NULL);
- assert(device->token != NULL);
- assert(device->type == CPU);
+ assert(device->type() == CPU);
assert(cpu_get_type(device) == CPU_MN10200);
- return (mn102_info *)device->token;
+ return (mn102_info *)downcast<cpu_device *>(device)->token();
}
static void mn102_take_irq(mn102_info *mn102, int level, int group)
@@ -277,8 +276,8 @@ static CPU_INIT(mn10200)
memset(cpustate, 0, sizeof(mn102_info));
cpustate->device = device;
- cpustate->program = device->space(AS_PROGRAM);
- cpustate->io = device->space(AS_IO);
+ cpustate->program = device_memory(device)->space(AS_PROGRAM);
+ cpustate->io = device_memory(device)->space(AS_IO);
state_save_register_device_item(device, 0, cpustate->pc);
state_save_register_device_item_array(device, 0, cpustate->d);
@@ -2336,7 +2335,7 @@ static UINT32 mn10200_r(mn102_info *mn102, UINT32 adr, int type)
static CPU_SET_INFO(mn10200)
{
- mn102_info *cpustate = (device != NULL && device->token != NULL) ? get_safe_token(device) : NULL;
+ mn102_info *cpustate = (device != NULL && downcast<cpu_device *>(device)->token() != NULL) ? get_safe_token(device) : NULL;
switch (state)
{
@@ -2365,7 +2364,7 @@ static CPU_SET_INFO(mn10200)
CPU_GET_INFO( mn10200 )
{
- mn102_info *cpustate = (device != NULL && device->token != NULL) ? get_safe_token(device) : NULL;
+ mn102_info *cpustate = (device != NULL && downcast<cpu_device *>(device)->token() != NULL) ? get_safe_token(device) : NULL;
switch(state)
{
1e376948b517d221fa7b635f8a9cfda1aeecb'>a211e376948
5537bbe8a53

a211e376948

5537bbe8a53



a211e376948




5537bbe8a53

a211e376948

5537bbe8a53



a211e376948




5537bbe8a53

a211e376948

5537bbe8a53



a211e376948




5537bbe8a53

a211e376948

5537bbe8a53



a211e376948




5537bbe8a53

a211e376948

5537bbe8a53



a211e376948




5537bbe8a53

a211e376948

5537bbe8a53



a211e376948















































1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162