trunk/src/mess/drivers/apollo.c
| r24868 | r24869 | |
| 516 | 516 | if ((address & 0xfff00000) == 0xfa800000 && VERBOSE < 2) { |
| 517 | 517 | // ? |
| 518 | 518 | } else if ((address & 0xfff00ff7) == 0xfd800000 && VERBOSE < 2) { |
| 519 | | // omit logging for memory sizing in FPA address &space |
| 519 | // omit logging for memory sizing in FPA address space |
| 520 | 520 | // strange: MD seems to search for the 3C505 Boot ROM |
| 521 | | // note (6.10.2010): might be color7 address &space (!?!) |
| 521 | // note (6.10.2010): might be color7 address space (!?!) |
| 522 | 522 | } else if ((address & 0xfc03ffff) == 0x00000000 && VERBOSE < 2) { |
| 523 | 523 | // omit logging for memory sizing in standalone utilities |
| 524 | 524 | } else if (address == 0xfff90000 && VERBOSE < 2) { |
trunk/src/mame/video/starshp1.c
| r24868 | r24869 | |
| 105 | 105 | { |
| 106 | 106 | /* |
| 107 | 107 | * The range of sprite position values doesn't suffice to |
| 108 | | * move the zoomed &spaceship sprite over the top and left |
| 108 | * move the zoomed spaceship sprite over the top and left |
| 109 | 109 | * edges of the screen. These additional values are used |
| 110 | 110 | * to compensate for this. Technically, they cut off the |
| 111 | | * first columns and rows of the &spaceship sprite, but in |
| 111 | * first columns and rows of the spaceship sprite, but in |
| 112 | 112 | * practice they work like offsets in zoomed pixels. |
| 113 | 113 | */ |
| 114 | 114 | |
trunk/src/mame/drivers/vicdual.c
| r24868 | r24869 | |
| 1041 | 1041 | WRITE8_MEMBER(vicdual_state::sspacaho_io_w) |
| 1042 | 1042 | { |
| 1043 | 1043 | if (offset & 0x01) invho2_audio_w(space, 0, data); |
| 1044 | | if (offset & 0x02) { /* s&spaceatt_audio_w(space, 0, data) */ } |
| 1044 | if (offset & 0x02) { /* sspaceatt_audio_w(space, 0, data) */ } |
| 1045 | 1045 | if (offset & 0x08) assert_coin_status(); |
| 1046 | 1046 | if (offset & 0x40) vicdual_palette_bank_w(space, 0, data); |
| 1047 | 1047 | } |
| r24868 | r24869 | |
| 1057 | 1057 | |
| 1058 | 1058 | WRITE8_MEMBER(vicdual_state::spacetrk_io_w) |
| 1059 | 1059 | { |
| 1060 | | if (offset & 0x01) { /* &spacetrk_audio_w(space, 0, data) */ } |
| 1061 | | if (offset & 0x02) { /* &spacetrk_audio_w(space, 0, data) */ } |
| 1060 | if (offset & 0x01) { /* spacetrk_audio_w(space, 0, data) */ } |
| 1061 | if (offset & 0x02) { /* spacetrk_audio_w(space, 0, data) */ } |
| 1062 | 1062 | if (offset & 0x08) assert_coin_status(); |
| 1063 | 1063 | if (offset & 0x40) vicdual_palette_bank_w(space, 0, data); |
| 1064 | 1064 | } |
trunk/src/mame/drivers/system1.c
| r24868 | r24869 | |
| 550 | 550 | Bit 7 -> connects to TD62003 pins 5 & 6 @ IC151 |
| 551 | 551 | Bit 6 -> via PLS153, when high, asserts the BUSREQ signal, halting the Z80 |
| 552 | 552 | Bit 5 -> n/c |
| 553 | | Bit 4 -> (with bit 3) Memory select: 0=Z80 program &space, 1=banked ROM, 2=Z80 I/O &space, 3=watchdog? |
| 553 | Bit 4 -> (with bit 3) Memory select: 0=Z80 program space, 1=banked ROM, 2=Z80 I/O space, 3=watchdog? |
| 554 | 554 | Bit 3 -> |
| 555 | 555 | Bit 2 -> n/c |
| 556 | 556 | Bit 1 -> n/c |
trunk/src/mame/drivers/aristmk5.c
| r24868 | r24869 | |
| 250 | 250 | checked against the other to verify that the stored data is correct. |
| 251 | 251 | Each chip is mapped to the same address, and the chip selected depends on the bank |
| 252 | 252 | select register. Access is mutually exclusive, increasing security with only one chip |
| 253 | | visible in the CPU address &space at a time. If the CPU crashes and overwrites |
| 253 | visible in the CPU address space at a time. If the CPU crashes and overwrites |
| 254 | 254 | memory only one of the three devices can be corrupted. On reset the bank select |
| 255 | 255 | register selects bank 0, which does not exist. The SRAMs are at banks 1,2,3. |
| 256 | 256 | Each of the SRAM chips may be powered from a separate battery, further reducing |
trunk/src/mame/drivers/thedeep.c
| r24868 | r24869 | |
| 101 | 101 | if ( m_protection_index < 0x19b ) |
| 102 | 102 | // d000-d00c: hl += a * b |
| 103 | 103 | // d00d-d029: input a (e.g. $39) output hl (e.g. h=$03 l=$09). |
| 104 | | // Replace trainling 0's with &space ($10). 00 -> ' ' |
| 104 | // Replace trainling 0's with space ($10). 00 -> ' ' |
| 105 | 105 | // d02a-d039: input a (e.g. $39) output hl (e.g. h=$03 l=$09). |
| 106 | | // Replace trainling 0's with &space ($10). 00 -> ' 0' |
| 106 | // Replace trainling 0's with space ($10). 00 -> ' 0' |
| 107 | 107 | // d03a-d046: input a (e.g. $39) output hl (e.g. h=$03 l=$09). 00 -> '00' |
| 108 | 108 | // d047-d086: a /= e (e can be 0!) |
| 109 | 109 | // d087-d0a4: print ASCII string from HL to IX (sub $30 to every char) |
trunk/src/mame/machine/midyunit.c
| r24868 | r24869 | |
| 235 | 235 | { |
| 236 | 236 | /* because the entire CVSD ROM is banked, we have to make sure that writes */ |
| 237 | 237 | /* go to the proper location (i.e., bank 0); currently bank 0 always lives */ |
| 238 | | /* in the 0x10000-0x17fff &space, so we just need to add 0x8000 to get the */ |
| 238 | /* in the 0x10000-0x17fff space, so we just need to add 0x8000 to get the */ |
| 239 | 239 | /* proper offset */ |
| 240 | 240 | m_cvsd_protection_base[offset] = data; |
| 241 | 241 | } |
| r24868 | r24869 | |
| 470 | 470 | |
| 471 | 471 | READ16_MEMBER(midyunit_state::mkturbo_prot_r) |
| 472 | 472 | { |
| 473 | | /* the security GAL overlays a counter of some sort at 0xfffff400 in ROM &space. |
| 473 | /* the security GAL overlays a counter of some sort at 0xfffff400 in ROM space. |
| 474 | 474 | * A startup protection check expects to read back two different values in succession */ |
| 475 | 475 | return machine().rand(); |
| 476 | 476 | } |
trunk/src/mame/machine/toaplan1.c
| r24868 | r24869 | |
| 60 | 60 | /* read/write, via the DSP IO port 0 */ |
| 61 | 61 | /* Top three bits of data need to be shifted left 9 places */ |
| 62 | 62 | /* to select which memory bank from main CPU address */ |
| 63 | | /* &space to use */ |
| 63 | /* space to use */ |
| 64 | 64 | /* Lower thirteen bits of this data is shifted left one position */ |
| 65 | 65 | /* to move it to an even address word boundary */ |
| 66 | 66 | |
| r24868 | r24869 | |
| 331 | 331 | logerror("Z80 writing %02x to coin control\n",data); |
| 332 | 332 | /* This still isnt too clear yet. */ |
| 333 | 333 | /* Coin C has no coin lock ? */ |
| 334 | | /* Are some outputs for lights ? (no &space on JAMMA for it though) */ |
| 334 | /* Are some outputs for lights ? (no space on JAMMA for it though) */ |
| 335 | 335 | |
| 336 | 336 | switch (data) { |
| 337 | 337 | case 0xee: coin_counter_w(machine(), 1,1); coin_counter_w(machine(), 1,0); break; /* Count slot B */ |