src/emu/cpu/rsp/rsp.c
| r7697 | r7698 | |
| 185 | 185 | { |
| 186 | 186 | if (reg >= 0 && reg < 8) |
| 187 | 187 | { |
| 188 | | return (rsp->config->sp_reg_r)(rsp->program, reg, 0x00000000); |
| 188 | return (rsp->config->sp_reg_r)(rsp->device, reg, 0x00000000); |
| 189 | 189 | } |
| 190 | 190 | else if (reg >= 8 && reg < 16) |
| 191 | 191 | { |
| 192 | | return (rsp->config->dp_reg_r)(rsp->program, reg - 8, 0x00000000); |
| 192 | return (rsp->config->dp_reg_r)(rsp->device, reg - 8, 0x00000000); |
| 193 | 193 | } |
| 194 | 194 | else |
| 195 | 195 | { |
| r7697 | r7698 | |
| 201 | 201 | { |
| 202 | 202 | if (reg >= 0 && reg < 8) |
| 203 | 203 | { |
| 204 | | (rsp->config->sp_reg_w)(rsp->program, reg, data, 0x00000000); |
| 204 | (rsp->config->sp_reg_w)(rsp->device, reg, data, 0x00000000); |
| 205 | 205 | } |
| 206 | 206 | else if (reg >= 8 && reg < 16) |
| 207 | 207 | { |
| 208 | | (rsp->config->dp_reg_w)(rsp->program, reg - 8, data, 0x00000000); |
| 208 | (rsp->config->dp_reg_w)(rsp->device, reg - 8, data, 0x00000000); |
| 209 | 209 | } |
| 210 | 210 | else |
| 211 | 211 | { |