trunk/src/mame/machine/pgmprot_igs027a_type1.c
| r24621 | r24622 | |
| 710 | 710 | // logic here seems correct, not sure where the 0x19 and 0x5 etc. come from tho! |
| 711 | 711 | case 0x47: |
| 712 | 712 | hack_47_value = ((m_value0 & 0x0700)>>8) * 0x19; |
| 713 | | hack_47_value |=((m_value0 & 0x0007)>>0) * 0x05; |
| 713 | hack_47_value +=((m_value0 & 0x0007)>>0) * 0x05; |
| 714 | 714 | if (m_value0 & 0xf8f8) printf("unhandled 0x47 bits %04x\n", m_value0); |
| 715 | 715 | |
| 716 | //printf("0x47 value was %04x - using %04x\n", m_value0, hack_47_value); |
| 717 | |
| 716 | 718 | m_valueresponse = 0x00740047; |
| 717 | 719 | |
| 718 | 720 | break; |
| r24621 | r24622 | |
| 721 | 723 | //printf("which %04x\n", m_value0); |
| 722 | 724 | |
| 723 | 725 | hack_47_value += m_value0 & 0x0007; |
| 726 | |
| 727 | //printf("0x52 - adding %04x value is now %04x\n", m_value0, hack_47_value); |
| 728 | |
| 724 | 729 | if (m_value0 & 0xfff8) printf("unhandled 0x52 bits %04x\n", m_value0); |
| 725 | 730 | |
| 726 | 731 | m_valueresponse = 0x00740000 | (hack_47_value & 0xffff); |