src/mess/machine/intv.c
| r3001 | r3002 | |
| 17 | 17 | COMBINE_DATA(&intvkbd_dualport_ram[offset]); |
| 18 | 18 | |
| 19 | 19 | /* copy the LSB over to the 6502 OP RAM, in case they are opcodes */ |
| 20 | | RAM = memory_region(machine, "|"); |
| 20 | RAM = memory_region(machine, "keyboard"); |
| 21 | 21 | RAM[offset] = (UINT8) (data >> 0); |
| 22 | 22 | } |
| 23 | 23 | |
| r3001 | r3002 | |
| 34 | 34 | intvkbd_dualport_ram[offset] |= ((UINT16) data) << 0; |
| 35 | 35 | |
| 36 | 36 | /* copy over to the 6502 OP RAM, in case they are opcodes */ |
| 37 | | RAM = memory_region(machine, "|"); |
| 37 | RAM = memory_region(machine, "keyboard"); |
| 38 | 38 | RAM[offset] = data; |
| 39 | 39 | } |
| 40 | 40 | |
| r3001 | r3002 | |
| 331 | 331 | UINT8 high_byte; |
| 332 | 332 | UINT8 low_byte; |
| 333 | 333 | |
| 334 | | UINT8 *memory = memory_region(image->machine, "|"); |
| 334 | UINT8 *memory = memory_region(image->machine, "main"); |
| 335 | 335 | |
| 336 | 336 | image_fread(image, &temp,1); /* header */ |
| 337 | 337 | if (temp != 0xa8) |
| r3001 | r3002 | |
| 379 | 379 | { |
| 380 | 380 | /* First, initialize these as empty so that the intellivision |
| 381 | 381 | * will think that the playcable and keyboard are not attached */ |
| 382 | | UINT8 *memory = memory_region(device->machine, "|"); |
| 382 | UINT8 *memory = memory_region(device->machine, "main"); |
| 383 | 383 | |
| 384 | 384 | /* assume playcable is absent */ |
| 385 | 385 | memory[0x4800<<1] = 0xff; |
| r3001 | r3002 | |
| 394 | 394 | { |
| 395 | 395 | /* First, initialize these as empty so that the intellivision |
| 396 | 396 | * will think that the playcable and keyboard are not attached */ |
| 397 | | UINT8 *memory = memory_region(image->machine, "|"); |
| 397 | UINT8 *memory = memory_region(image->machine, "main"); |
| 398 | 398 | |
| 399 | 399 | /* assume playcable is absent */ |
| 400 | 400 | memory[0x4800<<1] = 0xff; |
| r3001 | r3002 | |
| 492 | 492 | { |
| 493 | 493 | /* First, initialize these as empty so that the intellivision |
| 494 | 494 | * will think that the playcable is not attached */ |
| 495 | | UINT8 *memory = memory_region(image->machine, "|"); |
| 495 | UINT8 *memory = memory_region(image->machine, "main"); |
| 496 | 496 | |
| 497 | 497 | /* assume playcable is absent */ |
| 498 | 498 | memory[0x4800<<1] = 0xff; |
| r3001 | r3002 | |
| 503 | 503 | |
| 504 | 504 | if (id == 1) /* Keyboard component cartridge slot */ |
| 505 | 505 | { |
| 506 | | UINT8 *memory = memory_region(image->machine, "|"); |
| 506 | UINT8 *memory = memory_region(image->machine, "keyboard"); |
| 507 | 507 | |
| 508 | 508 | /* Assume an 8K cart, like BASIC */ |
| 509 | 509 | image_fread(image,&memory[0xe000],0x2000); |