src/mess/video/irisha.c
| r3570 | r3571 | |
| 19 | 19 | UINT8 code1,code2; |
| 20 | 20 | UINT8 col; |
| 21 | 21 | int y, x, b; |
| 22 | | |
| 22 | const address_space *space = cpu_get_address_space(screen->machine->cpu[0], ADDRESS_SPACE_PROGRAM); |
| 23 | |
| 23 | 24 | // draw image |
| 24 | 25 | for (y = 0; y < 200; y++) |
| 25 | 26 | { |
| 26 | 27 | for (x = 0; x < 40; x++) |
| 27 | 28 | { |
| 28 | | code1 = program_read_byte(0xe000 + x + y*40); |
| 29 | | code2 = program_read_byte(0xc000 + x + y*40); |
| 29 | code1 = memory_read_byte(space, 0xe000 + x + y*40); |
| 30 | code2 = memory_read_byte(space, 0xc000 + x + y*40); |
| 30 | 31 | for (b = 0; b < 8; b++) |
| 31 | 32 | { |
| 32 | 33 | col = ((code1 >> b) & 0x01); |
src/mess/machine/rt1715.c
| r3570 | r3571 | |
| 20 | 20 | |
| 21 | 21 | MACHINE_RESET( rt1715 ) |
| 22 | 22 | { |
| 23 | | memory_set_bankptr(1, memory_region(machine, "main") + 0x10000); |
| 24 | | memory_set_bankptr(2, mess_ram + 0x0800); |
| 25 | | memory_set_bankptr(3, mess_ram); |
| 23 | memory_set_bankptr(machine, 1, memory_region(machine, "main") + 0x10000); |
| 24 | memory_set_bankptr(machine, 2, mess_ram + 0x0800); |
| 25 | memory_set_bankptr(machine, 3, mess_ram); |
| 26 | 26 | } |
src/mess/machine/irisha.c
| r3570 | r3571 | |
| 64 | 64 | { |
| 65 | 65 | UINT8 keycode; |
| 66 | 66 | if (irisha_keyboard_cnt!=0 && irisha_keyboard_cnt<11) { |
| 67 | | keycode = input_port_read(machine, keynames[irisha_keyboard_cnt-1]) ^ 0xff; |
| 67 | keycode = input_port_read(space->machine, keynames[irisha_keyboard_cnt-1]) ^ 0xff; |
| 68 | 68 | } else { |
| 69 | 69 | keycode = 0xff; |
| 70 | 70 | } |
| r3570 | r3571 | |
| 99 | 99 | |
| 100 | 100 | static PIC8259_SET_INT_LINE( irisha_pic_set_int_line ) |
| 101 | 101 | { |
| 102 | | cpunum_set_input_line(device->machine, 0, 0,interrupt ? HOLD_LINE : CLEAR_LINE); |
| 102 | cpu_set_input_line(device->machine->cpu[0], 0,interrupt ? HOLD_LINE : CLEAR_LINE); |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | const struct pic8259_interface irisha_pic8259_config = { |
src/mess/machine/sapi1.c
| r3570 | r3571 | |
| 30 | 30 | READ8_HANDLER (sapi1_keyboard_r ) |
| 31 | 31 | { |
| 32 | 32 | UINT8 key = 0xff; |
| 33 | | if ((sapi1_keyboard_mask & 0x01)!=0) { key &= input_port_read(machine,"LINE0"); } |
| 34 | | if ((sapi1_keyboard_mask & 0x02)!=0) { key &= input_port_read(machine,"LINE1"); } |
| 35 | | if ((sapi1_keyboard_mask & 0x04)!=0) { key &= input_port_read(machine,"LINE2"); } |
| 36 | | if ((sapi1_keyboard_mask & 0x08)!=0) { key &= input_port_read(machine,"LINE3"); } |
| 37 | | if ((sapi1_keyboard_mask & 0x10)!=0) { key &= input_port_read(machine,"LINE4"); } |
| 33 | if ((sapi1_keyboard_mask & 0x01)!=0) { key &= input_port_read(space->machine,"LINE0"); } |
| 34 | if ((sapi1_keyboard_mask & 0x02)!=0) { key &= input_port_read(space->machine,"LINE1"); } |
| 35 | if ((sapi1_keyboard_mask & 0x04)!=0) { key &= input_port_read(space->machine,"LINE2"); } |
| 36 | if ((sapi1_keyboard_mask & 0x08)!=0) { key &= input_port_read(space->machine,"LINE3"); } |
| 37 | if ((sapi1_keyboard_mask & 0x10)!=0) { key &= input_port_read(space->machine,"LINE4"); } |
| 38 | 38 | return key; |
| 39 | 39 | } |
| 40 | 40 | WRITE8_HANDLER(sapi1_keyboard_w ) |
src/mess/drivers/sapi1.c
| r3570 | r3571 | |
| 22 | 22 | //AM_RANGE(0x2800, 0x2bff) AM_NOP // PORT 1 |
| 23 | 23 | //AM_RANGE(0x2c00, 0x2fff) AM_NOP // PORT 2 |
| 24 | 24 | //AM_RANGE(0x3000, 0x33ff) AM_NOP // 3214 |
| 25 | | AM_RANGE(0x3800, 0x3fff) AM_RAM // AND-1 (video RAM) |
| 25 | AM_RANGE(0x3800, 0x3fff) AM_RAM AM_BASE(&sapi_video_ram) // AND-1 (video RAM) |
| 26 | 26 | AM_RANGE(0x4000, 0x4000) AM_RAM // REM-1 |
| 27 | 27 | ADDRESS_MAP_END |
| 28 | 28 | |