src/emu/cpu/m68000/m68k_in.c
| r13165 | r13166 | |
| 215 | 215 | } |
| 216 | 216 | ostruct++; |
| 217 | 217 | } |
| 218 | while(ostruct->mask == 0xffd8) |
| 219 | { |
| 220 | for(i = 0;i < 2;i++) |
| 221 | { |
| 222 | for(j = 0;j < 8;j++) |
| 223 | { |
| 224 | m68ki_set_one(ostruct->match | (i << 5) | j, ostruct); |
| 225 | } |
| 226 | } |
| 227 | ostruct++; |
| 228 | } |
| 218 | 229 | while(ostruct->mask == 0xfff0) |
| 219 | 230 | { |
| 220 | 231 | for(i = 0;i <= 0x0f;i++) |
| r13165 | r13166 | |
| 238 | 249 | m68ki_set_one(ostruct->match, ostruct); |
| 239 | 250 | ostruct++; |
| 240 | 251 | } |
| 252 | |
| 253 | // if we fell all the way through with a non-zero mask, the opcode table wasn't built properly |
| 254 | if (ostruct->mask != 0) |
| 255 | { |
| 256 | fatalerror("m68ki_build_opcode_table: unhandled opcode mask %x (match %x), m68k core will not function!\n", ostruct->mask, ostruct->match); |
| 257 | } |
| 241 | 258 | } |
| 242 | 259 | |
| 243 | 260 | |
| r13165 | r13166 | |
| 744 | 761 | pea 32 . . 0100100001...... A..DXWLdx. U U U U U U U 6 6 5 5 5 5 5 |
| 745 | 762 | pflush 32 . . 1111010100011000 .......... . . . . S S . . . . . 4 4 4 TODO: correct timing |
| 746 | 763 | pmmu 32 . . 1111000......... .......... . . S S S S S . . 8 8 8 8 8 |
| 764 | ptest 32 . . 1111010101.01... .......... . . . . S . . . . . . 8 . . |
| 747 | 765 | reset 0 . . 0100111001110000 .......... S S S S S S S 0 0 0 0 0 0 0 |
| 748 | 766 | ror 8 s . 1110...000011... .......... U U U U U U U 6 6 8 8 8 8 8 |
| 749 | 767 | ror 16 s . 1110...001011... .......... U U U U U U U 6 6 8 8 8 8 8 |
| r13165 | r13166 | |
| 8208 | 8226 | } |
| 8209 | 8227 | } |
| 8210 | 8228 | |
| 8229 | M68KMAKE_OP(ptest, 32, ., .) |
| 8230 | { |
| 8231 | if ((CPU_TYPE_IS_040_PLUS((mc68kcpu)->cpu_type)) && ((mc68kcpu)->has_pmmu)) |
| 8232 | { |
| 8233 | logerror("68040: unhandled PTEST\n"); |
| 8234 | return; |
| 8235 | } |
| 8236 | else |
| 8237 | { |
| 8238 | m68ki_exception_1111(mc68kcpu); |
| 8239 | } |
| 8240 | } |
| 8241 | |
| 8211 | 8242 | M68KMAKE_OP(reset, 0, ., .) |
| 8212 | 8243 | { |
| 8213 | 8244 | if((mc68kcpu)->s_flag) |