trunk/src/mess/machine/ti99/ti32kmem.c
| r23850 | r23851 | |
| 58 | 58 | } |
| 59 | 59 | if (access) |
| 60 | 60 | { |
| 61 | | if ((offset&1)!=1) *value = ~val; |
| 62 | | else *value = val; |
| 61 | // There is no evidence for an inverted write on the even addresses; |
| 62 | // we assume that the FF00 byte sequence in this memory is a power-on |
| 63 | // artifact. |
| 64 | |
| 65 | /* if ((offset&1)!=1) *value = ~val; |
| 66 | else */ |
| 67 | *value = val; |
| 63 | 68 | } |
| 64 | 69 | } |
| 65 | 70 | |
| 66 | 71 | WRITE8_MEMBER(ti_32k_expcard_device::write) |
| 67 | 72 | { |
| 68 | 73 | UINT8 data1 = data; |
| 69 | | if ((offset&1)!=1) data1 = ~data; |
| 74 | // if ((offset&1)!=1) data1 = ~data; |
| 70 | 75 | switch((offset & 0xe000)>>13) |
| 71 | 76 | { |
| 72 | 77 | case 1: |
| r23850 | r23851 | |
| 103 | 108 | { |
| 104 | 109 | m_ram_ptr = memregion(RAMREGION)->base(); |
| 105 | 110 | m_cru_base = 0; |
| 111 | // See above. Preset the memory with FF00 |
| 112 | // ROM_FILL does not seem to allow filling with an alternating pattern |
| 113 | for (int i=0; i < 0x8000; i+=2) |
| 114 | { |
| 115 | m_ram_ptr[i] = (UINT8)0xff; |
| 116 | } |
| 106 | 117 | } |
| 107 | 118 | |
| 108 | 119 | ROM_START( ti_exp_32k ) |