trunk/src/mame/drivers/suna8.c
| r18348 | r18349 | |
| 372 | 372 | |
| 373 | 373 | decrypt[0x07c0] = 0xc9; // c080 bit 7 protection check |
| 374 | 374 | |
| 375 | | // decrypt[0x083e] = 0x00; // sound latch disabling |
| 376 | | // decrypt[0x083f] = 0x00; // "" |
| 377 | | // decrypt[0x0840] = 0x00; // "" |
| 375 | // decrypt[0x083e] = 0x00; // sound latch disabling |
| 376 | // decrypt[0x083f] = 0x00; // "" |
| 377 | // decrypt[0x0840] = 0x00; // "" |
| 378 | 378 | |
| 379 | | // decrypt[0x0cef] = 0xc9; // rombank latch check, corrupt d12d |
| 379 | // decrypt[0x0cef] = 0xc9; // rombank latch check, corrupt d12d |
| 380 | 380 | |
| 381 | 381 | decrypt[0x2696] = 0xc9; // work ram writes disable, corrupt next routine |
| 382 | 382 | decrypt[0x4e9a] = 0x00; // work ram writes disable, flip background sprite |
| r18348 | r18349 | |
| 720 | 720 | m_spritebank = (data >> 1) & 1; |
| 721 | 721 | |
| 722 | 722 | logerror("CPU #0 - PC %04X: protection_val = %02X\n",space.device().safe_pc(),data); |
| 723 | | // if (data & ~0x03) logerror("CPU #0 - PC %04X: unknown spritebank bits: %02X\n",space.device().safe_pc(),data); |
| 723 | // if (data & ~0x03) logerror("CPU #0 - PC %04X: unknown spritebank bits: %02X\n",space.device().safe_pc(),data); |
| 724 | 724 | } |
| 725 | 725 | |
| 726 | 726 | /* |
| r18348 | r18349 | |
| 1012 | 1012 | AM_RANGE(0xc300, 0xc300) AM_WRITE(hardhea2_flipscreen_w ) // Flip Screen |
| 1013 | 1013 | AM_RANGE(0xc380, 0xc3ff) AM_WRITE(starfigh_spritebank_latch_w ) // Sprite RAM Bank Latch |
| 1014 | 1014 | AM_RANGE(0xc400, 0xc47f) AM_WRITE(starfigh_leds_w ) // Leds + Coin Counter + ROM Bank |
| 1015 | | // c480 write? |
| 1015 | // c480 write? |
| 1016 | 1016 | AM_RANGE(0xc500, 0xc500) AM_WRITE(starfigh_sound_latch_w ) // To Sound CPU (can be disabled) |
| 1017 | | // (c522 + R & 0x1f) write? |
| 1017 | // (c522 + R & 0x1f) write? |
| 1018 | 1018 | |
| 1019 | 1019 | AM_RANGE(0xc600, 0xc7ff) AM_READWRITE(banked_paletteram_r, paletteram_RRRRGGGGBBBBxxxx_byte_be_w) AM_SHARE("paletteram" ) // Palette (Banked??) |
| 1020 | 1020 | AM_RANGE(0xc800, 0xdfff) AM_RAM // RAM |
trunk/src/emu/machine/scsihle.c
| r18348 | r18349 | |
| 222 | 222 | |
| 223 | 223 | //static const char *const linenames[] = |
| 224 | 224 | //{ |
| 225 | | // "select", "busy", "request", "acknoledge", "C/D", "I/O", "message", "reset" |
| 225 | // "select", "busy", "request", "acknoledge", "C/D", "I/O", "message", "reset" |
| 226 | 226 | //}; |
| 227 | 227 | |
| 228 | 228 | //void scsibus_device::set_scsi_line(UINT8 line, UINT8 state) |
| 229 | 229 | //{ |
| 230 | | // UINT8 changed = linestate[line] != state; |
| 230 | // UINT8 changed = linestate[line] != state; |
| 231 | 231 | // |
| 232 | | // LOG(3,"set_scsi_line(%s,%d), changed=%d\n",linenames[line],state,changed); |
| 232 | // LOG(3,"set_scsi_line(%s,%d), changed=%d\n",linenames[line],state,changed); |
| 233 | 233 | // |
| 234 | | // if(changed) |
| 235 | | // { |
| 236 | | // if (line==SCSI_LINE_ACK) |
| 237 | | // set_scsi_line_ack(state); |
| 238 | | // else |
| 239 | | // set_scsi_line_now(line,state); |
| 240 | | // } |
| 234 | // if(changed) |
| 235 | // { |
| 236 | // if (line==SCSI_LINE_ACK) |
| 237 | // set_scsi_line_ack(state); |
| 238 | // else |
| 239 | // set_scsi_line_now(line,state); |
| 240 | // } |
| 241 | 241 | //} |
| 242 | 242 | // |
| 243 | 243 | //void scsibus_device::set_scsi_line_now( UINT8 line, UINT8 state ) |
| 244 | 244 | //{ |
| 245 | | // if( linestate[ line ] != state ) |
| 246 | | // { |
| 247 | | // linestate[ line ] = state; |
| 245 | // if( linestate[ line ] != state ) |
| 246 | // { |
| 247 | // linestate[ line ] = state; |
| 248 | 248 | // |
| 249 | | // for( int i = 0; i < deviceCount; i++ ) |
| 250 | | // { |
| 251 | | // devices[ i ]->scsi_in_line_changed( line, state ); |
| 252 | | // } |
| 253 | | // } |
| 249 | // for( int i = 0; i < deviceCount; i++ ) |
| 250 | // { |
| 251 | // devices[ i ]->scsi_in_line_changed( line, state ); |
| 252 | // } |
| 253 | // } |
| 254 | 254 | //} |
| 255 | 255 | // |
| 256 | 256 | //void scsibus_device::set_scsi_line_ack(UINT8 state) |
| 257 | 257 | //{ |
| 258 | | // ack_timer->adjust(attotime::from_nsec(ACK_DELAY_NS),state); |
| 258 | // ack_timer->adjust(attotime::from_nsec(ACK_DELAY_NS),state); |
| 259 | 259 | //} |
| 260 | 260 | // |
| 261 | 261 | //void scsibus_device::scsi_out_line_change(UINT8 line, UINT8 state) |
| 262 | 262 | //{ |
| 263 | | // if(line==SCSI_LINE_REQ) |
| 264 | | // scsi_out_line_req(state); |
| 265 | | // else |
| 266 | | // scsi_out_line_change_now(line,state); |
| 263 | // if(line==SCSI_LINE_REQ) |
| 264 | // scsi_out_line_req(state); |
| 265 | // else |
| 266 | // scsi_out_line_change_now(line,state); |
| 267 | 267 | //} |
| 268 | 268 | // |
| 269 | 269 | //void scsibus_device::scsi_out_line_change_now(UINT8 line, UINT8 state) |
| 270 | 270 | //{ |
| 271 | | // if( linestate[ line ] != state ) |
| 272 | | // { |
| 273 | | // linestate[ line ] = state; |
| 271 | // if( linestate[ line ] != state ) |
| 272 | // { |
| 273 | // linestate[ line ] = state; |
| 274 | 274 | // |
| 275 | | // LOG(3,"scsi_out_line_change(%s,%d)\n",linenames[line],state); |
| 276 | | // } |
| 275 | // LOG(3,"scsi_out_line_change(%s,%d)\n",linenames[line],state); |
| 276 | // } |
| 277 | 277 | //} |
| 278 | 278 | // |
| 279 | 279 | //void scsibus_device::scsi_out_line_req(UINT8 state) |
| 280 | 280 | //{ |
| 281 | | // req_timer->adjust(attotime::from_nsec(REQ_DELAY_NS),state); |
| 281 | // req_timer->adjust(attotime::from_nsec(REQ_DELAY_NS),state); |
| 282 | 282 | //} |
| 283 | 283 | // |
| 284 | 284 | |
| r18348 | r18349 | |
| 338 | 338 | { |
| 339 | 339 | switch( tid ) |
| 340 | 340 | { |
| 341 | | // case 0: |
| 342 | | // scsi_out_line_change_now(SCSI_LINE_REQ, param); |
| 343 | | // break; |
| 341 | // case 0: |
| 342 | // scsi_out_line_change_now(SCSI_LINE_REQ, param); |
| 343 | // break; |
| 344 | 344 | // |
| 345 | | // case 1: |
| 346 | | // set_scsi_line_now(SCSI_LINE_ACK, param); |
| 347 | | // break; |
| 345 | // case 1: |
| 346 | // set_scsi_line_now(SCSI_LINE_ACK, param); |
| 347 | // break; |
| 348 | 348 | |
| 349 | 349 | case 2: |
| 350 | 350 | scsi_out(param * SCSI_MASK_BSY, SCSI_MASK_BSY); |
| r18348 | r18349 | |
| 617 | 617 | dump_data_bytes(4); |
| 618 | 618 | } |
| 619 | 619 | } |
| 620 | | |
| 620 | |
| 621 | 621 | // If the data buffer is full flush it to the SCSI disk |
| 622 | 622 | |
| 623 | 623 | data_last = (bytes_left >= sectorbytes) ? sectorbytes : bytes_left; |