src/mess/drivers/vboy.c
| r15987 | r15988 | |
| 8 | 8 | and http://www.vr32.de/modules/dokuwiki/doku.php? |
| 9 | 9 | |
| 10 | 10 | TODO: |
| 11 | | - fix Affine rotation |
| 11 | - 100us / 20us timers |
| 12 | - sound |
| 12 | 13 | - per-game NVRAM hook-up (wariolnd, vleague, golf, others?) |
| 13 | 14 | - boundh: game is way too fast |
| 15 | - galactic: ball goes out of bounds sometimes? |
| 14 | 16 | - marioten: title screen logo is misplaced if Mario completes his animation |
| 17 | - nesterfb: ball stops when thrown |
| 15 | 18 | - panicbom: brightness 10 overflows |
| 19 | - redalarm: gameplay doesn't work |
| 16 | 20 | - spaceinv: Taito logo only if you press the button, framebuffer? |
| 17 | 21 | - spaceinv: missing shots |
| 18 | | - vleague / vproyak: keeps going into auto pause with 100 usec timer? |
| 22 | - vforce: hangs at title screen |
| 23 | - vlab: doesn't boot (irq issue?) |
| 19 | 24 | - wariolnd: brightness gets suddently darker during intro, CPU bug? |
| 25 | - waterwld: doesn't accept start input at title screen; |
| 20 | 26 | |
| 21 | 27 | ****************************************************************************/ |
| 22 | 28 | |
| r15987 | r15988 | |
| 647 | 653 | case 0x04: //INTCLR |
| 648 | 654 | logerror("Error reading INTCLR\n"); |
| 649 | 655 | break; |
| 656 | /* |
| 657 | ---- -x-- ---- ---- LOCK (status column table address (CTA) lock) |
| 658 | ---- --x- ---- ---- SYNCE (status of sync signal enable) |
| 659 | ---- ---x ---- ---- RE (status of memory refresh cycle) |
| 660 | ---- ---- x--- ---- FCLK |
| 661 | ---- ---- -x-- ---- SCANRDY (active low) |
| 662 | ---- ---- --xx xx-- DPBSY (current framebuffer displayed) |
| 663 | ---- ---- ---- --x- DISP |
| 664 | */ |
| 650 | 665 | case 0x20: //DPSTTS |
| 651 | 666 | { |
| 652 | 667 | UINT16 res; |
| r15987 | r15988 | |
| 685 | 700 | case 0x40: //XPSTTS, piXel Processor STaTuS |
| 686 | 701 | { |
| 687 | 702 | /* |
| 703 | x--- ---- ---- ---- SBOUT |
| 704 | ---x xxxx ---- ---- SBCOUNT |
| 705 | ---- ---- ---x ---- OVERTIME (process overflow) |
| 688 | 706 | ---- ---- ---- x--- XPBSY1 (second framebuffer busy flag) |
| 689 | 707 | ---- ---- ---- -x-- XPBSY0 (first framebfuffer busy flag) |
| 708 | ---- ---- ---- --x- XPEN (starts drawing at beginning of game frame) |
| 709 | ---- ---- ---- ---x XPRST (force drawing process to idle) |
| 690 | 710 | */ |
| 691 | 711 | UINT8 drawfb = ((m_displayfb ^ 1) + 1) << 2; |
| 692 | 712 | UINT16 res; |
| r15987 | r15988 | |
| 697 | 717 | if(m_vip_regs.XPCTRL & 2 && m_row_num < 224/8) // screen active |
| 698 | 718 | res |= drawfb; |
| 699 | 719 | |
| 720 | if(m_row_num < 224/8) |
| 700 | 721 | { |
| 701 | 722 | res |= 0x8000; |
| 702 | 723 | res |= m_row_num<<8; |
| r15987 | r15988 | |
| 764 | 785 | logerror("Error writing INTPND\n"); |
| 765 | 786 | break; |
| 766 | 787 | case 0x02: //INTENB |
| 788 | if(data & 0x2000) |
| 789 | printf("SBHIT active\n"); |
| 767 | 790 | m_vip_regs.INTENB = data; |
| 768 | 791 | m_set_irq(0); |
| 769 | 792 | //printf("%04x ENB\n",data); |
| r15987 | r15988 | |
| 777 | 800 | case 0x20: //DPSTTS |
| 778 | 801 | logerror("Error writing DPSTTS\n"); |
| 779 | 802 | break; |
| 803 | /* |
| 804 | ---- -x-- ---- ---- LOCK (status column table address (CTA) lock) |
| 805 | ---- --x- ---- ---- SYNCE (status of sync signal enable) |
| 806 | ---- ---x ---- ---- RE (status of memory refresh cycle) |
| 807 | ---- ---- ---- --x- DISP |
| 808 | ---- ---- ---- ---x DPRST (Resets the VIP internal counter) |
| 809 | */ |
| 780 | 810 | case 0x22: //DPCTRL |
| 781 | 811 | m_vip_regs.DPCTRL = data & 0x0702; |
| 782 | 812 | |