src/emu/cpu/z8000/z8000.c
| r15139 | r15140 | |
| 195 | 195 | INLINE UINT16 RDMEM_W(z8000_state *cpustate, UINT32 addr) |
| 196 | 196 | { |
| 197 | 197 | addr &= ~1; |
| 198 | /* hack for m20 driver: BIOS accesses 0x7f0000 and expects a segmentation violation */ |
| 199 | if (addr >= 0x7f0000) { |
| 200 | cpustate->irq_req = Z8000_SEGTRAP; |
| 201 | return 0xffff; |
| 202 | } |
| 198 | 203 | return cpustate->program->read_word(addr); |
| 199 | 204 | } |
| 200 | 205 | |
| r15139 | r15140 | |
| 288 | 293 | { |
| 289 | 294 | switch ((type >> 8) & 255) |
| 290 | 295 | { |
| 296 | case Z8000_EPU >> 8: |
| 297 | if (cpustate->irq_srv >= Z8000_EPU) |
| 298 | return; |
| 299 | cpustate->irq_req = type; |
| 300 | break; |
| 291 | 301 | case Z8000_TRAP >> 8: |
| 292 | 302 | if (cpustate->irq_srv >= Z8000_TRAP) |
| 293 | 303 | return; /* double TRAP.. very bad :( */ |
| r15139 | r15140 | |
| 332 | 342 | PUSHW(cpustate, SP, cpustate->pc); /* save current cpustate->pc */ \ |
| 333 | 343 | } while (0) |
| 334 | 344 | |
| 335 | | #define SET_PC(VEC) (cpustate->device->type() == Z8001 ? segmented_addr(RDMEM_L(cpustate, VEC)) : (RDMEM_W(cpustate, VEC))) |
| 345 | #define GET_PC(VEC) (cpustate->device->type() == Z8001 ? segmented_addr(RDMEM_L(cpustate, VEC + 4)) : RDMEM_W(cpustate, VEC + 2)) |
| 346 | #define GET_FCW(VEC) (cpustate->device->type() == Z8001 ? RDMEM_W(cpustate, VEC + 2) : RDMEM_W(cpustate, VEC)) |
| 336 | 347 | |
| 337 | 348 | |
| 338 | 349 | INLINE void Interrupt(z8000_state *cpustate) |
| r15139 | r15140 | |
| 352 | 363 | } |
| 353 | 364 | |
| 354 | 365 | /* trap ? */ |
| 366 | if (cpustate->irq_req & Z8000_EPU) |
| 367 | { |
| 368 | CHANGE_FCW(cpustate, fcw | F_S_N);/* swap to system stack */ |
| 369 | PUSH_PC(); |
| 370 | PUSHW(cpustate, SP, fcw); /* save current cpustate->fcw */ |
| 371 | PUSHW(cpustate, SP, cpustate->irq_req); /* save interrupt/trap type tag */ |
| 372 | cpustate->irq_srv = cpustate->irq_req; |
| 373 | cpustate->irq_req &= ~Z8000_EPU; |
| 374 | CHANGE_FCW(cpustate, GET_FCW(EPU)); |
| 375 | cpustate->pc = GET_PC(EPU); |
| 376 | LOG(("Z8K '%s' ext instr trap $%04x\n", cpustate->device->tag(), cpustate->pc)); |
| 377 | } |
| 378 | else |
| 355 | 379 | if (cpustate->irq_req & Z8000_TRAP) |
| 356 | 380 | { |
| 357 | 381 | CHANGE_FCW(cpustate, fcw | F_S_N);/* swap to system stack */ |
| r15139 | r15140 | |
| 360 | 384 | PUSHW(cpustate, SP, cpustate->irq_req); /* save interrupt/trap type tag */ |
| 361 | 385 | cpustate->irq_srv = cpustate->irq_req; |
| 362 | 386 | cpustate->irq_req &= ~Z8000_TRAP; |
| 363 | | cpustate->pc = SET_PC(TRAP); |
| 364 | | LOG(("Z8K '%s' trap $%04x\n", cpustate->device->tag(), cpustate->pc)); |
| 387 | CHANGE_FCW(cpustate, GET_FCW(TRAP)); |
| 388 | cpustate->pc = GET_PC(TRAP); |
| 389 | LOG(("Z8K '%s' priv instr trap $%04x\n", cpustate->device->tag(), cpustate->pc)); |
| 365 | 390 | } |
| 366 | 391 | else |
| 367 | 392 | if (cpustate->irq_req & Z8000_SYSCALL) |
| r15139 | r15140 | |
| 372 | 397 | PUSHW(cpustate, SP, cpustate->irq_req); /* save interrupt/trap type tag */ |
| 373 | 398 | cpustate->irq_srv = cpustate->irq_req; |
| 374 | 399 | cpustate->irq_req &= ~Z8000_SYSCALL; |
| 375 | | cpustate->pc = SET_PC(SYSCALL); |
| 400 | CHANGE_FCW(cpustate, GET_FCW(SYSCALL)); |
| 401 | cpustate->pc = GET_PC(SYSCALL); |
| 376 | 402 | LOG(("Z8K '%s' syscall $%04x\n", cpustate->device->tag(), cpustate->pc)); |
| 377 | 403 | } |
| 378 | 404 | else |
| r15139 | r15140 | |
| 384 | 410 | PUSHW(cpustate, SP, cpustate->irq_req); /* save interrupt/trap type tag */ |
| 385 | 411 | cpustate->irq_srv = cpustate->irq_req; |
| 386 | 412 | cpustate->irq_req &= ~Z8000_SEGTRAP; |
| 387 | | cpustate->pc = SET_PC(SEGTRAP); |
| 413 | CHANGE_FCW(cpustate, GET_FCW(SEGTRAP)); |
| 414 | cpustate->pc = GET_PC(SEGTRAP); |
| 388 | 415 | LOG(("Z8K '%s' segtrap $%04x\n", cpustate->device->tag(), cpustate->pc)); |
| 389 | 416 | } |
| 390 | 417 | else |
| r15139 | r15140 | |
| 395 | 422 | PUSHW(cpustate, SP, fcw); /* save current cpustate->fcw */ |
| 396 | 423 | PUSHW(cpustate, SP, cpustate->irq_req); /* save interrupt/trap type tag */ |
| 397 | 424 | cpustate->irq_srv = cpustate->irq_req; |
| 398 | | fcw = RDMEM_W(cpustate, NMI); |
| 399 | | cpustate->pc = RDMEM_W(cpustate, NMI + 2); |
| 425 | cpustate->pc = RDMEM_W(cpustate, NMI); |
| 400 | 426 | cpustate->irq_req &= ~Z8000_NMI; |
| 401 | | CHANGE_FCW(cpustate, fcw); |
| 402 | | cpustate->pc = SET_PC(NMI); |
| 427 | CHANGE_FCW(cpustate, GET_FCW(NMI)); |
| 428 | cpustate->pc = GET_PC(NMI); |
| 403 | 429 | LOG(("Z8K '%s' NMI $%04x\n", cpustate->device->tag(), cpustate->pc)); |
| 404 | 430 | } |
| 405 | 431 | else |
| r15139 | r15140 | |
| 410 | 436 | PUSHW(cpustate, SP, fcw); /* save current cpustate->fcw */ |
| 411 | 437 | PUSHW(cpustate, SP, cpustate->irq_req); /* save interrupt/trap type tag */ |
| 412 | 438 | cpustate->irq_srv = cpustate->irq_req; |
| 413 | | fcw = RDMEM_W(cpustate, NVI); |
| 414 | | cpustate->pc = SET_PC(NVI + 2); //RDMEM_W(cpustate, NVI + 2); |
| 439 | cpustate->pc = GET_PC(NVI); //RDMEM_W(cpustate, NVI + 2); |
| 415 | 440 | cpustate->irq_req &= ~Z8000_NVI; |
| 416 | | CHANGE_FCW(cpustate, fcw); |
| 441 | CHANGE_FCW(cpustate, GET_FCW(NVI)); |
| 417 | 442 | LOG(("Z8K '%s' NVI $%04x\n", cpustate->device->tag(), cpustate->pc)); |
| 418 | 443 | } |
| 419 | 444 | else |
| r15139 | r15140 | |
| 424 | 449 | PUSHW(cpustate, SP, fcw); /* save current cpustate->fcw */ |
| 425 | 450 | PUSHW(cpustate, SP, cpustate->irq_req); /* save interrupt/trap type tag */ |
| 426 | 451 | cpustate->irq_srv = cpustate->irq_req; |
| 427 | | fcw = RDMEM_W(cpustate, cpustate->irq_vec); |
| 428 | | cpustate->pc = SET_PC(VEC00 + (cpustate->device->type() == Z8001 ? 4 : 2) * (cpustate->irq_req & 0xff)); //RDMEM_W(cpustate, VEC00 + 2 * (cpustate->irq_req & 0xff)); |
| 452 | cpustate->pc = RDMEM_W(cpustate, VEC00 + (cpustate->device->type() == Z8001 ? 4 : 2) * (cpustate->irq_req & 0xff)); |
| 429 | 453 | cpustate->irq_req &= ~Z8000_VI; |
| 430 | | CHANGE_FCW(cpustate, fcw); |
| 431 | | LOG(("Z8K '%s' VI [$%04x/$%04x] fcw $%04x, pc $%04x\n", cpustate->device->tag(), cpustate->irq_vec, VEC00 + 2 * (cpustate->irq_req & 0xff), cpustate->fcw, cpustate->pc)); |
| 454 | CHANGE_FCW(cpustate, GET_FCW(VI)); |
| 455 | LOG(("Z8K '%s' VI [$%04x/$%04x] fcw $%04x, pc $%04x\n", cpustate->device->tag(), cpustate->irq_vec, VEC00 + (cpustate->device->type() == Z8001 ? 4 : 2) * (cpustate->irq_req & 0xff), cpustate->fcw, cpustate->pc)); |
| 432 | 456 | } |
| 433 | 457 | } |
| 434 | 458 | |
| r15139 | r15140 | |
| 781 | 805 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 782 | 806 | case DEVINFO_STR_NAME: strcpy(info->s, "Zilog Z8001"); break; |
| 783 | 807 | |
| 808 | case CPUINFO_INT_MIN_INSTRUCTION_BYTES: info->i = 2; break; |
| 809 | case CPUINFO_INT_MAX_INSTRUCTION_BYTES: info->i = 8; break; |
| 810 | |
| 784 | 811 | default: CPU_GET_INFO_CALL(z8002); break; |
| 785 | 812 | } |
| 786 | 813 | } |
src/emu/cpu/z8000/z8000ops.c
| r15139 | r15140 | |
| 167 | 167 | #define CHK_SUBW_V if (((~value & dest & ~result) | (value & ~dest & result)) & S16) SET_V |
| 168 | 168 | #define CHK_SUBL_V if (((~value & dest & ~result) | (value & ~dest & result)) & S32) SET_V |
| 169 | 169 | |
| 170 | /* check for privileged instruction and trap if executed */ |
| 171 | #define CHECK_PRIVILEGED_INSTR() if (!(cpustate->fcw & F_S_N)) { cpustate->irq_req = Z8000_TRAP; return; } |
| 170 | 172 | |
| 173 | /* if no EPU is present (it isn't), raise an extended intstuction trap */ |
| 174 | #define CHECK_EXT_INSTR() if (!(cpustate->fcw & F_EPU)) { cpustate->irq_req = Z8000_EPU; return; } |
| 175 | |
| 176 | |
| 171 | 177 | /****************************************** |
| 172 | 178 | add byte |
| 173 | 179 | flags: CZSVDH |
| r15139 | r15140 | |
| 1592 | 1598 | ******************************************/ |
| 1593 | 1599 | static void Z0E_imm8(z8000_state *cpustate) |
| 1594 | 1600 | { |
| 1601 | CHECK_EXT_INSTR(); |
| 1595 | 1602 | GET_IMM8(0); |
| 1596 | 1603 | LOG(("Z8K '%s' %04x: ext0e $%02x\n", cpustate->device->tag(), cpustate->pc, imm8)); |
| 1597 | 1604 | if (cpustate->fcw & F_EPU) { |
| r15139 | r15140 | |
| 1606 | 1613 | ******************************************/ |
| 1607 | 1614 | static void Z0F_imm8(z8000_state *cpustate) |
| 1608 | 1615 | { |
| 1616 | CHECK_EXT_INSTR(); |
| 1609 | 1617 | GET_IMM8(0); |
| 1610 | 1618 | LOG(("Z8K '%s' %04x: ext0f $%02x\n", cpustate->device->tag(), cpustate->pc, imm8)); |
| 1611 | 1619 | if (cpustate->fcw & F_EPU) { |
| r15139 | r15140 | |
| 2210 | 2218 | } |
| 2211 | 2219 | |
| 2212 | 2220 | /****************************************** |
| 2213 | | ldb rbd,rs(imm16) |
| 2221 | ldb rbd,rs(idx16) |
| 2214 | 2222 | flags: ------ |
| 2215 | 2223 | ******************************************/ |
| 2216 | 2224 | static void Z30_ssN0_dddd_imm16(z8000_state *cpustate) |
| 2217 | 2225 | { |
| 2218 | 2226 | GET_DST(OP0,NIB3); |
| 2219 | 2227 | GET_SRC(OP0,NIB2); |
| 2220 | | GET_IMM16(OP1); |
| 2221 | | imm16 = addr_add(cpustate, addr_from_reg(cpustate, src), imm16); |
| 2222 | | cpustate->RB(dst) = RDMEM_B(cpustate, imm16); |
| 2228 | GET_IDX16(OP1); |
| 2229 | idx16 = addr_add(cpustate, addr_from_reg(cpustate, src), idx16); |
| 2230 | cpustate->RB(dst) = RDMEM_B(cpustate, idx16); |
| 2223 | 2231 | } |
| 2224 | 2232 | |
| 2225 | 2233 | /****************************************** |
| r15139 | r15140 | |
| 2234 | 2242 | } |
| 2235 | 2243 | |
| 2236 | 2244 | /****************************************** |
| 2237 | | ld rd,rs(imm16) |
| 2245 | ld rd,rs(idx16) |
| 2238 | 2246 | flags: ------ |
| 2239 | 2247 | ******************************************/ |
| 2240 | 2248 | static void Z31_ssN0_dddd_imm16(z8000_state *cpustate) |
| 2241 | 2249 | { |
| 2242 | 2250 | GET_DST(OP0,NIB3); |
| 2243 | 2251 | GET_SRC(OP0,NIB2); |
| 2244 | | GET_IMM16(OP1); |
| 2245 | | imm16 = addr_add(cpustate, addr_from_reg(cpustate, src), imm16); |
| 2246 | | cpustate->RW(dst) = RDMEM_W(cpustate, imm16); |
| 2252 | GET_IDX16(OP1); |
| 2253 | idx16 = addr_add(cpustate, addr_from_reg(cpustate, src), idx16); |
| 2254 | cpustate->RW(dst) = RDMEM_W(cpustate, idx16); |
| 2247 | 2255 | } |
| 2248 | 2256 | |
| 2249 | 2257 | /****************************************** |
| r15139 | r15140 | |
| 2258 | 2266 | } |
| 2259 | 2267 | |
| 2260 | 2268 | /****************************************** |
| 2261 | | ldb rd(imm16),rbs |
| 2269 | ldb rd(idx16),rbs |
| 2262 | 2270 | flags: ------ |
| 2263 | 2271 | ******************************************/ |
| 2264 | 2272 | static void Z32_ddN0_ssss_imm16(z8000_state *cpustate) |
| 2265 | 2273 | { |
| 2266 | 2274 | GET_SRC(OP0,NIB3); |
| 2267 | 2275 | GET_DST(OP0,NIB2); |
| 2268 | | GET_IMM16(OP1); |
| 2269 | | imm16 = addr_add(cpustate, addr_from_reg(cpustate, dst), imm16); |
| 2270 | | WRMEM_B(cpustate, imm16, cpustate->RB(src)); |
| 2276 | GET_IDX16(OP1); |
| 2277 | idx16 = addr_add(cpustate, addr_from_reg(cpustate, dst), idx16); |
| 2278 | WRMEM_B(cpustate, idx16, cpustate->RB(src)); |
| 2271 | 2279 | } |
| 2272 | 2280 | |
| 2273 | 2281 | /****************************************** |
| r15139 | r15140 | |
| 2282 | 2290 | } |
| 2283 | 2291 | |
| 2284 | 2292 | /****************************************** |
| 2285 | | ld rd(imm16),rs |
| 2293 | ld rd(idx16),rs |
| 2286 | 2294 | flags: ------ |
| 2287 | 2295 | ******************************************/ |
| 2288 | 2296 | static void Z33_ddN0_ssss_imm16(z8000_state *cpustate) |
| 2289 | 2297 | { |
| 2290 | 2298 | GET_SRC(OP0,NIB3); |
| 2291 | 2299 | GET_DST(OP0,NIB2); |
| 2292 | | GET_IMM16(OP1); |
| 2293 | | imm16 = addr_add(cpustate, addr_from_reg(cpustate,dst), imm16); |
| 2294 | | WRMEM_W(cpustate, imm16, cpustate->RW(src)); |
| 2300 | GET_IDX16(OP1); |
| 2301 | idx16 = addr_add(cpustate, addr_from_reg(cpustate,dst), idx16); |
| 2302 | WRMEM_W(cpustate, idx16, cpustate->RW(src)); |
| 2295 | 2303 | } |
| 2296 | 2304 | |
| 2297 | 2305 | /****************************************** |
| r15139 | r15140 | |
| 2306 | 2314 | } |
| 2307 | 2315 | |
| 2308 | 2316 | /****************************************** |
| 2309 | | lda prd,rs(imm16) |
| 2317 | lda prd,rs(idx16) |
| 2310 | 2318 | flags: ------ |
| 2311 | 2319 | ******************************************/ |
| 2312 | 2320 | static void Z34_ssN0_dddd_imm16(z8000_state *cpustate) |
| 2313 | 2321 | { |
| 2314 | 2322 | GET_DST(OP0,NIB3); |
| 2315 | 2323 | GET_SRC(OP0,NIB2); |
| 2316 | | GET_IMM16(OP1); |
| 2317 | | imm16 = addr_add(cpustate, addr_from_reg(cpustate, src), imm16); |
| 2318 | | addr_to_reg(cpustate, dst, imm16); |
| 2324 | GET_IDX16(OP1); |
| 2325 | idx16 = addr_add(cpustate, addr_from_reg(cpustate, src), idx16); |
| 2326 | addr_to_reg(cpustate, dst, idx16); |
| 2319 | 2327 | } |
| 2320 | 2328 | |
| 2321 | 2329 | /****************************************** |
| r15139 | r15140 | |
| 2330 | 2338 | } |
| 2331 | 2339 | |
| 2332 | 2340 | /****************************************** |
| 2333 | | ldl rrd,rs(imm16) |
| 2341 | ldl rrd,rs(idx16) |
| 2334 | 2342 | flags: ------ |
| 2335 | 2343 | ******************************************/ |
| 2336 | 2344 | static void Z35_ssN0_dddd_imm16(z8000_state *cpustate) |
| 2337 | 2345 | { |
| 2338 | 2346 | GET_DST(OP0,NIB3); |
| 2339 | 2347 | GET_SRC(OP0,NIB2); |
| 2340 | | GET_IMM16(OP1); |
| 2341 | | imm16 = addr_add(cpustate, addr_from_reg(cpustate, src), imm16); |
| 2342 | | cpustate->RL(dst) = RDMEM_L(cpustate, imm16); |
| 2348 | GET_IDX16(OP1); |
| 2349 | idx16 = addr_add(cpustate, addr_from_reg(cpustate, src), idx16); |
| 2350 | cpustate->RL(dst) = RDMEM_L(cpustate, idx16); |
| 2343 | 2351 | } |
| 2344 | 2352 | |
| 2345 | 2353 | /****************************************** |
| r15139 | r15140 | |
| 2378 | 2386 | } |
| 2379 | 2387 | |
| 2380 | 2388 | /****************************************** |
| 2381 | | ldl rd(imm16),rrs |
| 2389 | ldl rd(idx16),rrs |
| 2382 | 2390 | flags: ------ |
| 2383 | 2391 | ******************************************/ |
| 2384 | 2392 | static void Z37_ddN0_ssss_imm16(z8000_state *cpustate) |
| 2385 | 2393 | { |
| 2386 | 2394 | GET_SRC(OP0,NIB3); |
| 2387 | 2395 | GET_DST(OP0,NIB2); |
| 2388 | | GET_IMM16(OP1); |
| 2389 | | imm16 = addr_add(cpustate, addr_from_reg(cpustate, dst), imm16); |
| 2390 | | WRMEM_L(cpustate, imm16, cpustate->RL(src)); |
| 2396 | GET_IDX16(OP1); |
| 2397 | idx16 = addr_add(cpustate, addr_from_reg(cpustate, dst), idx16); |
| 2398 | WRMEM_L(cpustate, idx16, cpustate->RL(src)); |
| 2391 | 2399 | } |
| 2392 | 2400 | |
| 2393 | 2401 | /****************************************** |
| r15139 | r15140 | |
| 2410 | 2418 | ******************************************/ |
| 2411 | 2419 | static void Z39_ssN0_0000(z8000_state *cpustate) |
| 2412 | 2420 | { |
| 2421 | CHECK_PRIVILEGED_INSTR(); |
| 2413 | 2422 | GET_SRC(OP0,NIB2); |
| 2414 | 2423 | UINT16 fcw; |
| 2415 | 2424 | if (segmented_mode(cpustate)) { |
| r15139 | r15140 | |
| 2430 | 2439 | ******************************************/ |
| 2431 | 2440 | static void Z3A_ssss_0000_0000_aaaa_dddd_x000(z8000_state *cpustate) |
| 2432 | 2441 | {//@@@@ |
| 2442 | CHECK_PRIVILEGED_INSTR(); |
| 2433 | 2443 | GET_SRC(OP0,NIB2); |
| 2434 | 2444 | GET_CNT(OP1,NIB1); |
| 2435 | 2445 | GET_DST(OP1,NIB2); |
| r15139 | r15140 | |
| 2447 | 2457 | ******************************************/ |
| 2448 | 2458 | static void Z3A_ssss_0001_0000_aaaa_dddd_x000(z8000_state *cpustate) |
| 2449 | 2459 | {//@@@@ |
| 2460 | CHECK_PRIVILEGED_INSTR(); |
| 2450 | 2461 | GET_SRC(OP0,NIB2); |
| 2451 | 2462 | GET_CNT(OP1,NIB1); |
| 2452 | 2463 | GET_DST(OP1,NIB2); |
| r15139 | r15140 | |
| 2464 | 2475 | ******************************************/ |
| 2465 | 2476 | static void Z3A_ssss_0010_0000_aaaa_dddd_x000(z8000_state *cpustate) |
| 2466 | 2477 | {//@@@@ |
| 2478 | CHECK_PRIVILEGED_INSTR(); |
| 2467 | 2479 | GET_SRC(OP0,NIB2); |
| 2468 | 2480 | GET_CNT(OP1,NIB1); |
| 2469 | 2481 | GET_DST(OP1,NIB2); |
| r15139 | r15140 | |
| 2481 | 2493 | ******************************************/ |
| 2482 | 2494 | static void Z3A_ssss_0011_0000_aaaa_dddd_x000(z8000_state *cpustate) |
| 2483 | 2495 | {//@@@@ |
| 2496 | CHECK_PRIVILEGED_INSTR(); |
| 2484 | 2497 | GET_SRC(OP0,NIB2); |
| 2485 | 2498 | GET_CNT(OP1,NIB1); |
| 2486 | 2499 | GET_DST(OP1,NIB2); |
| r15139 | r15140 | |
| 2497 | 2510 | ******************************************/ |
| 2498 | 2511 | static void Z3A_dddd_0100_imm16(z8000_state *cpustate) |
| 2499 | 2512 | { |
| 2513 | CHECK_PRIVILEGED_INSTR(); |
| 2500 | 2514 | GET_DST(OP0,NIB2); |
| 2501 | 2515 | GET_IMM16(OP1); |
| 2502 | 2516 | cpustate->RB(dst) = RDPORT_B(cpustate, 0, imm16); |
| r15139 | r15140 | |
| 2508 | 2522 | ******************************************/ |
| 2509 | 2523 | static void Z3A_dddd_0101_imm16(z8000_state *cpustate) |
| 2510 | 2524 | { |
| 2525 | CHECK_PRIVILEGED_INSTR(); |
| 2511 | 2526 | GET_DST(OP0,NIB2); |
| 2512 | 2527 | GET_IMM16(OP1); |
| 2513 | 2528 | cpustate->RB(dst) = RDPORT_B(cpustate, 1, imm16); |
| r15139 | r15140 | |
| 2519 | 2534 | ******************************************/ |
| 2520 | 2535 | static void Z3A_ssss_0110_imm16(z8000_state *cpustate) |
| 2521 | 2536 | { |
| 2537 | CHECK_PRIVILEGED_INSTR(); |
| 2522 | 2538 | GET_SRC(OP0,NIB2); |
| 2523 | 2539 | GET_IMM16(OP1); |
| 2524 | 2540 | WRPORT_B(cpustate, 0, imm16, cpustate->RB(src)); |
| r15139 | r15140 | |
| 2530 | 2546 | ******************************************/ |
| 2531 | 2547 | static void Z3A_ssss_0111_imm16(z8000_state *cpustate) |
| 2532 | 2548 | { |
| 2549 | CHECK_PRIVILEGED_INSTR(); |
| 2533 | 2550 | GET_SRC(OP0,NIB2); |
| 2534 | 2551 | GET_IMM16(OP1); |
| 2535 | 2552 | WRPORT_B(cpustate, 1, imm16, cpustate->RB(src)); |
| r15139 | r15140 | |
| 2542 | 2559 | ******************************************/ |
| 2543 | 2560 | static void Z3A_ssss_1000_0000_aaaa_dddd_x000(z8000_state *cpustate) |
| 2544 | 2561 | {//@@@ |
| 2562 | CHECK_PRIVILEGED_INSTR(); |
| 2545 | 2563 | GET_SRC(OP0,NIB2); |
| 2546 | 2564 | GET_CNT(OP1,NIB1); |
| 2547 | 2565 | GET_DST(OP1,NIB2); |
| r15139 | r15140 | |
| 2559 | 2577 | ******************************************/ |
| 2560 | 2578 | static void Z3A_ssss_1001_0000_aaaa_dddd_x000(z8000_state *cpustate) |
| 2561 | 2579 | {//@@@ |
| 2580 | CHECK_PRIVILEGED_INSTR(); |
| 2562 | 2581 | GET_SRC(OP0,NIB2); |
| 2563 | 2582 | GET_CNT(OP1,NIB1); |
| 2564 | 2583 | GET_DST(OP1,NIB2); |
| r15139 | r15140 | |
| 2576 | 2595 | ******************************************/ |
| 2577 | 2596 | static void Z3A_ssss_1010_0000_aaaa_dddd_x000(z8000_state *cpustate) |
| 2578 | 2597 | {//@@@ |
| 2598 | CHECK_PRIVILEGED_INSTR(); |
| 2579 | 2599 | GET_SRC(OP0,NIB2); |
| 2580 | 2600 | GET_CNT(OP1,NIB1); |
| 2581 | 2601 | GET_DST(OP1,NIB2); |
| r15139 | r15140 | |
| 2593 | 2613 | ******************************************/ |
| 2594 | 2614 | static void Z3A_ssss_1011_0000_aaaa_dddd_x000(z8000_state *cpustate) |
| 2595 | 2615 | {//@@@ |
| 2616 | CHECK_PRIVILEGED_INSTR(); |
| 2596 | 2617 | GET_SRC(OP0,NIB2); |
| 2597 | 2618 | GET_CNT(OP1,NIB1); |
| 2598 | 2619 | GET_DST(OP1,NIB2); |
| r15139 | r15140 | |
| 2610 | 2631 | ******************************************/ |
| 2611 | 2632 | static void Z3B_ssss_0000_0000_aaaa_dddd_x000(z8000_state *cpustate) |
| 2612 | 2633 | {//@@@ |
| 2634 | CHECK_PRIVILEGED_INSTR(); |
| 2613 | 2635 | GET_SRC(OP0,NIB2); |
| 2614 | 2636 | GET_CNT(OP1,NIB1); |
| 2615 | 2637 | GET_DST(OP1,NIB2); |
| r15139 | r15140 | |
| 2627 | 2649 | ******************************************/ |
| 2628 | 2650 | static void Z3B_ssss_0001_0000_aaaa_dddd_x000(z8000_state *cpustate) |
| 2629 | 2651 | {//@@@ |
| 2652 | CHECK_PRIVILEGED_INSTR(); |
| 2630 | 2653 | GET_SRC(OP0,NIB2); |
| 2631 | 2654 | GET_CNT(OP1,NIB1); |
| 2632 | 2655 | GET_DST(OP1,NIB2); |
| r15139 | r15140 | |
| 2644 | 2667 | ******************************************/ |
| 2645 | 2668 | static void Z3B_ssss_0010_0000_aaaa_dddd_x000(z8000_state *cpustate) |
| 2646 | 2669 | {//@@@ |
| 2670 | CHECK_PRIVILEGED_INSTR(); |
| 2647 | 2671 | GET_SRC(OP0,NIB2); |
| 2648 | 2672 | GET_CNT(OP1,NIB1); |
| 2649 | 2673 | GET_DST(OP1,NIB2); |
| r15139 | r15140 | |
| 2661 | 2685 | ******************************************/ |
| 2662 | 2686 | static void Z3B_ssss_0011_0000_aaaa_dddd_x000(z8000_state *cpustate) |
| 2663 | 2687 | {//@@@ |
| 2688 | CHECK_PRIVILEGED_INSTR(); |
| 2664 | 2689 | GET_SRC(OP0,NIB2); |
| 2665 | 2690 | GET_CNT(OP1,NIB1); |
| 2666 | 2691 | GET_DST(OP1,NIB2); |
| r15139 | r15140 | |
| 2677 | 2702 | ******************************************/ |
| 2678 | 2703 | static void Z3B_dddd_0100_imm16(z8000_state *cpustate) |
| 2679 | 2704 | { |
| 2705 | CHECK_PRIVILEGED_INSTR(); |
| 2680 | 2706 | GET_DST(OP0,NIB2); |
| 2681 | 2707 | GET_IMM16(OP1); |
| 2682 | 2708 | cpustate->RW(dst) = RDPORT_W(cpustate, 0, imm16); |
| r15139 | r15140 | |
| 2688 | 2714 | ******************************************/ |
| 2689 | 2715 | static void Z3B_dddd_0101_imm16(z8000_state *cpustate) |
| 2690 | 2716 | { |
| 2717 | CHECK_PRIVILEGED_INSTR(); |
| 2691 | 2718 | GET_DST(OP0,NIB2); |
| 2692 | 2719 | GET_IMM16(OP1); |
| 2693 | 2720 | cpustate->RW(dst) = RDPORT_W(cpustate, 1, imm16); |
| r15139 | r15140 | |
| 2699 | 2726 | ******************************************/ |
| 2700 | 2727 | static void Z3B_ssss_0110_imm16(z8000_state *cpustate) |
| 2701 | 2728 | { |
| 2729 | CHECK_PRIVILEGED_INSTR(); |
| 2702 | 2730 | GET_SRC(OP0,NIB2); |
| 2703 | 2731 | GET_IMM16(OP1); |
| 2704 | 2732 | WRPORT_W(cpustate, 0, imm16, cpustate->RW(src)); |
| r15139 | r15140 | |
| 2710 | 2738 | ******************************************/ |
| 2711 | 2739 | static void Z3B_ssss_0111_imm16(z8000_state *cpustate) |
| 2712 | 2740 | { |
| 2741 | CHECK_PRIVILEGED_INSTR(); |
| 2713 | 2742 | GET_SRC(OP0,NIB2); |
| 2714 | 2743 | GET_IMM16(OP1); |
| 2715 | 2744 | WRPORT_W(cpustate, 1, imm16, cpustate->RW(src)); |
| r15139 | r15140 | |
| 2722 | 2751 | ******************************************/ |
| 2723 | 2752 | static void Z3B_ssss_1000_0000_aaaa_dddd_x000(z8000_state *cpustate) |
| 2724 | 2753 | {//@@@ |
| 2754 | CHECK_PRIVILEGED_INSTR(); |
| 2725 | 2755 | GET_SRC(OP0,NIB2); |
| 2726 | 2756 | GET_CNT(OP1,NIB1); |
| 2727 | 2757 | GET_DST(OP1,NIB2); |
| r15139 | r15140 | |
| 2739 | 2769 | ******************************************/ |
| 2740 | 2770 | static void Z3B_ssss_1001_0000_aaaa_dddd_x000(z8000_state *cpustate) |
| 2741 | 2771 | {//@@@ |
| 2772 | CHECK_PRIVILEGED_INSTR(); |
| 2742 | 2773 | GET_SRC(OP0,NIB2); |
| 2743 | 2774 | GET_CNT(OP1,NIB1); |
| 2744 | 2775 | GET_DST(OP1,NIB2); |
| r15139 | r15140 | |
| 2756 | 2787 | ******************************************/ |
| 2757 | 2788 | static void Z3B_ssss_1010_0000_aaaa_dddd_x000(z8000_state *cpustate) |
| 2758 | 2789 | {//@@@ |
| 2790 | CHECK_PRIVILEGED_INSTR(); |
| 2759 | 2791 | GET_SRC(OP0,NIB2); |
| 2760 | 2792 | GET_CNT(OP1,NIB1); |
| 2761 | 2793 | GET_DST(OP1,NIB2); |
| r15139 | r15140 | |
| 2773 | 2805 | ******************************************/ |
| 2774 | 2806 | static void Z3B_ssss_1011_0000_aaaa_dddd_x000(z8000_state *cpustate) |
| 2775 | 2807 | {//@@@ |
| 2808 | CHECK_PRIVILEGED_INSTR(); |
| 2776 | 2809 | GET_SRC(OP0,NIB2); |
| 2777 | 2810 | GET_CNT(OP1,NIB1); |
| 2778 | 2811 | GET_DST(OP1,NIB2); |
| r15139 | r15140 | |
| 2789 | 2822 | ******************************************/ |
| 2790 | 2823 | static void Z3C_ssss_dddd(z8000_state *cpustate) |
| 2791 | 2824 | {//@@@check |
| 2825 | CHECK_PRIVILEGED_INSTR(); |
| 2792 | 2826 | GET_SRC(OP0,NIB2); |
| 2793 | 2827 | GET_DST(OP0,NIB3); |
| 2794 | 2828 | cpustate->RB(dst) = RDPORT_B(cpustate, 0, RDMEM_W(cpustate, cpustate->RW(src))); |
| r15139 | r15140 | |
| 2800 | 2834 | ******************************************/ |
| 2801 | 2835 | static void Z3D_ssss_dddd(z8000_state *cpustate) |
| 2802 | 2836 | {//@@@check |
| 2837 | CHECK_PRIVILEGED_INSTR(); |
| 2803 | 2838 | GET_SRC(OP0,NIB2); |
| 2804 | 2839 | GET_DST(OP0,NIB3); |
| 2805 | 2840 | cpustate->RW(dst) = RDPORT_W(cpustate, 0, RDMEM_W(cpustate, cpustate->RW(src))); |
| r15139 | r15140 | |
| 2811 | 2846 | ******************************************/ |
| 2812 | 2847 | static void Z3E_dddd_ssss(z8000_state *cpustate) |
| 2813 | 2848 | {//@@@check |
| 2849 | CHECK_PRIVILEGED_INSTR(); |
| 2814 | 2850 | GET_DST(OP0,NIB2); |
| 2815 | 2851 | GET_SRC(OP0,NIB3); |
| 2816 | 2852 | WRPORT_B(cpustate, 0, RDMEM_W(cpustate, cpustate->RW(dst)), cpustate->RB(src)); |
| r15139 | r15140 | |
| 2822 | 2858 | ******************************************/ |
| 2823 | 2859 | static void Z3F_dddd_ssss(z8000_state *cpustate) |
| 2824 | 2860 | {//check |
| 2861 | CHECK_PRIVILEGED_INSTR(); |
| 2825 | 2862 | GET_DST(OP0,NIB2); |
| 2826 | 2863 | GET_SRC(OP0,NIB3); |
| 2827 | 2864 | WRPORT_W(cpustate, 0, RDMEM_W(cpustate, cpustate->RW(dst)), cpustate->RW(src)); |
| r15139 | r15140 | |
| 4460 | 4497 | ******************************************/ |
| 4461 | 4498 | static void Z79_0000_0000_addr(z8000_state *cpustate) |
| 4462 | 4499 | { |
| 4500 | CHECK_PRIVILEGED_INSTR(); |
| 4463 | 4501 | GET_ADDR(OP1); |
| 4464 | 4502 | UINT16 fcw; |
| 4465 | 4503 | //printf("LDPS from 0x%x: old pc: 0x%x\n", addr, cpustate->pc); |
| r15139 | r15140 | |
| 4481 | 4519 | ******************************************/ |
| 4482 | 4520 | static void Z79_ssN0_0000_addr(z8000_state *cpustate) |
| 4483 | 4521 | { |
| 4522 | CHECK_PRIVILEGED_INSTR(); |
| 4484 | 4523 | GET_SRC(OP0,NIB2); |
| 4485 | 4524 | GET_ADDR(OP1); |
| 4486 | 4525 | UINT16 fcw; |
| r15139 | r15140 | |
| 4502 | 4541 | ******************************************/ |
| 4503 | 4542 | static void Z7A_0000_0000(z8000_state *cpustate) |
| 4504 | 4543 | { |
| 4544 | CHECK_PRIVILEGED_INSTR(); |
| 4505 | 4545 | cpustate->irq_req |= Z8000_HALT; |
| 4506 | 4546 | if (cpustate->icount > 0) cpustate->icount = 0; |
| 4507 | 4547 | } |
| r15139 | r15140 | |
| 4513 | 4553 | static void Z7B_0000_0000(z8000_state *cpustate) |
| 4514 | 4554 | { |
| 4515 | 4555 | UINT16 tag, fcw; |
| 4556 | CHECK_PRIVILEGED_INSTR(); |
| 4516 | 4557 | tag = POPW(cpustate, SP); /* get type tag */ |
| 4517 | 4558 | fcw = POPW(cpustate, SP); /* get cpustate->fcw */ |
| 4518 | 4559 | if (segmented_mode(cpustate)) |
| r15139 | r15140 | |
| 4530 | 4571 | ******************************************/ |
| 4531 | 4572 | static void Z7B_0000_1000(z8000_state *cpustate) |
| 4532 | 4573 | { |
| 4574 | CHECK_PRIVILEGED_INSTR(); |
| 4533 | 4575 | /* set mu-0 line */ |
| 4534 | 4576 | } |
| 4535 | 4577 | |
| r15139 | r15140 | |
| 4539 | 4581 | ******************************************/ |
| 4540 | 4582 | static void Z7B_0000_1001(z8000_state *cpustate) |
| 4541 | 4583 | { |
| 4584 | CHECK_PRIVILEGED_INSTR(); |
| 4542 | 4585 | /* reset mu-0 line */ |
| 4543 | 4586 | } |
| 4544 | 4587 | |
| r15139 | r15140 | |
| 4548 | 4591 | ******************************************/ |
| 4549 | 4592 | static void Z7B_0000_1010(z8000_state *cpustate) |
| 4550 | 4593 | { |
| 4594 | CHECK_PRIVILEGED_INSTR(); |
| 4551 | 4595 | /* test mu-I line */ |
| 4552 | 4596 | } |
| 4553 | 4597 | |
| r15139 | r15140 | |
| 4557 | 4601 | ******************************************/ |
| 4558 | 4602 | static void Z7B_dddd_1101(z8000_state *cpustate) |
| 4559 | 4603 | { |
| 4604 | CHECK_PRIVILEGED_INSTR(); |
| 4560 | 4605 | /* test mu-I line, invert cascade to mu-0 */ |
| 4561 | 4606 | } |
| 4562 | 4607 | |
| r15139 | r15140 | |
| 4566 | 4611 | ******************************************/ |
| 4567 | 4612 | static void Z7C_0000_00ii(z8000_state *cpustate) |
| 4568 | 4613 | { |
| 4614 | CHECK_PRIVILEGED_INSTR(); |
| 4569 | 4615 | GET_IMM2(OP0,NIB3); |
| 4570 | 4616 | UINT16 fcw = cpustate->fcw; |
| 4571 | 4617 | fcw &= ~(imm2 << 11); |
| r15139 | r15140 | |
| 4578 | 4624 | ******************************************/ |
| 4579 | 4625 | static void Z7C_0000_01ii(z8000_state *cpustate) |
| 4580 | 4626 | { |
| 4627 | CHECK_PRIVILEGED_INSTR(); |
| 4581 | 4628 | GET_IMM2(OP0,NIB3); |
| 4582 | 4629 | UINT16 fcw = cpustate->fcw; |
| 4583 | 4630 | fcw |= imm2 << 11; |
| r15139 | r15140 | |
| 4590 | 4637 | ******************************************/ |
| 4591 | 4638 | static void Z7D_dddd_0ccc(z8000_state *cpustate) |
| 4592 | 4639 | {//@@@ |
| 4640 | CHECK_PRIVILEGED_INSTR(); |
| 4593 | 4641 | GET_IMM3(OP0,NIB3); |
| 4594 | 4642 | GET_DST(OP0,NIB2); |
| 4595 | 4643 | switch (imm3) { |
| r15139 | r15140 | |
| 4605 | 4653 | case 5: |
| 4606 | 4654 | cpustate->RW(dst) = cpustate->psapoff; |
| 4607 | 4655 | break; |
| 4656 | case 6: |
| 4657 | cpustate->RW(dst) = cpustate->nspseg; |
| 4658 | break; |
| 4608 | 4659 | case 7: |
| 4609 | 4660 | cpustate->RW(dst) = cpustate->nspoff; |
| 4610 | 4661 | break; |
| r15139 | r15140 | |
| 4619 | 4670 | ******************************************/ |
| 4620 | 4671 | static void Z7D_ssss_1ccc(z8000_state *cpustate) |
| 4621 | 4672 | {//@@@ |
| 4673 | CHECK_PRIVILEGED_INSTR(); |
| 4622 | 4674 | GET_IMM3(OP0,NIB3); |
| 4623 | 4675 | GET_SRC(OP0,NIB2); |
| 4624 | 4676 | switch (imm3) { |
| r15139 | r15140 | |
| 4638 | 4690 | case 5: |
| 4639 | 4691 | cpustate->psapoff = cpustate->RW(src); |
| 4640 | 4692 | break; |
| 4693 | case 6: |
| 4694 | cpustate->nspseg = cpustate->RW(src); |
| 4695 | break; |
| 4641 | 4696 | case 7: |
| 4642 | 4697 | cpustate->nspoff = cpustate->RW(src); |
| 4643 | 4698 | break; |
| r15139 | r15140 | |
| 4969 | 5024 | ******************************************/ |
| 4970 | 5025 | static void Z8E_imm8(z8000_state *cpustate) |
| 4971 | 5026 | { |
| 5027 | CHECK_EXT_INSTR(); |
| 4972 | 5028 | GET_IMM8(0); |
| 4973 | 5029 | LOG(("Z8K '%s' %04x: ext8e $%02x\n", cpustate->device->tag(), cpustate->pc, imm8)); |
| 4974 | 5030 | if (cpustate->fcw & F_EPU) { |
| r15139 | r15140 | |
| 4983 | 5039 | ******************************************/ |
| 4984 | 5040 | static void Z8F_imm8(z8000_state *cpustate) |
| 4985 | 5041 | { |
| 5042 | CHECK_EXT_INSTR(); |
| 4986 | 5043 | GET_IMM8(0); |
| 4987 | 5044 | LOG(("Z8K '%s' %04x: ext8f $%02x\n", cpustate->device->tag(), cpustate->pc, imm8)); |
| 4988 | 5045 | if (cpustate->fcw & F_EPU) { |
| r15139 | r15140 | |
| 5007 | 5064 | flags: ------ |
| 5008 | 5065 | ******************************************/ |
| 5009 | 5066 | static void Z91_ddN0_ssss(z8000_state *cpustate) |
| 5010 | | {//@@@ |
| 5067 | { |
| 5011 | 5068 | GET_SRC(OP0,NIB3); |
| 5012 | 5069 | GET_DST(OP0,NIB2); |
| 5013 | 5070 | PUSHL(cpustate, dst, cpustate->RL(src)); |
src/emu/cpu/z8000/z8000tbl.c
| r15139 | r15140 | |
| 359 | 359 | {0x7d01,0x7df1,16,1, 7,Z7D_dddd_0ccc, "ldctl %rw2,ctrl1", 0}, |
| 360 | 360 | {0x7d02,0x7df2,16,1, 7,Z7D_dddd_0ccc, "ldctl %rw2,fcw", 0}, |
| 361 | 361 | {0x7d03,0x7df3,16,1, 7,Z7D_dddd_0ccc, "ldctl %rw2,refresh", 0}, |
| 362 | | {0x7d04,0x7df4,16,1, 7,Z7D_dddd_0ccc, "ldctl %rw2,ctrl4", 0}, |
| 363 | | {0x7d05,0x7df5,16,1, 7,Z7D_dddd_0ccc, "ldctl %rw2,psap", 0}, |
| 364 | | {0x7d06,0x7df6,16,1, 7,Z7D_dddd_0ccc, "ldctl %rw2,ctrl6", 0}, |
| 365 | | {0x7d07,0x7df7,16,1, 7,Z7D_dddd_0ccc, "ldctl %rw2,nsp", 0}, |
| 362 | {0x7d04,0x7df4,16,1, 7,Z7D_dddd_0ccc, "ldctl %rw2,psapseg", 0}, |
| 363 | {0x7d05,0x7df5,16,1, 7,Z7D_dddd_0ccc, "ldctl %rw2,psapoff", 0}, |
| 364 | {0x7d06,0x7df6,16,1, 7,Z7D_dddd_0ccc, "ldctl %rw2,nspseg", 0}, |
| 365 | {0x7d07,0x7df7,16,1, 7,Z7D_dddd_0ccc, "ldctl %rw2,nspoff", 0}, |
| 366 | 366 | {0x7d08,0x7df8,16,1, 7,Z7D_ssss_1ccc, "ldctl ctrl0,%rw2", 0}, |
| 367 | 367 | {0x7d09,0x7df9,16,1, 7,Z7D_ssss_1ccc, "ldctl ctrl1,%rw2", 0}, |
| 368 | 368 | {0x7d0a,0x7dfa,16,1, 7,Z7D_ssss_1ccc, "ldctl fcw,%rw2", 0}, |
| 369 | 369 | {0x7d0b,0x7dfb,16,1, 7,Z7D_ssss_1ccc, "ldctl refresh,%rw2", 0}, |
| 370 | | {0x7d0c,0x7dfc,16,1, 7,Z7D_ssss_1ccc, "ldctl ctrl4,%rw2", 0}, |
| 371 | | {0x7d0d,0x7dfd,16,1, 7,Z7D_ssss_1ccc, "ldctl psap,%rw2", 0}, |
| 372 | | {0x7d0e,0x7dfe,16,1, 7,Z7D_ssss_1ccc, "ldctl ctrl6,%rw2", 0}, |
| 373 | | {0x7d0f,0x7dff,16,1, 7,Z7D_ssss_1ccc, "ldctl nsp,%rw2", 0}, |
| 370 | {0x7d0c,0x7dfc,16,1, 7,Z7D_ssss_1ccc, "ldctl psapseg,%rw2", 0}, |
| 371 | {0x7d0d,0x7dfd,16,1, 7,Z7D_ssss_1ccc, "ldctl psapoff,%rw2", 0}, |
| 372 | {0x7d0e,0x7dfe,16,1, 7,Z7D_ssss_1ccc, "ldctl nspseg,%rw2", 0}, |
| 373 | {0x7d0f,0x7dff,16,1, 7,Z7D_ssss_1ccc, "ldctl nspoff,%rw2", 0}, |
| 374 | 374 | {0x7e00,0x7eff, 1,1, 10,Z7E_imm8, "rsvd7e %#b1", 0}, |
| 375 | 375 | {0x7f00,0x7fff, 1,1, 33,Z7F_imm8, "sc %#b1", 0}, |
| 376 | 376 | {0x8000,0x80ff, 1,1, 4,Z80_ssss_dddd, "addb %rb3,%rb2", 0}, |
| r15139 | r15140 | |
| 389 | 389 | {0x8c02,0x8cf2,16,1, 7,Z8C_dddd_0010, "negb %rb2", 0}, |
| 390 | 390 | {0x8c04,0x8cf4,16,1, 7,Z8C_dddd_0100, "testb %rb2", 0}, |
| 391 | 391 | {0x8c06,0x8cf6,16,1, 7,Z8C_dddd_0110, "tsetb %rb2", 0}, |
| 392 | | |
| 393 | | {0x8c01,0x8cf1,16,1, 7,Z8C_dddd_0001, "ldctlb %rb2,flags", 0}, |
| 394 | | |
| 392 | {0x8c01,0x8cf1,16,1, 7,Z8C_dddd_0001, "ldctlb %rb2,flags", 0}, |
| 395 | 393 | {0x8c08,0x8cf8,16,1, 7,Z8C_dddd_1000, "clrb %rb2", 0}, |
| 396 | | |
| 397 | | {0x8c09,0x8cf9,16,1, 7,Z8C_dddd_1001, "ldctlb flags,%rb2", 0}, |
| 398 | | |
| 394 | {0x8c09,0x8cf9,16,1, 7,Z8C_dddd_1001, "ldctlb flags,%rb2", 0}, |
| 399 | 395 | {0x8d00,0x8df0,16,1, 7,Z8D_dddd_0000, "com %rw2", 0}, |
| 400 | 396 | {0x8d01,0x8df1,16,1, 7,Z8D_imm4_0001, "setflg %f2", 0}, |
| 401 | 397 | {0x8d02,0x8df2,16,1, 7,Z8D_dddd_0010, "neg %rw2", 0}, |