trunk/src/emu/cpu/pps4/pps4.c
| r242430 | r242431 | |
| 116 | 116 | inline UINT8 pps4_device::ROP() |
| 117 | 117 | { |
| 118 | 118 | const UINT8 op = m_direct->read_decrypted_byte(m_P & 0xFFF); |
| 119 | | m_Ip = m_I1; // save previous opcode |
| 119 | m_Ip = m_I; // save previous opcode |
| 120 | 120 | m_P = (m_P + 1) & 0xFFF; |
| 121 | 121 | m_icount -= 1; |
| 122 | 122 | return op; |
| r242430 | r242431 | |
| 158 | 158 | |
| 159 | 159 | /** |
| 160 | 160 | * @brief pps4_device::iAD Add |
| 161 | | * HEX BINARY CYCLES MNEMONIC |
| 162 | | * ---------------------------------- |
| 163 | | * 0x0b 0000 1011 1 AD |
| 161 | * OPCODE cycles mnemonic |
| 162 | * ----------------------------- |
| 163 | * 0000 1011 1 cyc AD |
| 164 | 164 | * |
| 165 | 165 | * Symbolic equation |
| 166 | | * ---------------------------------- |
| 166 | * ----------------------------- |
| 167 | 167 | * C, A <- A + M |
| 168 | 168 | * |
| 169 | 169 | * The result of the binary addition of contents of accumulator |
| r242430 | r242431 | |
| 180 | 180 | |
| 181 | 181 | /** |
| 182 | 182 | * @brief pps4_device::iADC Add with carry-in |
| 183 | | * HEX BINARY CYCLES MNEMONIC |
| 184 | | * ---------------------------------- |
| 185 | | * 0x0a 0000 1010 1 ADC |
| 183 | * OPCODE cycles mnemonic |
| 184 | * ----------------------------- |
| 185 | * 0000 1010 1 cyc ADC |
| 186 | 186 | * |
| 187 | 187 | * Symbolic equation |
| 188 | | * ---------------------------------- |
| 188 | * ----------------------------- |
| 189 | 189 | * C, A <- A + M + C |
| 190 | 190 | * |
| 191 | 191 | * Same as AD except the C flip-flop serves as a carry-in |
| r242430 | r242431 | |
| 200 | 200 | |
| 201 | 201 | /** |
| 202 | 202 | * @brief pps4_device::iADSK Add and skip if carry-out |
| 203 | | * HEX BINARY CYCLES MNEMONIC |
| 204 | | * ---------------------------------- |
| 205 | | * 0x09 0000 1001 1 ADSK |
| 203 | * OPCODE cycles mnemonic |
| 204 | * ----------------------------- |
| 205 | * 0000 1001 1 cyc ADSK |
| 206 | 206 | * |
| 207 | 207 | * Symbolic equation |
| 208 | | * ---------------------------------- |
| 208 | * ----------------------------- |
| 209 | 209 | * C, A <- A + M |
| 210 | 210 | * Skip if C = 1 |
| 211 | 211 | * |
| r242430 | r242431 | |
| 222 | 222 | |
| 223 | 223 | /** |
| 224 | 224 | * @brief pps4_device::iADCSK Add with carry-in and skip if carry-out |
| 225 | | * HEX BINARY CYCLES MNEMONIC |
| 226 | | * ---------------------------------- |
| 227 | | * 0x08 0000 1000 1 ADCSK |
| 225 | * OPCODE cycles mnemonic |
| 226 | * ----------------------------- |
| 227 | * 0000 1000 1 cyc ADCSK |
| 228 | 228 | * |
| 229 | 229 | * Symbolic equation |
| 230 | | * ---------------------------------- |
| 230 | * ----------------------------- |
| 231 | 231 | * C, A <- A + M + C |
| 232 | 232 | * Skip if C = 1 |
| 233 | 233 | * |
| r242430 | r242431 | |
| 244 | 244 | |
| 245 | 245 | /** |
| 246 | 246 | * @brief pps4_device::iADI Add immediate |
| 247 | | * HEX BINARY CYCLES MNEMONIC |
| 248 | | * ---------------------------------- |
| 249 | | * 0x6* 0110 xxxx 1 ADI x |
| 247 | * OPCODE cycles mnemonic |
| 248 | * ----------------------------- |
| 249 | * 0110 xxxx 1 cyc ADI x |
| 250 | 250 | * |
| 251 | 251 | * Symbolic equation |
| 252 | | * ---------------------------------- |
| 252 | * ----------------------------- |
| 253 | 253 | * A <- A + [I(4:1)] |
| 254 | 254 | * |
| 255 | 255 | * The result of the binary addition of contents of |
| r242430 | r242431 | |
| 265 | 265 | */ |
| 266 | 266 | void pps4_device::iADI() |
| 267 | 267 | { |
| 268 | | const UINT8 imm = ~m_I1 & 15; |
| 268 | const UINT8 imm = ~m_I & 15; |
| 269 | 269 | m_A = m_A + imm; |
| 270 | 270 | m_Skip = (m_A >> 4) & 1; |
| 271 | 271 | m_A = m_A & 15; |
| r242430 | r242431 | |
| 273 | 273 | |
| 274 | 274 | /** |
| 275 | 275 | * @brief pps4_device::iDC Decimal correction |
| 276 | | * HEX BINARY CYCLES MNEMONIC |
| 277 | | * ---------------------------------- |
| 278 | | * 0x65 0110 0101 1 DC |
| 276 | * OPCODE cycles mnemonic |
| 277 | * ----------------------------- |
| 278 | * 0110 0101 1 cyc DC |
| 279 | 279 | * |
| 280 | 280 | * Symbolic equation |
| 281 | | * ---------------------------------- |
| 281 | * ----------------------------- |
| 282 | 282 | * A <- A + 1010 |
| 283 | 283 | * |
| 284 | 284 | * Decimal correction of accumulator. |
| r242430 | r242431 | |
| 293 | 293 | |
| 294 | 294 | /** |
| 295 | 295 | * @brief pps4_device::iAND Logical AND |
| 296 | | * HEX BINARY CYCLES MNEMONIC |
| 297 | | * ---------------------------------- |
| 298 | | * 0x0d 0000 1101 1 AND |
| 296 | * OPCODE cycles mnemonic |
| 297 | * ----------------------------- |
| 298 | * 0000 1101 1 cyc AND |
| 299 | 299 | * |
| 300 | 300 | * Symbolic equation |
| 301 | | * ---------------------------------- |
| 301 | * ----------------------------- |
| 302 | 302 | * A <- A & M |
| 303 | 303 | * |
| 304 | 304 | * The result of logical AND of accumulator and |
| r242430 | r242431 | |
| 312 | 312 | |
| 313 | 313 | /** |
| 314 | 314 | * @brief pps4_device::iOR Logical OR |
| 315 | | * HEX BINARY CYCLES MNEMONIC |
| 316 | | * ---------------------------------- |
| 317 | | * 0x0f 0000 1111 1 OR |
| 315 | * OPCODE cycles mnemonic |
| 316 | * ----------------------------- |
| 317 | * 0000 1111 1 cyc OR |
| 318 | 318 | * |
| 319 | 319 | * Symbolic equation |
| 320 | | * ---------------------------------- |
| 320 | * ----------------------------- |
| 321 | 321 | * A <- A | M |
| 322 | 322 | * |
| 323 | 323 | * The result of logical OR of accumulator and |
| r242430 | r242431 | |
| 331 | 331 | |
| 332 | 332 | /** |
| 333 | 333 | * @brief pps4_device::iEOR Logical exclusive-OR |
| 334 | | * HEX BINARY CYCLES MNEMONIC |
| 335 | | * ---------------------------------- |
| 336 | | * 0x0c 0000 1100 1 EOR |
| 334 | * OPCODE cycles mnemonic |
| 335 | * ----------------------------- |
| 336 | * 0000 1100 1 cyc EOR |
| 337 | 337 | * |
| 338 | 338 | * Symbolic equation |
| 339 | | * ---------------------------------- |
| 339 | * ----------------------------- |
| 340 | 340 | * A <- A ^ M |
| 341 | 341 | * |
| 342 | 342 | * The result of logical exclusive-OR of |
| r242430 | r242431 | |
| 351 | 351 | |
| 352 | 352 | /** |
| 353 | 353 | * @brief pps4_device::iCOMP Complement |
| 354 | | * HEX BINARY CYCLES MNEMONIC |
| 355 | | * ---------------------------------- |
| 356 | | * 0x0e 0000 1110 1 COMP |
| 354 | * OPCODE cycles mnemonic |
| 355 | * ----------------------------- |
| 356 | * 0000 1110 1 cyc COMP |
| 357 | 357 | * |
| 358 | 358 | * Symbolic equation |
| 359 | | * ---------------------------------- |
| 359 | * ----------------------------- |
| 360 | 360 | * A <- ~A |
| 361 | 361 | * |
| 362 | 362 | * Each bit of the accumulator is logically |
| r242430 | r242431 | |
| 369 | 369 | |
| 370 | 370 | /** |
| 371 | 371 | * @brief pps4_device::iSC Set carry flip-flop |
| 372 | | * HEX BINARY CYCLES MNEMONIC |
| 373 | | * ---------------------------------- |
| 374 | | * 0x20 0010 0000 1 SC |
| 372 | * OPCODE cycles mnemonic |
| 373 | * ----------------------------- |
| 374 | * 0010 0000 1 cyc SC |
| 375 | 375 | * |
| 376 | 376 | * Symbolic equation |
| 377 | | * ---------------------------------- |
| 377 | * ----------------------------- |
| 378 | 378 | * C <- 1 |
| 379 | 379 | * |
| 380 | 380 | * The C flip-flop is set to 1. |
| r242430 | r242431 | |
| 386 | 386 | |
| 387 | 387 | /** |
| 388 | 388 | * @brief pps4_device::iRC Reset carry flip-flop |
| 389 | | * HEX BINARY CYCLES MNEMONIC |
| 390 | | * ---------------------------------- |
| 391 | | * 0x28 0010 0100 1 RC |
| 389 | * OPCODE cycles mnemonic |
| 390 | * ----------------------------- |
| 391 | * 0010 0100 1 cyc RC |
| 392 | 392 | * |
| 393 | 393 | * Symbolic equation |
| 394 | | * ---------------------------------- |
| 394 | * ----------------------------- |
| 395 | 395 | * C <- 0 |
| 396 | 396 | * |
| 397 | 397 | * The C flip-flop is set to 0. |
| r242430 | r242431 | |
| 403 | 403 | |
| 404 | 404 | /** |
| 405 | 405 | * @brief pps4_device::iSF1 Set flip-flop FF1 |
| 406 | | * HEX BINARY CYCLES MNEMONIC |
| 407 | | * ---------------------------------- |
| 408 | | * 0x22 0010 0010 1 SF1 |
| 406 | * OPCODE cycles mnemonic |
| 407 | * ----------------------------- |
| 408 | * 0010 0010 1 cyc SF1 |
| 409 | 409 | * |
| 410 | 410 | * Symbolic equation |
| 411 | | * ---------------------------------- |
| 411 | * ----------------------------- |
| 412 | 412 | * FF1 <- 1 |
| 413 | 413 | * |
| 414 | 414 | * The Flip-flop FF1 is set to 1. |
| r242430 | r242431 | |
| 420 | 420 | |
| 421 | 421 | /** |
| 422 | 422 | * @brief pps4_device::iRF1 Reset flip-flop FF1 |
| 423 | | * HEX BINARY CYCLES MNEMONIC |
| 424 | | * ---------------------------------- |
| 425 | | * 0x26 0010 0110 1 RF1 |
| 423 | * OPCODE cycles mnemonic |
| 424 | * ----------------------------- |
| 425 | * 0010 0110 1 cyc RF1 |
| 426 | 426 | * |
| 427 | 427 | * Symbolic equation |
| 428 | | * ---------------------------------- |
| 428 | * ----------------------------- |
| 429 | 429 | * FF1 <- 0 |
| 430 | 430 | * |
| 431 | 431 | * The Flip-flop FF1 is set to 0. |
| r242430 | r242431 | |
| 437 | 437 | |
| 438 | 438 | /** |
| 439 | 439 | * @brief pps4_device::iSF2 Set flip-flop FF2 |
| 440 | | * HEX BINARY CYCLES MNEMONIC |
| 441 | | * ---------------------------------- |
| 442 | | * 0x21 0010 0001 1 SF2 |
| 440 | * OPCODE cycles mnemonic |
| 441 | * ----------------------------- |
| 442 | * 0010 0001 1 cyc SF2 |
| 443 | 443 | * |
| 444 | 444 | * Symbolic equation |
| 445 | | * ---------------------------------- |
| 445 | * ----------------------------- |
| 446 | 446 | * FF2 <- 1 |
| 447 | 447 | * |
| 448 | 448 | * The Flip-flop FF2 is set to 1. |
| r242430 | r242431 | |
| 454 | 454 | |
| 455 | 455 | /** |
| 456 | 456 | * @brief pps4_device::iRF2 Reset flip-flop FF2 |
| 457 | | * HEX BINARY CYCLES MNEMONIC |
| 458 | | * ---------------------------------- |
| 459 | | * 0x25 0010 0101 1 RF2 |
| 457 | * OPCODE cycles mnemonic |
| 458 | * ----------------------------- |
| 459 | * 0010 0101 1 cyc RF2 |
| 460 | 460 | * |
| 461 | 461 | * Symbolic equation |
| 462 | | * ---------------------------------- |
| 462 | * ----------------------------- |
| 463 | 463 | * FF2 <- 0 |
| 464 | 464 | * |
| 465 | 465 | * The flip-flop FF2 is set to 0. |
| r242430 | r242431 | |
| 471 | 471 | |
| 472 | 472 | /** |
| 473 | 473 | * @brief pps4_device::iLD Load accumulator from memory |
| 474 | | * HEX BINARY CYCLES MNEMONIC |
| 475 | | * ---------------------------------- |
| 476 | | * 0x30+ 0011 0xxx 1 LD x |
| 474 | * OPCODE cycles mnemonic |
| 475 | * ----------------------------- |
| 476 | * 0011 0xxx 1 cyc LD x |
| 477 | 477 | * |
| 478 | 478 | * Symbolic equation |
| 479 | | * ---------------------------------- |
| 479 | * ----------------------------- |
| 480 | 480 | * A <- M |
| 481 | 481 | * B(7:5) <- B(7:5) ^ [I(3:1)] |
| 482 | 482 | * |
| r242430 | r242431 | |
| 490 | 490 | */ |
| 491 | 491 | void pps4_device::iLD() |
| 492 | 492 | { |
| 493 | | const UINT16 i3c = ~m_I1 & 7; |
| 493 | const UINT16 i3c = ~m_I & 7; |
| 494 | 494 | m_A = M(); |
| 495 | 495 | m_B = m_B ^ (i3c << 4); |
| 496 | 496 | } |
| 497 | 497 | |
| 498 | 498 | /** |
| 499 | 499 | * @brief pps4_device::iEX Exchange accumulator and memory |
| 500 | | * HEX BINARY CYCLES MNEMONIC |
| 501 | | * ---------------------------------- |
| 502 | | * 0x38+ 0011 1xxx 1 EX x |
| 500 | * OPCODE cycles mnemonic |
| 501 | * ----------------------------- |
| 502 | * 0011 1xxx 1 cyc EX x |
| 503 | 503 | * |
| 504 | 504 | * Symbolic equation |
| 505 | | * ---------------------------------- |
| 505 | * ----------------------------- |
| 506 | 506 | * A <-> M |
| 507 | 507 | * B(7:5) <- B(7:5) ^ [I(3:1)] |
| 508 | 508 | * |
| r242430 | r242431 | |
| 513 | 513 | */ |
| 514 | 514 | void pps4_device::iEX() |
| 515 | 515 | { |
| 516 | | const UINT16 i3c = ~m_I1 & 7; |
| 516 | const UINT16 i3c = ~m_I & 7; |
| 517 | 517 | const UINT8 mem = M(); |
| 518 | 518 | W(m_A); |
| 519 | 519 | m_A = mem; |
| r242430 | r242431 | |
| 522 | 522 | |
| 523 | 523 | /** |
| 524 | 524 | * @brief pps4_device::iEXD Exchange accumulator and memory and decrement BL |
| 525 | | * HEX BINARY CYCLES MNEMONIC |
| 526 | | * ---------------------------------- |
| 527 | | * 0x28+ 0010 1xxx 1 EXD x |
| 525 | * OPCODE cycles mnemonic |
| 526 | * ----------------------------- |
| 527 | * 0010 1xxx 1 cyc EXD x |
| 528 | 528 | * |
| 529 | 529 | * Symbolic equation |
| 530 | | * ---------------------------------- |
| 530 | * ----------------------------- |
| 531 | 531 | * A <-> M |
| 532 | 532 | * B(7:5) <- B(7:5) ^ [I(3:1)] |
| 533 | 533 | * BL <- BL - 1 |
| r242430 | r242431 | |
| 542 | 542 | */ |
| 543 | 543 | void pps4_device::iEXD() |
| 544 | 544 | { |
| 545 | | const UINT8 i3c = ~m_I1 & 7; |
| 545 | const UINT8 i3c = ~m_I & 7; |
| 546 | 546 | const UINT8 mem = M(); |
| 547 | 547 | UINT8 bl = m_B & 15; |
| 548 | 548 | W(m_A); |
| r242430 | r242431 | |
| 560 | 560 | |
| 561 | 561 | /** |
| 562 | 562 | * @brief pps4_device::iLDI Load accumualtor immediate |
| 563 | | * HEX BINARY CYCLES MNEMONIC |
| 564 | | * ---------------------------------- |
| 565 | | * 0x7* 0111 xxxx 1 LDI x |
| 563 | * OPCODE cycles mnemonic |
| 564 | * ----------------------------- |
| 565 | * 0111 xxxx 1 cyc LDI x |
| 566 | 566 | * |
| 567 | 567 | * Symbolic equation |
| 568 | | * ---------------------------------- |
| 568 | * ----------------------------- |
| 569 | 569 | * A <- [I(4:1)] |
| 570 | 570 | * |
| 571 | 571 | * The 4-bit contents, immediate field I(4:1), |
| r242430 | r242431 | |
| 581 | 581 | { |
| 582 | 582 | // previous LDI instruction? |
| 583 | 583 | if (0x70 == (m_Ip & 0xf0)) { |
| 584 | | LOG(("%s: skip prev:%02x op:%02x\n", __FUNCTION__, m_Ip, m_I1)); |
| 584 | LOG(("%s: skip prev:%02x op:%02x\n", __FUNCTION__, m_Ip, m_I)); |
| 585 | 585 | return; |
| 586 | 586 | } |
| 587 | | m_A = ~m_I1 & 15; |
| 587 | m_A = ~m_I & 15; |
| 588 | 588 | } |
| 589 | 589 | |
| 590 | 590 | /** |
| 591 | 591 | * @brief pps4_device::iLAX |
| 592 | | * HEX BINARY CYCLES MNEMONIC |
| 593 | | * ---------------------------------- |
| 594 | | * 0x12 0001 0010 1 LAX |
| 592 | * OPCODE cycles mnemonic |
| 593 | * ----------------------------- |
| 594 | * 0001 0010 1 cyc LAX |
| 595 | 595 | * |
| 596 | 596 | * Symbolic equation |
| 597 | | * ---------------------------------- |
| 597 | * ----------------------------- |
| 598 | 598 | * A <- X |
| 599 | 599 | * |
| 600 | 600 | * The 4-bit contents of the X register are |
| r242430 | r242431 | |
| 607 | 607 | |
| 608 | 608 | /** |
| 609 | 609 | * @brief pps4_device::iLXA |
| 610 | | * HEX BINARY CYCLES MNEMONIC |
| 611 | | * ---------------------------------- |
| 612 | | * 0x1b 0001 1011 1 LXA |
| 610 | * OPCODE cycles mnemonic |
| 611 | * ----------------------------- |
| 612 | * 0001 1011 1 cyc LXA |
| 613 | 613 | * |
| 614 | 614 | * Symbolic equation |
| 615 | | * ---------------------------------- |
| 615 | * ----------------------------- |
| 616 | 616 | * X <- A |
| 617 | 617 | * |
| 618 | 618 | * The contents of the accumulator are |
| r242430 | r242431 | |
| 625 | 625 | |
| 626 | 626 | /** |
| 627 | 627 | * @brief pps4_device::iLABL |
| 628 | | * HEX BINARY CYCLES MNEMONIC |
| 629 | | * ---------------------------------- |
| 630 | | * 0x11 0001 0001 1 LABL |
| 628 | * OPCODE cycles mnemonic |
| 629 | * ----------------------------- |
| 630 | * 0001 0001 1 cyc LABL |
| 631 | 631 | * |
| 632 | 632 | * Symbolic equation |
| 633 | | * ---------------------------------- |
| 633 | * ----------------------------- |
| 634 | 634 | * A <- BL |
| 635 | 635 | * |
| 636 | 636 | * The contents of BL register are |
| r242430 | r242431 | |
| 643 | 643 | |
| 644 | 644 | /** |
| 645 | 645 | * @brief pps4_device::iLBMX |
| 646 | | * HEX BINARY CYCLES MNEMONIC |
| 647 | | * ---------------------------------- |
| 648 | | * 0x10 0001 0000 1 LBMX |
| 646 | * OPCODE cycles mnemonic |
| 647 | * ----------------------------- |
| 648 | * 0001 0000 1 cyc LBMX |
| 649 | 649 | * |
| 650 | 650 | * Symbolic equation |
| 651 | | * ---------------------------------- |
| 651 | * ----------------------------- |
| 652 | 652 | * BM <- X |
| 653 | 653 | * |
| 654 | 654 | * The contents of X register are |
| r242430 | r242431 | |
| 661 | 661 | |
| 662 | 662 | /** |
| 663 | 663 | * @brief pps4_device::iLBUA |
| 664 | | * HEX BINARY CYCLES MNEMONIC |
| 665 | | * ---------------------------------- |
| 666 | | * 0x08 0000 0100 1 LBUA |
| 664 | * OPCODE cycles mnemonic |
| 665 | * ----------------------------- |
| 666 | * 0000 0100 1 cyc LBUA |
| 667 | 667 | * |
| 668 | 668 | * Symbolic equation |
| 669 | | * ---------------------------------- |
| 669 | * ----------------------------- |
| 670 | 670 | * BU <- A |
| 671 | 671 | * A <- M |
| 672 | 672 | * |
| r242430 | r242431 | |
| 682 | 682 | |
| 683 | 683 | /** |
| 684 | 684 | * @brief pps4_device::iXABL |
| 685 | | * HEX BINARY CYCLES MNEMONIC |
| 686 | | * ---------------------------------- |
| 687 | | * 0x19 0001 1001 1 XABL |
| 685 | * OPCODE cycles mnemonic |
| 686 | * ----------------------------- |
| 687 | * 0001 1001 1 cyc XABL |
| 688 | 688 | * |
| 689 | 689 | * Symbolic equation |
| 690 | | * ---------------------------------- |
| 690 | * ----------------------------- |
| 691 | 691 | * A <-> BL |
| 692 | 692 | * |
| 693 | 693 | * The contents of accumulator and BL register |
| r242430 | r242431 | |
| 703 | 703 | |
| 704 | 704 | /** |
| 705 | 705 | * @brief pps4_device::iXMBX |
| 706 | | * HEX BINARY CYCLES MNEMONIC |
| 707 | | * ---------------------------------- |
| 708 | | * 0x18 0001 1000 1 XMBX |
| 706 | * OPCODE cycles mnemonic |
| 707 | * ----------------------------- |
| 708 | * 0001 1000 1 cyc XMBX |
| 709 | 709 | * |
| 710 | 710 | * Symbolic equation |
| 711 | | * ---------------------------------- |
| 711 | * ----------------------------- |
| 712 | 712 | * X <-> BM |
| 713 | 713 | * |
| 714 | 714 | * The contents of accumulator and BL register |
| r242430 | r242431 | |
| 724 | 724 | |
| 725 | 725 | /** |
| 726 | 726 | * @brief pps4_device::iXAX |
| 727 | | * HEX BINARY CYCLES MNEMONIC |
| 728 | | * ---------------------------------- |
| 729 | | * 0x1a 0001 1010 1 XAX |
| 727 | * OPCODE cycles mnemonic |
| 728 | * ----------------------------- |
| 729 | * 0001 1010 1 cyc XAX |
| 730 | 730 | * |
| 731 | 731 | * Symbolic equation |
| 732 | | * ---------------------------------- |
| 732 | * ----------------------------- |
| 733 | 733 | * A <-> X |
| 734 | 734 | * |
| 735 | 735 | * The contents of accumulator and X register |
| r242430 | r242431 | |
| 745 | 745 | |
| 746 | 746 | /** |
| 747 | 747 | * @brief pps4_device::iXS |
| 748 | | * HEX BINARY CYCLES MNEMONIC |
| 749 | | * ---------------------------------- |
| 750 | | * 0x06 0000 0110 1 XS |
| 748 | * OPCODE cycles mnemonic |
| 749 | * ----------------------------- |
| 750 | * 0000 0110 1 cyc XS |
| 751 | 751 | * |
| 752 | 752 | * Symbolic equation |
| 753 | | * ---------------------------------- |
| 753 | * ----------------------------- |
| 754 | 754 | * SA <-> SB |
| 755 | 755 | * |
| 756 | 756 | * The 12-bit contents of SA and SB register |
| r242430 | r242431 | |
| 766 | 766 | |
| 767 | 767 | /** |
| 768 | 768 | * @brief pps4_device::iCYS |
| 769 | | * HEX BINARY CYCLES MNEMONIC |
| 770 | | * ---------------------------------- |
| 771 | | * 0x6f 0110 1111 1 CYS |
| 769 | * OPCODE cycles mnemonic |
| 770 | * ----------------------------- |
| 771 | * 0110 1111 1 cyc CYS |
| 772 | 772 | * |
| 773 | 773 | * Symbolic equation |
| 774 | | * ---------------------------------- |
| 774 | * ----------------------------- |
| 775 | 775 | * A <- SA(4:1) |
| 776 | 776 | * SA(4:1) <- SA(8:5) |
| 777 | 777 | * SA(8:5) <- SA(12:9) |
| r242430 | r242431 | |
| 793 | 793 | |
| 794 | 794 | /** |
| 795 | 795 | * @brief pps4_device::iLB Load B indirect |
| 796 | | * HEX BINARY CYCLES MNEMONIC |
| 797 | | * ---------------------------------- |
| 798 | | * 0xc* 1100 xxxx 2 LB x |
| 796 | * OPCODE cycles mnemonic |
| 797 | * ----------------------------- |
| 798 | * 1100 xxxx 2 cyc LB x |
| 799 | 799 | * |
| 800 | 800 | * Symbolic equation |
| 801 | | * ---------------------------------- |
| 801 | * ----------------------------- |
| 802 | 802 | * SB <- SA, SA <- P |
| 803 | 803 | * P(12:5) <- 0000 1100 |
| 804 | 804 | * P(4:1) <- I(4:1) |
| r242430 | r242431 | |
| 828 | 828 | { |
| 829 | 829 | // previous LB or LBL instruction? |
| 830 | 830 | if (0xc0 == (m_Ip & 0xf0) || 0x00 == m_Ip) { |
| 831 | | LOG(("%s: skip prev:%02x op:%02x\n", __FUNCTION__, m_Ip, m_I1)); |
| 831 | LOG(("%s: skip prev:%02x op:%02x\n", __FUNCTION__, m_Ip, m_I)); |
| 832 | 832 | return; |
| 833 | 833 | } |
| 834 | 834 | m_SB = m_SA; |
| 835 | 835 | m_SA = (m_P + 1) & 0xFFF; |
| 836 | | m_P = (3 << 6) | (m_I1 & 15); |
| 836 | m_P = (3 << 6) | (m_I & 15); |
| 837 | 837 | m_B = ~ARG() & 255; |
| 838 | 838 | m_P = m_SA; |
| 839 | 839 | // swap SA and SB |
| r242430 | r242431 | |
| 844 | 844 | |
| 845 | 845 | /** |
| 846 | 846 | * @brief pps4_device::iLBL Load B long |
| 847 | | * HEX BINARY CYCLES MNEMONIC |
| 848 | | * ---------------------------------- |
| 849 | | * 0x00 0000 0000 2 LBL |
| 847 | * OPCODE cycles mnemonic |
| 848 | * ----------------------------- |
| 849 | * 0000 0000 2 cyc LBL |
| 850 | 850 | * |
| 851 | 851 | * Symbolic equation |
| 852 | | * ---------------------------------- |
| 852 | * ----------------------------- |
| 853 | 853 | * BU <- 0000 |
| 854 | 854 | * B(8:1) <- [I2(8:1)] |
| 855 | 855 | * |
| r242430 | r242431 | |
| 870 | 870 | m_I2 = ARG(); |
| 871 | 871 | // previous LB or LBL instruction? |
| 872 | 872 | if (0xc0 == (m_Ip & 0xf0) || 0x00 == m_Ip) { |
| 873 | | LOG(("%s: skip prev:%02x op:%02x\n", __FUNCTION__, m_Ip, m_I1)); |
| 873 | LOG(("%s: skip prev:%02x op:%02x\n", __FUNCTION__, m_Ip, m_I)); |
| 874 | 874 | return; |
| 875 | 875 | } |
| 876 | 876 | m_B = ~m_I2 & 255; // Note: immediate is 1's complement |
| r242430 | r242431 | |
| 878 | 878 | |
| 879 | 879 | /** |
| 880 | 880 | * @brief pps4_device::INCB Increment B lower, skip if 0000 |
| 881 | | * HEX BINARY CYCLES MNEMONIC |
| 882 | | * ---------------------------------- |
| 883 | | * 0x17 0001 0111 1 INCB |
| 881 | * OPCODE cycles mnemonic |
| 882 | * ----------------------------- |
| 883 | * 0001 0111 1 cyc INCB |
| 884 | 884 | * |
| 885 | 885 | * Symbolic equation |
| 886 | | * ---------------------------------- |
| 886 | * ----------------------------- |
| 887 | 887 | * BL <- BL + 1 |
| 888 | 888 | * Skip on BL = 0000 |
| 889 | 889 | * |
| r242430 | r242431 | |
| 904 | 904 | |
| 905 | 905 | /** |
| 906 | 906 | * @brief pps4_device::iDECB Decrement B lower, skip if 1111 |
| 907 | | * HEX BINARY CYCLES MNEMONIC |
| 908 | | * ---------------------------------- |
| 909 | | * 0x1f 0001 1111 1 DECB |
| 907 | * OPCODE cycles mnemonic |
| 908 | * ----------------------------- |
| 909 | * 0001 1111 1 cyc DECB |
| 910 | 910 | * |
| 911 | 911 | * Symbolic equation |
| 912 | | * ---------------------------------- |
| 912 | * ----------------------------- |
| 913 | 913 | * BL <- BL - 1 |
| 914 | 914 | * Skip on BL = 1111 |
| 915 | 915 | * |
| r242430 | r242431 | |
| 930 | 930 | |
| 931 | 931 | /** |
| 932 | 932 | * @brief pps4_device::iT Transfer |
| 933 | | * HEX BINARY CYCLES MNEMONIC |
| 934 | | * ---------------------------------- |
| 935 | | * 0x80+ 10xx xxxx 1 T *xx |
| 933 | * OPCODE cycles mnemonic |
| 934 | * ----------------------------- |
| 935 | * 10xx xxxx 1 cyc T *xx |
| 936 | 936 | * |
| 937 | 937 | * Symbolic equation |
| 938 | | * ---------------------------------- |
| 938 | * ----------------------------- |
| 939 | 939 | * P(6:1) <- I(6:1) |
| 940 | 940 | * |
| 941 | 941 | * An unconditional transfer to a ROM word on the current |
| r242430 | r242431 | |
| 945 | 945 | */ |
| 946 | 946 | void pps4_device::iT() |
| 947 | 947 | { |
| 948 | | const UINT16 p = (m_P & ~63) | (m_I1 & 63); |
| 949 | | LOG(("%s: P=%03x I=%02x -> P=%03x\n", __FUNCTION__, m_P, m_I1, p)); |
| 948 | const UINT16 p = (m_P & ~63) | (m_I & 63); |
| 949 | LOG(("%s: P=%03x I=%02x -> P=%03x\n", __FUNCTION__, m_P, m_I, p)); |
| 950 | 950 | m_P = p; |
| 951 | 951 | } |
| 952 | 952 | |
| 953 | 953 | /** |
| 954 | 954 | * @brief pps4_device::iTM Transfer and mark indirect |
| 955 | | * HEX BINARY CYCLES MNEMONIC |
| 956 | | * ---------------------------------- |
| 957 | | * 0xc0+ 11xx xxxx 2 TM x |
| 958 | | * yyyy yyyy from page 3 |
| 955 | * OPCODE cycles mnemonic |
| 956 | * ----------------------------- |
| 957 | * 11xx xxxx 2 cyc TM x |
| 958 | * yyyy yyyy from page 3 |
| 959 | 959 | * |
| 960 | 960 | * Symbolic equation |
| 961 | | * ---------------------------------- |
| 961 | * ----------------------------- |
| 962 | 962 | * SB <- SA, SA <- P |
| 963 | 963 | * P(12:7) <- 000011 |
| 964 | 964 | * P(6:1) <- I1(6:1) |
| r242430 | r242431 | |
| 979 | 979 | { |
| 980 | 980 | m_SB = m_SA; |
| 981 | 981 | m_SA = m_P; |
| 982 | | m_P = (3 << 6) | (m_I1 & 63); |
| 982 | m_P = (3 << 6) | (m_I & 63); |
| 983 | 983 | m_I2 = ARG(); |
| 984 | 984 | m_P = (1 << 8) | m_I2; |
| 985 | 985 | } |
| 986 | 986 | |
| 987 | 987 | /** |
| 988 | 988 | * @brief pps4_device::iTL Transfer long |
| 989 | | * HEX BINARY CYCLES MNEMONIC |
| 990 | | * ---------------------------------- |
| 991 | | * 0x5x 0101 xxxx 2 TL xyy |
| 992 | | * yyyy yyyy |
| 989 | * OPCODE cycles mnemonic |
| 990 | * ----------------------------- |
| 991 | * 0101 xxxx 2 cyc TL xyy |
| 992 | * yyyy yyyy |
| 993 | 993 | * |
| 994 | 994 | * Symbolic equation |
| 995 | | * ---------------------------------- |
| 995 | * ----------------------------- |
| 996 | 996 | * P(12:9) <- I1(4:1) |
| 997 | 997 | * P(8:1) <- I2(8:1) |
| 998 | 998 | * |
| r242430 | r242431 | |
| 1004 | 1004 | void pps4_device::iTL() |
| 1005 | 1005 | { |
| 1006 | 1006 | m_I2 = ARG(); |
| 1007 | | m_P = ((m_I1 & 15) << 8) | m_I2; |
| 1007 | m_P = ((m_I & 15) << 8) | m_I2; |
| 1008 | 1008 | } |
| 1009 | 1009 | |
| 1010 | 1010 | /** |
| 1011 | 1011 | * @brief pps4_device::iTML Transfer and mark long |
| 1012 | | * HEX BINARY CYCLES MNEMONIC |
| 1013 | | * ---------------------------------- |
| 1014 | | * 0x0* 0000 xxxx 2 TML xyy |
| 1015 | | * yyyy yyyy |
| 1012 | * OPCODE cycles mnemonic |
| 1013 | * ----------------------------- |
| 1014 | * 0101 xxxx 2 cyc TML xyy |
| 1015 | * yyyy yyyy |
| 1016 | 1016 | * |
| 1017 | 1017 | * Symbolic equation |
| 1018 | | * ---------------------------------- |
| 1018 | * ----------------------------- |
| 1019 | 1019 | * SB <- SA, SA <- P |
| 1020 | 1020 | * P(12:9) <- I1(4:1) |
| 1021 | 1021 | * P(8:1) <- I2(8:1) |
| r242430 | r242431 | |
| 1031 | 1031 | m_I2 = ARG(); |
| 1032 | 1032 | m_SB = m_SA; |
| 1033 | 1033 | m_SA = m_P; |
| 1034 | | m_P = ((m_I1 & 15) << 8) | m_I2; |
| 1034 | m_P = ((m_I & 15) << 8) | m_I2; |
| 1035 | 1035 | } |
| 1036 | 1036 | |
| 1037 | 1037 | /** |
| 1038 | 1038 | * @brief pps4_device::iSKC Skip on carry flip-flop |
| 1039 | | * HEX BINARY CYCLES MNEMONIC |
| 1040 | | * ---------------------------------- |
| 1041 | | * 0x15 0001 0101 1 SKC |
| 1039 | * OPCODE cycles mnemonic |
| 1040 | * ----------------------------- |
| 1041 | * 0001 0101 1 cyc SKC |
| 1042 | 1042 | * |
| 1043 | 1043 | * Symbolic equation |
| 1044 | | * ---------------------------------- |
| 1044 | * ----------------------------- |
| 1045 | 1045 | * Skip if C = 1 |
| 1046 | 1046 | * |
| 1047 | 1047 | * The next ROM word will be ignored if C flip-flop is 1. |
| r242430 | r242431 | |
| 1053 | 1053 | |
| 1054 | 1054 | /** |
| 1055 | 1055 | * @brief pps4_device::iSKC Skip on carry flip-flop |
| 1056 | | * HEX BINARY CYCLES MNEMONIC |
| 1057 | | * ---------------------------------- |
| 1058 | | * 0x1e 0001 1110 1 SKZ |
| 1056 | * OPCODE cycles mnemonic |
| 1057 | * ----------------------------- |
| 1058 | * 0001 1110 1 cyc SKZ |
| 1059 | 1059 | * |
| 1060 | 1060 | * Symbolic equation |
| 1061 | | * ---------------------------------- |
| 1061 | * ----------------------------- |
| 1062 | 1062 | * Skip if A = 0 |
| 1063 | 1063 | * |
| 1064 | 1064 | * The next ROM word will be ignored if C flip-flop is 1. |
| r242430 | r242431 | |
| 1070 | 1070 | |
| 1071 | 1071 | /** |
| 1072 | 1072 | * @brief pps4_device::iSKBI Skip if BL equal to immediate |
| 1073 | | * HEX BINARY CYCLES MNEMONIC |
| 1074 | | * ---------------------------------- |
| 1075 | | * 0x4* 0100 xxxx 1 SKBI x |
| 1073 | * OPCODE cycles mnemonic |
| 1074 | * ----------------------------- |
| 1075 | * 0100 xxxx 1 cyc SKBI x |
| 1076 | 1076 | * |
| 1077 | 1077 | * Symbolic equation |
| 1078 | | * ---------------------------------- |
| 1078 | * ----------------------------- |
| 1079 | 1079 | * Skip if BL = I(4:1) |
| 1080 | 1080 | * |
| 1081 | 1081 | * The next ROM word will be ignored if the least significant |
| r242430 | r242431 | |
| 1084 | 1084 | */ |
| 1085 | 1085 | void pps4_device::iSKBI() |
| 1086 | 1086 | { |
| 1087 | | const UINT8 i4 = m_I1 & 15; |
| 1087 | const UINT8 i4 = m_I & 15; |
| 1088 | 1088 | const UINT8 bl = m_B & 15; |
| 1089 | 1089 | m_Skip = bl == i4 ? 1 : 0; |
| 1090 | 1090 | } |
| 1091 | 1091 | |
| 1092 | 1092 | /** |
| 1093 | 1093 | * @brief pps4_device::iSKF1 Skip if FF1 equals 1 |
| 1094 | | * HEX BINARY CYCLES MNEMONIC |
| 1095 | | * ---------------------------------- |
| 1096 | | * 0x16 0001 0110 1 SKF1 |
| 1094 | * OPCODE cycles mnemonic |
| 1095 | * ----------------------------- |
| 1096 | * 0001 0110 1 cyc SKF1 |
| 1097 | 1097 | * |
| 1098 | 1098 | * Symbolic equation |
| 1099 | | * ---------------------------------- |
| 1099 | * ----------------------------- |
| 1100 | 1100 | * Skip if FF1 = 1 |
| 1101 | 1101 | */ |
| 1102 | 1102 | void pps4_device::iSKF1() |
| r242430 | r242431 | |
| 1106 | 1106 | |
| 1107 | 1107 | /** |
| 1108 | 1108 | * @brief pps4_device::iSKF2 Skip if FF2 equals 1 |
| 1109 | | * HEX BINARY CYCLES MNEMONIC |
| 1110 | | * ---------------------------------- |
| 1111 | | * 0x14 0001 0100 1 SKF2 |
| 1109 | * OPCODE cycles mnemonic |
| 1110 | * ----------------------------- |
| 1111 | * 0001 0100 1 cyc SKF2 |
| 1112 | 1112 | * |
| 1113 | 1113 | * Symbolic equation |
| 1114 | | * ---------------------------------- |
| 1114 | * ----------------------------- |
| 1115 | 1115 | * Skip if FF2 = 1 |
| 1116 | 1116 | */ |
| 1117 | 1117 | void pps4_device::iSKF2() |
| r242430 | r242431 | |
| 1121 | 1121 | |
| 1122 | 1122 | /** |
| 1123 | 1123 | * @brief pps4_device::iRTN Return |
| 1124 | | * HEX BINARY CYCLES MNEMONIC |
| 1125 | | * ---------------------------------- |
| 1126 | | * 0x05 0000 0101 1 RTN |
| 1124 | * OPCODE cycles mnemonic |
| 1125 | * ----------------------------- |
| 1126 | * 0000 0101 1 cyc RTN |
| 1127 | 1127 | * |
| 1128 | 1128 | * Symbolic equation |
| 1129 | | * ---------------------------------- |
| 1129 | * ----------------------------- |
| 1130 | 1130 | * P <- SA, SA <-> SB |
| 1131 | 1131 | * |
| 1132 | 1132 | * This instruction executes a return from subroutine |
| r242430 | r242431 | |
| 1143 | 1143 | } |
| 1144 | 1144 | |
| 1145 | 1145 | /** |
| 1146 | | * @brief pps4_device::iRTNSK Return and skip |
| 1147 | | * HEX BINARY CYCLES MNEMONIC |
| 1148 | | * ---------------------------------- |
| 1149 | | * 0x07 0000 0111 1 RTNSK |
| 1146 | * @brief pps4_device::iRTN Return |
| 1147 | * OPCODE cycles mnemonic |
| 1148 | * ----------------------------- |
| 1149 | * 0000 0111 1 cyc RTNSK |
| 1150 | 1150 | * |
| 1151 | 1151 | * Symbolic equation |
| 1152 | | * ---------------------------------- |
| 1152 | * ----------------------------- |
| 1153 | 1153 | * P <- SA, SA <-> SB |
| 1154 | 1154 | * P <- P + 1 |
| 1155 | 1155 | * |
| r242430 | r242431 | |
| 1167 | 1167 | } |
| 1168 | 1168 | |
| 1169 | 1169 | /** |
| 1170 | | * @brief pps4_device::IOL Input / Output Long |
| 1171 | | * HEX BINARY CYCLES MNEMONIC |
| 1172 | | * ---------------------------------- |
| 1173 | | * 0x1c 0001 1100 2 IOL yy |
| 1174 | | * yyyy yyyy |
| 1170 | * @brief pps4_device::IOL |
| 1171 | * OPCODE cycles mnemonic |
| 1172 | * ----------------------------- |
| 1173 | * 0001 1100 2 cyc IOL yy |
| 1174 | * yyyy yyyy |
| 1175 | 1175 | * |
| 1176 | 1176 | * Symbolic equation |
| 1177 | | * ---------------------------------- |
| 1177 | * ----------------------------- |
| 1178 | 1178 | * ~A -> Data Bus |
| 1179 | 1179 | * A <- ~Data Bus |
| 1180 | 1180 | * I2 -> I/O device |
| r242430 | r242431 | |
| 1189 | 1189 | * device is transferred to the accumulator inverted. |
| 1190 | 1190 | * |
| 1191 | 1191 | * FIXME: Is BL on the I/D:8-5 lines during the I/O cycle? |
| 1192 | | * The ROM, RAM, I/O chips A17xx suggest this, because they |
| 1193 | | * expect the value of BL to address one of the sixteen |
| 1194 | | * input/output lines. |
| 1195 | 1192 | */ |
| 1196 | 1193 | void pps4_device::iIOL() |
| 1197 | 1194 | { |
| r242430 | r242431 | |
| 1206 | 1203 | |
| 1207 | 1204 | /** |
| 1208 | 1205 | * @brief pps4_device::iDIA Discrete input group A |
| 1209 | | * HEX BINARY CYCLES MNEMONIC |
| 1210 | | * ---------------------------------- |
| 1211 | | * 0x27 0010 0111 1 DIA |
| 1206 | * OPCODE cycles mnemonic |
| 1207 | * ----------------------------- |
| 1208 | * 0010 0111 1 cyc DIA |
| 1212 | 1209 | * |
| 1213 | 1210 | * Symbolic equation |
| 1214 | | * ---------------------------------- |
| 1211 | * ----------------------------- |
| 1215 | 1212 | * A <- DIA |
| 1216 | 1213 | * |
| 1217 | 1214 | * Data at the inputs to discrete group A is |
| r242430 | r242431 | |
| 1224 | 1221 | |
| 1225 | 1222 | /** |
| 1226 | 1223 | * @brief pps4_device::iDIB Discrete input group B |
| 1227 | | * HEX BINARY CYCLES MNEMONIC |
| 1228 | | * ---------------------------------- |
| 1229 | | * 0x23 0010 0011 1 DIB |
| 1224 | * OPCODE cycles mnemonic |
| 1225 | * ----------------------------- |
| 1226 | * 0010 0011 1 cyc DIB |
| 1230 | 1227 | * |
| 1231 | 1228 | * Symbolic equation |
| 1232 | | * ---------------------------------- |
| 1229 | * ----------------------------- |
| 1233 | 1230 | * A <- DIB |
| 1234 | 1231 | * |
| 1235 | 1232 | * Data at the inputs to discrete group B is |
| r242430 | r242431 | |
| 1242 | 1239 | |
| 1243 | 1240 | /** |
| 1244 | 1241 | * @brief pps4_device::iDOA Discrete output |
| 1245 | | * HEX BINARY CYCLES MNEMONIC |
| 1246 | | * ---------------------------------- |
| 1247 | | * 0x1d 0001 1101 1 DOA |
| 1242 | * OPCODE cycles mnemonic |
| 1243 | * ----------------------------- |
| 1244 | * 0001 1101 1 cyc DOA |
| 1248 | 1245 | * |
| 1249 | 1246 | * Symbolic equation |
| 1250 | | * ---------------------------------- |
| 1247 | * ----------------------------- |
| 1251 | 1248 | * DOA <- A |
| 1252 | 1249 | * |
| 1253 | 1250 | * The contents of the accumulator are transferred |
| r242430 | r242431 | |
| 1260 | 1257 | |
| 1261 | 1258 | /** |
| 1262 | 1259 | * @brief pps4_device::iSAG Special address generation |
| 1263 | | * HEX BINARY CYCLES MNEMONIC |
| 1264 | | * ---------------------------------- |
| 1265 | | * 0x2d 0001 0011 1 SAG |
| 1260 | * OPCODE cycles mnemonic |
| 1261 | * ----------------------------- |
| 1262 | * 0010 1101 1 cyc SAG |
| 1266 | 1263 | * |
| 1267 | 1264 | * Symbolic equation |
| 1268 | | * ---------------------------------- |
| 1265 | * ----------------------------- |
| 1269 | 1266 | * A/B Bus (12:5) <- 0000 0000 |
| 1270 | 1267 | * A/B Bus (4:1) <- BL(4:1) |
| 1271 | 1268 | * Contents of B remains unchanged |
| r242430 | r242431 | |
| 1286 | 1283 | ***************************************************************************/ |
| 1287 | 1284 | void pps4_device::execute_one() |
| 1288 | 1285 | { |
| 1289 | | m_I1 = ROP(); |
| 1286 | m_I = ROP(); |
| 1290 | 1287 | if (m_Skip) { |
| 1291 | 1288 | m_Skip = 0; |
| 1292 | | LOG(("%s: skip op:%02x\n", __FUNCTION__, m_I1)); |
| 1289 | LOG(("%s: skip op:%02x\n", __FUNCTION__, m_I)); |
| 1293 | 1290 | return; |
| 1294 | 1291 | } |
| 1295 | | switch (m_I1) { |
| 1292 | switch (m_I) { |
| 1296 | 1293 | case 0x00: |
| 1297 | 1294 | iLBL(); |
| 1298 | 1295 | break; |
| r242430 | r242431 | |
| 1531 | 1528 | save_item(NAME(m_C)); |
| 1532 | 1529 | save_item(NAME(m_FF1)); |
| 1533 | 1530 | save_item(NAME(m_FF2)); |
| 1534 | | save_item(NAME(m_I1)); |
| 1531 | save_item(NAME(m_I)); |
| 1535 | 1532 | save_item(NAME(m_I2)); |
| 1536 | 1533 | save_item(NAME(m_Ip)); |
| 1537 | 1534 | |
| 1538 | 1535 | state_add( PPS4_PC, "PC", m_P ).mask(0xFFF).formatstr("%03X"); |
| 1539 | | state_add( PPS4_A, "A", m_A ).formatstr("%01X"); |
| 1540 | | state_add( PPS4_X, "X", m_X ).formatstr("%01X"); |
| 1536 | state_add( PPS4_A, "A", m_A ).formatstr("%01X"); |
| 1537 | state_add( PPS4_X, "X", m_X ).formatstr("%01X"); |
| 1541 | 1538 | state_add( PPS4_SA, "SA", m_SA ).formatstr("%03X"); |
| 1542 | 1539 | state_add( PPS4_SB, "SB", m_SB ).formatstr("%03X"); |
| 1543 | | state_add( PPS4_Skip, "Skip", m_Skip ).formatstr("%01X"); |
| 1544 | | state_add( PPS4_SAG, "SAG", m_SAG ).formatstr("%03X"); |
| 1545 | | state_add( PPS4_B, "B", m_B ).formatstr("%03X"); |
| 1546 | | state_add( PPS4_I1, "I1", m_I1 ).formatstr("%02X").noshow(); |
| 1547 | | state_add( PPS4_I2, "I2", m_I2 ).formatstr("%02X").noshow(); |
| 1548 | | state_add( PPS4_Ip, "Ip", m_Ip ).formatstr("%02X").noshow(); |
| 1549 | | state_add( STATE_GENPC, "GENPC", m_P ).noshow(); |
| 1540 | state_add( PPS4_Skip, "Skip", m_Skip ).formatstr("%01X"); |
| 1541 | state_add( PPS4_SAG, "SAG", m_SAG ).formatstr("%03X"); |
| 1542 | state_add( PPS4_B, "B", m_B ).formatstr("%03X"); |
| 1543 | state_add( PPS4_I2, "I", m_I ).formatstr("%02X").noshow(); |
| 1544 | state_add( PPS4_I2, "I2", m_I2 ).formatstr("%02X").noshow(); |
| 1545 | state_add( PPS4_Ip, "Ip", m_Ip ).formatstr("%02X").noshow(); |
| 1546 | state_add( STATE_GENPC, "GENPC", m_P ).noshow(); |
| 1550 | 1547 | state_add( STATE_GENFLAGS, "GENFLAGS", m_C).formatstr("%3s").noshow(); |
| 1551 | 1548 | |
| 1552 | 1549 | m_icountptr = &m_icount; |
| r242430 | r242431 | |
| 1581 | 1578 | m_C = 0; // Carry flip-flop |
| 1582 | 1579 | m_FF1 = 0; // Flip-flop 1 |
| 1583 | 1580 | m_FF2 = 0; // Flip-flop 2 |
| 1584 | | m_I1 = 0; // Most recent instruction I(8:1) |
| 1581 | m_I = 0; // Most recent instruction I(8:1) |
| 1585 | 1582 | m_I2 = 0; // Most recent parameter I2(8:1) |
| 1586 | 1583 | m_Ip = 0; // Previous instruction I(8:1) |
| 1587 | 1584 | } |
trunk/src/mess/layout/tandy12.lay
| r242430 | r242431 | |
| 1 | 1 | <?xml version="1.0"?> |
| 2 | 2 | <mamelayout version="2"> |
| 3 | 3 | |
| 4 | | <!-- define elements --> |
| 5 | 4 | |
| 6 | | <element name="static_orange"><rect><color red="0.9" green="0.65" blue="0.3" /></rect></element> |
| 7 | | <element name="static_offblack"><rect><color red="0.3" green="0.3" blue="0.29" /></rect></element> |
| 8 | | <element name="static_offwhite"><rect><color red="0.86" green="0.84" blue="0.7" /></rect></element> |
| 5 | <!-- ugly layout is temp, will be improved soon --> |
| 9 | 6 | |
| 10 | | <element name="text_repeat"> |
| 11 | | <rect><color red="0.86" green="0.84" blue="0.7" /></rect> |
| 12 | | <text string="REPEAT-2"><color red="1.0" green="0.99" blue="0.85" /></text> |
| 13 | | </element> |
| 14 | | <element name="text_space"> |
| 15 | | <rect><color red="0.86" green="0.84" blue="0.7" /></rect> |
| 16 | | <text string="SPACE-2"><color red="1.0" green="0.99" blue="0.85" /></text> |
| 17 | | </element> |
| 18 | 7 | |
| 19 | | <element name="text_start"> |
| 20 | | <rect><color red="0.86" green="0.84" blue="0.7" /></rect> |
| 21 | | <text string="START"><color red="1.0" green="0.99" blue="0.85" /></text> |
| 22 | | </element> |
| 23 | | <element name="text_select"> |
| 24 | | <rect><color red="0.86" green="0.84" blue="0.7" /></rect> |
| 25 | | <text string="SELECT"><color red="1.0" green="0.99" blue="0.85" /></text> |
| 26 | | </element> |
| 27 | | <element name="text_play"> |
| 28 | | <rect><color red="0.86" green="0.84" blue="0.7" /></rect> |
| 29 | | <text string="PLAY-2/HIT-7"><color red="1.0" green="0.99" blue="0.85" /></text> |
| 30 | | </element> |
| 31 | 8 | |
| 32 | 9 | |
| 33 | | <element name="maskd" defstate="0"> |
| 34 | | <disk state="1"><color red="1" green="1" blue="1" /></disk> |
| 35 | | </element> |
| 10 | <!-- define elements --> |
| 36 | 11 | |
| 37 | | <element name="mask1" defstate="0"> |
| 38 | | <rect state="0"><color red="0" green="0" blue="0" /></rect> |
| 39 | | <rect state="1"><color red="1.0" green="1.0" blue="1.0" /></rect> |
| 12 | <element name="lamp_dot" defstate="0"> |
| 13 | <disk state="1"><color red="1.0" green="0.3" blue="0.2" /></disk> |
| 14 | <disk state="0"><color red="0.125490" green="0.035294" blue="0.0235294" /></disk> |
| 40 | 15 | </element> |
| 41 | 16 | |
| 42 | | <element name="mask2" defstate="0"> |
| 43 | | <rect state="0"> |
| 44 | | <color red="0" green="0" blue="0" /> |
| 45 | | <bounds x="0.94" y="0.0" width="0.06" height="1.0" /> |
| 46 | | </rect> |
| 47 | | <rect state="0"> |
| 48 | | <color red="0" green="0" blue="0" /> |
| 49 | | <bounds x="0.0" y="0.94" width="1.0" height="0.06" /> |
| 50 | | </rect> |
| 51 | | </element> |
| 52 | 17 | |
| 53 | | <element name="mask3" defstate="0"> |
| 54 | | <rect state="0"> |
| 55 | | <color red="0" green="0" blue="0" /> |
| 56 | | <bounds x="0.94" y="0.0" width="0.06" height="0.06" /> |
| 57 | | </rect> |
| 58 | | <rect state="0"> |
| 59 | | <color red="0" green="0" blue="0" /> |
| 60 | | <bounds x="0.0" y="0.94" width="0.06" height="0.06" /> |
| 61 | | </rect> |
| 62 | | </element> |
| 63 | 18 | |
| 64 | | <element name="mask4" defstate="0"> |
| 65 | | <rect state="1"> |
| 66 | | <color red="0" green="0" blue="0" /> |
| 67 | | <bounds x="0.0" y="0.0" width="0.06" height="1.0" /> |
| 68 | | </rect> |
| 69 | | <rect state="1"> |
| 70 | | <color red="0" green="0" blue="0" /> |
| 71 | | <bounds x="0.0" y="0.0" width="1.0" height="0.06" /> |
| 72 | | </rect> |
| 73 | | </element> |
| 74 | | |
| 75 | | |
| 76 | | <element name="button1"><rect state="0"><color red="0.5" green="0.1" blue="1.0" /></rect></element> |
| 77 | | <element name="button2"><rect state="0"><color red="1.0" green="0.75" blue="0.2" /></rect></element> |
| 78 | | <element name="button3"><rect state="0"><color red="1.0" green="0.2" blue="0.8" /></rect></element> |
| 79 | | <element name="button4"><rect state="0"><color red="0.1" green="0.7" blue="0.1" /></rect></element> |
| 80 | | <element name="button5"><rect state="0"><color red="0.25" green="0.25" blue="1.0" /></rect></element> |
| 81 | | <element name="button6"><rect state="0"><color red="0.2" green="0.9" blue="1.0" /></rect></element> |
| 82 | | <element name="button7"><rect state="0"><color red="0.9" green="0.9" blue="0.2" /></rect></element> |
| 83 | | <element name="button8"><rect state="0"><color red="1.0" green="0.42" blue="0.2" /></rect></element> |
| 84 | | <element name="button9"><rect state="0"><color red="0.53" green="1.0" blue="0.5" /></rect></element> |
| 85 | | <element name="button10"><rect state="0"><color red="1.0" green="0.23" blue="0.25" /></rect></element> |
| 86 | | <element name="button11"><rect state="0"><color red="0.7" green="0.5" blue="1.0" /></rect></element> |
| 87 | | <element name="button12"><rect state="0"><color red="0.66" green="0.25" blue="0.1" /></rect></element> |
| 88 | | |
| 89 | | <element name="text_g1"><text string="ORGAN" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element> |
| 90 | | <element name="text_g2"><text string="SONG WRITER" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element> |
| 91 | | <element name="text_g3"><text string="REPEAT" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element> |
| 92 | | <element name="text_g4"><text string="TORPEDO" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element> |
| 93 | | <element name="text_g5"><text string="TAG-IT" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element> |
| 94 | | <element name="text_g6"><text string="ROULETTE" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element> |
| 95 | | <element name="text_g7"><text string="BASEBALL" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element> |
| 96 | | <element name="text_g8"><text string="REPEAT PLUS" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element> |
| 97 | | <element name="text_g9"><text string="TREASURE HUNT" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element> |
| 98 | | <element name="text_g10"><text string="COMPETE" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element> |
| 99 | | <element name="text_g11"><text string="FIRE AWAY" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element> |
| 100 | | <element name="text_g12"><text string="HIDE 'N SEEK" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element> |
| 101 | | |
| 102 | | <element name="text_b1"><text string="1"><color red="0.94" green="0.94" blue="0.94" /></text></element> |
| 103 | | <element name="text_b2"><text string="2"><color red="0.94" green="0.94" blue="0.94" /></text></element> |
| 104 | | <element name="text_b3"><text string="3"><color red="0.94" green="0.94" blue="0.94" /></text></element> |
| 105 | | <element name="text_b4"><text string="4"><color red="0.94" green="0.94" blue="0.94" /></text></element> |
| 106 | | <element name="text_b5"><text string="5"><color red="0.94" green="0.94" blue="0.94" /></text></element> |
| 107 | | <element name="text_b6"><text string="6"><color red="0.94" green="0.94" blue="0.94" /></text></element> |
| 108 | | <element name="text_b7"><text string="7"><color red="0.94" green="0.94" blue="0.94" /></text></element> |
| 109 | | <element name="text_b8"><text string="8"><color red="0.94" green="0.94" blue="0.94" /></text></element> |
| 110 | | <element name="text_b9"><text string="9"><color red="0.94" green="0.94" blue="0.94" /></text></element> |
| 111 | | <element name="text_b10"><text string="10"><color red="0.94" green="0.94" blue="0.94" /></text></element> |
| 112 | | <element name="text_b11"><text string="11"><color red="0.94" green="0.94" blue="0.94" /></text></element> |
| 113 | | <element name="text_b12"><text string="12"><color red="0.94" green="0.94" blue="0.94" /></text></element> |
| 114 | | |
| 115 | | |
| 116 | | |
| 117 | 19 | <!-- build screen --> |
| 118 | 20 | |
| 119 | 21 | <view name="Internal Layout"> |
| 120 | | <bounds left="0" right="42" top="0" bottom="75" /> |
| 22 | <bounds left="0" right="100" top="0" bottom="100" /> |
| 121 | 23 | |
| 122 | | <bezel element="static_offwhite"><bounds x="0" y="0" width="42" height="6" /></bezel> |
| 123 | | <bezel element="static_offwhite"><bounds x="0" y="69" width="42" height="6" /></bezel> |
| 24 | <bezel name="lamp0" element="lamp_dot"><bounds x="10" y="10" width="5" height="5" /></bezel> |
| 25 | <bezel name="lamp4" element="lamp_dot"><bounds x="20" y="10" width="5" height="5" /></bezel> |
| 26 | <bezel name="lamp8" element="lamp_dot"><bounds x="30" y="10" width="5" height="5" /></bezel> |
| 124 | 27 | |
| 125 | | <!-- misc buttons --> |
| 28 | <bezel name="lamp1" element="lamp_dot"><bounds x="10" y="20" width="5" height="5" /></bezel> |
| 29 | <bezel name="lamp5" element="lamp_dot"><bounds x="20" y="20" width="5" height="5" /></bezel> |
| 30 | <bezel name="lamp9" element="lamp_dot"><bounds x="30" y="20" width="5" height="5" /></bezel> |
| 126 | 31 | |
| 127 | | <bezel element="static_orange"><bounds x="12" y="2" width="2" height="2" /></bezel> |
| 128 | | <bezel element="static_orange"><bounds x="28" y="2" width="2" height="2" /></bezel> |
| 32 | <bezel name="lamp2" element="lamp_dot"><bounds x="10" y="30" width="5" height="5" /></bezel> |
| 33 | <bezel name="lamp6" element="lamp_dot"><bounds x="20" y="30" width="5" height="5" /></bezel> |
| 34 | <bezel name="lamp10" element="lamp_dot"><bounds x="30" y="30" width="5" height="5" /></bezel> |
| 129 | 35 | |
| 130 | | <bezel element="maskd" inputtag="IN.2" inputmask="0x01"> |
| 131 | | <bounds x="12.05" y="2.05" width="1.9" height="1.9" /> |
| 132 | | <color alpha="0.2" /> |
| 133 | | </bezel> |
| 134 | | <bezel element="maskd" inputtag="IN.1" inputmask="0x01"> |
| 135 | | <bounds x="28.05" y="2.05" width="1.9" height="1.9" /> |
| 136 | | <color alpha="0.2" /> |
| 137 | | </bezel> |
| 36 | <bezel name="lamp3" element="lamp_dot"><bounds x="10" y="40" width="5" height="5" /></bezel> |
| 37 | <bezel name="lamp7" element="lamp_dot"><bounds x="20" y="40" width="5" height="5" /></bezel> |
| 38 | <bezel name="lamp11" element="lamp_dot"><bounds x="30" y="40" width="5" height="5" /></bezel> |
| 138 | 39 | |
| 139 | | <bezel element="text_repeat"><bounds x="8" y="0.2" width="10" height="1.4" /></bezel> |
| 140 | | <bezel element="text_space"><bounds x="24" y="0.2" width="10" height="1.4" /></bezel> |
| 141 | 40 | |
| 142 | | |
| 143 | | <bezel element="static_offblack"><bounds x="12" y="71" width="2" height="2" /></bezel> |
| 144 | | <bezel element="static_offblack"><bounds x="20" y="71" width="2" height="2" /></bezel> |
| 145 | | <bezel element="static_offblack"><bounds x="28" y="71" width="2" height="2" /></bezel> |
| 146 | | |
| 147 | | <bezel element="maskd" inputtag="IN.1" inputmask="0x08"> |
| 148 | | <bounds x="12.05" y="71.05" width="1.9" height="1.9" /> |
| 149 | | <color alpha="0.2" /> |
| 150 | | </bezel> |
| 151 | | <bezel element="maskd" inputtag="IN.1" inputmask="0x04"> |
| 152 | | <bounds x="20.05" y="71.05" width="1.9" height="1.9" /> |
| 153 | | <color alpha="0.2" /> |
| 154 | | </bezel> |
| 155 | | <bezel element="maskd" inputtag="IN.1" inputmask="0x02"> |
| 156 | | <bounds x="28.05" y="71.05" width="1.9" height="1.9" /> |
| 157 | | <color alpha="0.2" /> |
| 158 | | </bezel> |
| 159 | | |
| 160 | | <bezel element="text_start"><bounds x="8" y="73.2" width="10" height="1.4" /></bezel> |
| 161 | | <bezel element="text_select"><bounds x="16" y="73.2" width="10" height="1.4" /></bezel> |
| 162 | | <bezel element="text_play"><bounds x="24" y="73.2" width="10" height="1.4" /></bezel> |
| 163 | | |
| 164 | | |
| 165 | | <!-- coloured lighted buttons --> |
| 166 | | <!-- row 1 5 9 --> |
| 167 | | |
| 168 | | <bezel element="button1"> |
| 169 | | <bounds x="3" y="9" width="10" height="12" /> |
| 170 | | </bezel> |
| 171 | | <bezel name="lamp1" element="mask1"> |
| 172 | | <bounds x="3" y="9" width="10" height="12" /> |
| 173 | | <color alpha="0.4" /> |
| 174 | | </bezel> |
| 175 | | <bezel element="mask2" inputtag="IN.3" inputmask="0x08"> |
| 176 | | <bounds x="3" y="9" width="10" height="12" /> |
| 177 | | <color alpha="0.4" /> |
| 178 | | </bezel> |
| 179 | | <bezel element="mask3" inputtag="IN.3" inputmask="0x08"> |
| 180 | | <bounds x="3" y="9" width="10" height="12" /> |
| 181 | | </bezel> |
| 182 | | <bezel element="mask4" inputtag="IN.3" inputmask="0x08"> |
| 183 | | <bounds x="3" y="9" width="10" height="12" /> |
| 184 | | </bezel> |
| 185 | | |
| 186 | | <bezel element="button5"> |
| 187 | | <bounds x="16" y="9" width="10" height="12" /> |
| 188 | | </bezel> |
| 189 | | <bezel name="lamp5" element="mask1"> |
| 190 | | <bounds x="16" y="9" width="10" height="12" /> |
| 191 | | <color alpha="0.4" /> |
| 192 | | </bezel> |
| 193 | | <bezel element="mask2" inputtag="IN.4" inputmask="0x08"> |
| 194 | | <bounds x="16" y="9" width="10" height="12" /> |
| 195 | | <color alpha="0.4" /> |
| 196 | | </bezel> |
| 197 | | <bezel element="mask3" inputtag="IN.4" inputmask="0x08"> |
| 198 | | <bounds x="16" y="9" width="10" height="12" /> |
| 199 | | </bezel> |
| 200 | | <bezel element="mask4" inputtag="IN.4" inputmask="0x08"> |
| 201 | | <bounds x="16" y="9" width="10" height="12" /> |
| 202 | | </bezel> |
| 203 | | |
| 204 | | <bezel element="button9"> |
| 205 | | <bounds x="29" y="9" width="10" height="12" /> |
| 206 | | </bezel> |
| 207 | | <bezel name="lamp9" element="mask1"> |
| 208 | | <bounds x="29" y="9" width="10" height="12" /> |
| 209 | | <color alpha="0.4" /> |
| 210 | | </bezel> |
| 211 | | <bezel element="mask2" inputtag="IN.0" inputmask="0x08"> |
| 212 | | <bounds x="29" y="9" width="10" height="12" /> |
| 213 | | <color alpha="0.4" /> |
| 214 | | </bezel> |
| 215 | | <bezel element="mask3" inputtag="IN.0" inputmask="0x08"> |
| 216 | | <bounds x="29" y="9" width="10" height="12" /> |
| 217 | | </bezel> |
| 218 | | <bezel element="mask4" inputtag="IN.0" inputmask="0x08"> |
| 219 | | <bounds x="29" y="9" width="10" height="12" /> |
| 220 | | </bezel> |
| 221 | | |
| 222 | | <!-- row 2 6 10 --> |
| 223 | | |
| 224 | | <bezel element="button2"> |
| 225 | | <bounds x="3" y="24" width="10" height="12" /> |
| 226 | | </bezel> |
| 227 | | <bezel name="lamp2" element="mask1"> |
| 228 | | <bounds x="3" y="24" width="10" height="12" /> |
| 229 | | <color alpha="0.4" /> |
| 230 | | </bezel> |
| 231 | | <bezel element="mask2" inputtag="IN.3" inputmask="0x04"> |
| 232 | | <bounds x="3" y="24" width="10" height="12" /> |
| 233 | | <color alpha="0.4" /> |
| 234 | | </bezel> |
| 235 | | <bezel element="mask3" inputtag="IN.3" inputmask="0x04"> |
| 236 | | <bounds x="3" y="24" width="10" height="12" /> |
| 237 | | </bezel> |
| 238 | | <bezel element="mask4" inputtag="IN.3" inputmask="0x04"> |
| 239 | | <bounds x="3" y="24" width="10" height="12" /> |
| 240 | | </bezel> |
| 241 | | |
| 242 | | <bezel element="button6"> |
| 243 | | <bounds x="16" y="24" width="10" height="12" /> |
| 244 | | </bezel> |
| 245 | | <bezel name="lamp6" element="mask1"> |
| 246 | | <bounds x="16" y="24" width="10" height="12" /> |
| 247 | | <color alpha="0.4" /> |
| 248 | | </bezel> |
| 249 | | <bezel element="mask2" inputtag="IN.4" inputmask="0x04"> |
| 250 | | <bounds x="16" y="24" width="10" height="12" /> |
| 251 | | <color alpha="0.4" /> |
| 252 | | </bezel> |
| 253 | | <bezel element="mask3" inputtag="IN.4" inputmask="0x04"> |
| 254 | | <bounds x="16" y="24" width="10" height="12" /> |
| 255 | | </bezel> |
| 256 | | <bezel element="mask4" inputtag="IN.4" inputmask="0x04"> |
| 257 | | <bounds x="16" y="24" width="10" height="12" /> |
| 258 | | </bezel> |
| 259 | | |
| 260 | | <bezel element="button10"> |
| 261 | | <bounds x="29" y="24" width="10" height="12" /> |
| 262 | | </bezel> |
| 263 | | <bezel name="lamp10" element="mask1"> |
| 264 | | <bounds x="29" y="24" width="10" height="12" /> |
| 265 | | <color alpha="0.4" /> |
| 266 | | </bezel> |
| 267 | | <bezel element="mask2" inputtag="IN.0" inputmask="0x04"> |
| 268 | | <bounds x="29" y="24" width="10" height="12" /> |
| 269 | | <color alpha="0.4" /> |
| 270 | | </bezel> |
| 271 | | <bezel element="mask3" inputtag="IN.0" inputmask="0x04"> |
| 272 | | <bounds x="29" y="24" width="10" height="12" /> |
| 273 | | </bezel> |
| 274 | | <bezel element="mask4" inputtag="IN.0" inputmask="0x04"> |
| 275 | | <bounds x="29" y="24" width="10" height="12" /> |
| 276 | | </bezel> |
| 277 | | |
| 278 | | <!-- row 3 7 11 --> |
| 279 | | |
| 280 | | <bezel element="button3"> |
| 281 | | <bounds x="3" y="39" width="10" height="12" /> |
| 282 | | </bezel> |
| 283 | | <bezel name="lamp3" element="mask1"> |
| 284 | | <bounds x="3" y="39" width="10" height="12" /> |
| 285 | | <color alpha="0.4" /> |
| 286 | | </bezel> |
| 287 | | <bezel element="mask2" inputtag="IN.3" inputmask="0x02"> |
| 288 | | <bounds x="3" y="39" width="10" height="12" /> |
| 289 | | <color alpha="0.4" /> |
| 290 | | </bezel> |
| 291 | | <bezel element="mask3" inputtag="IN.3" inputmask="0x02"> |
| 292 | | <bounds x="3" y="39" width="10" height="12" /> |
| 293 | | </bezel> |
| 294 | | <bezel element="mask4" inputtag="IN.3" inputmask="0x02"> |
| 295 | | <bounds x="3" y="39" width="10" height="12" /> |
| 296 | | </bezel> |
| 297 | | |
| 298 | | <bezel element="button7"> |
| 299 | | <bounds x="16" y="39" width="10" height="12" /> |
| 300 | | </bezel> |
| 301 | | <bezel name="lamp7" element="mask1"> |
| 302 | | <bounds x="16" y="39" width="10" height="12" /> |
| 303 | | <color alpha="0.4" /> |
| 304 | | </bezel> |
| 305 | | <bezel element="mask2" inputtag="IN.4" inputmask="0x02"> |
| 306 | | <bounds x="16" y="39" width="10" height="12" /> |
| 307 | | <color alpha="0.4" /> |
| 308 | | </bezel> |
| 309 | | <bezel element="mask3" inputtag="IN.4" inputmask="0x02"> |
| 310 | | <bounds x="16" y="39" width="10" height="12" /> |
| 311 | | </bezel> |
| 312 | | <bezel element="mask4" inputtag="IN.4" inputmask="0x02"> |
| 313 | | <bounds x="16" y="39" width="10" height="12" /> |
| 314 | | </bezel> |
| 315 | | |
| 316 | | <bezel element="button11"> |
| 317 | | <bounds x="29" y="39" width="10" height="12" /> |
| 318 | | </bezel> |
| 319 | | <bezel name="lamp11" element="mask1"> |
| 320 | | <bounds x="29" y="39" width="10" height="12" /> |
| 321 | | <color alpha="0.4" /> |
| 322 | | </bezel> |
| 323 | | <bezel element="mask2" inputtag="IN.0" inputmask="0x02"> |
| 324 | | <bounds x="29" y="39" width="10" height="12" /> |
| 325 | | <color alpha="0.4" /> |
| 326 | | </bezel> |
| 327 | | <bezel element="mask3" inputtag="IN.0" inputmask="0x02"> |
| 328 | | <bounds x="29" y="39" width="10" height="12" /> |
| 329 | | </bezel> |
| 330 | | <bezel element="mask4" inputtag="IN.0" inputmask="0x02"> |
| 331 | | <bounds x="29" y="39" width="10" height="12" /> |
| 332 | | </bezel> |
| 333 | | |
| 334 | | <!-- row 4 8 12 --> |
| 335 | | |
| 336 | | <bezel element="button4"> |
| 337 | | <bounds x="3" y="54" width="10" height="12" /> |
| 338 | | </bezel> |
| 339 | | <bezel name="lamp4" element="mask1"> |
| 340 | | <bounds x="3" y="54" width="10" height="12" /> |
| 341 | | <color alpha="0.4" /> |
| 342 | | </bezel> |
| 343 | | <bezel element="mask2" inputtag="IN.3" inputmask="0x01"> |
| 344 | | <bounds x="3" y="54" width="10" height="12" /> |
| 345 | | <color alpha="0.4" /> |
| 346 | | </bezel> |
| 347 | | <bezel element="mask3" inputtag="IN.3" inputmask="0x01"> |
| 348 | | <bounds x="3" y="54" width="10" height="12" /> |
| 349 | | </bezel> |
| 350 | | <bezel element="mask4" inputtag="IN.3" inputmask="0x01"> |
| 351 | | <bounds x="3" y="54" width="10" height="12" /> |
| 352 | | </bezel> |
| 353 | | |
| 354 | | <bezel element="button8"> |
| 355 | | <bounds x="16" y="54" width="10" height="12" /> |
| 356 | | </bezel> |
| 357 | | <bezel name="lamp8" element="mask1"> |
| 358 | | <bounds x="16" y="54" width="10" height="12" /> |
| 359 | | <color alpha="0.4" /> |
| 360 | | </bezel> |
| 361 | | <bezel element="mask2" inputtag="IN.4" inputmask="0x01"> |
| 362 | | <bounds x="16" y="54" width="10" height="12" /> |
| 363 | | <color alpha="0.4" /> |
| 364 | | </bezel> |
| 365 | | <bezel element="mask3" inputtag="IN.4" inputmask="0x01"> |
| 366 | | <bounds x="16" y="54" width="10" height="12" /> |
| 367 | | </bezel> |
| 368 | | <bezel element="mask4" inputtag="IN.4" inputmask="0x01"> |
| 369 | | <bounds x="16" y="54" width="10" height="12" /> |
| 370 | | </bezel> |
| 371 | | |
| 372 | | <bezel element="button12"> |
| 373 | | <bounds x="29" y="54" width="10" height="12" /> |
| 374 | | </bezel> |
| 375 | | <bezel name="lamp12" element="mask1"> |
| 376 | | <bounds x="29" y="54" width="10" height="12" /> |
| 377 | | <color alpha="0.4" /> |
| 378 | | </bezel> |
| 379 | | <bezel element="mask2" inputtag="IN.0" inputmask="0x01"> |
| 380 | | <bounds x="29" y="54" width="10" height="12" /> |
| 381 | | <color alpha="0.4" /> |
| 382 | | </bezel> |
| 383 | | <bezel element="mask3" inputtag="IN.0" inputmask="0x01"> |
| 384 | | <bounds x="29" y="54" width="10" height="12" /> |
| 385 | | </bezel> |
| 386 | | <bezel element="mask4" inputtag="IN.0" inputmask="0x01"> |
| 387 | | <bounds x="29" y="54" width="10" height="12" /> |
| 388 | | </bezel> |
| 389 | | |
| 390 | | |
| 391 | | <!-- gamename labels --> |
| 392 | | |
| 393 | | <bezel element="text_g1"><bounds x="4" y="21.8" width="12" height="1.4" /></bezel> |
| 394 | | <bezel element="text_g5"><bounds x="17" y="21.8" width="12" height="1.4" /></bezel> |
| 395 | | <bezel element="text_g9"><bounds x="30" y="21.8" width="12" height="1.4" /></bezel> |
| 396 | | |
| 397 | | <bezel element="text_g2"><bounds x="4" y="36.8" width="12" height="1.4" /></bezel> |
| 398 | | <bezel element="text_g6"><bounds x="17" y="36.8" width="12" height="1.4" /></bezel> |
| 399 | | <bezel element="text_g10"><bounds x="30" y="36.8" width="12" height="1.4" /></bezel> |
| 400 | | |
| 401 | | <bezel element="text_g3"><bounds x="4" y="51.8" width="12" height="1.4" /></bezel> |
| 402 | | <bezel element="text_g7"><bounds x="17" y="51.8" width="12" height="1.4" /></bezel> |
| 403 | | <bezel element="text_g11"><bounds x="30" y="51.8" width="12" height="1.4" /></bezel> |
| 404 | | |
| 405 | | <bezel element="text_g4"><bounds x="4" y="66.8" width="12" height="1.4" /></bezel> |
| 406 | | <bezel element="text_g8"><bounds x="17" y="66.8" width="12" height="1.4" /></bezel> |
| 407 | | <bezel element="text_g12"><bounds x="30" y="66.8" width="12" height="1.4" /></bezel> |
| 408 | | |
| 409 | | |
| 410 | | <!-- number labels --> |
| 411 | | |
| 412 | | <bezel element="text_b1"><bounds x="12.8" y="20.8" width="2" height="2" /></bezel> |
| 413 | | <bezel element="text_b5"><bounds x="25.8" y="20.8" width="2" height="2" /></bezel> |
| 414 | | <bezel element="text_b9"><bounds x="38.8" y="20.8" width="2" height="2" /></bezel> |
| 415 | | |
| 416 | | <bezel element="text_b2"><bounds x="12.8" y="35.8" width="2" height="2" /></bezel> |
| 417 | | <bezel element="text_b6"><bounds x="25.8" y="35.8" width="2" height="2" /></bezel> |
| 418 | | <bezel element="text_b10"><bounds x="38.8" y="35.8" width="2" height="2" /></bezel> |
| 419 | | |
| 420 | | <bezel element="text_b3"><bounds x="12.8" y="50.8" width="2" height="2" /></bezel> |
| 421 | | <bezel element="text_b7"><bounds x="25.8" y="50.8" width="2" height="2" /></bezel> |
| 422 | | <bezel element="text_b11"><bounds x="38.8" y="50.8" width="2" height="2" /></bezel> |
| 423 | | |
| 424 | | <bezel element="text_b4"><bounds x="12.8" y="65.8" width="2" height="2" /></bezel> |
| 425 | | <bezel element="text_b8"><bounds x="25.8" y="65.8" width="2" height="2" /></bezel> |
| 426 | | <bezel element="text_b12"><bounds x="38.8" y="65.8" width="2" height="2" /></bezel> |
| 427 | | |
| 428 | | |
| 429 | 41 | </view> |
| 430 | 42 | </mamelayout> |