src/mess/machine/mm58274c.c
| r3288 | r3289 | |
| 36 | 36 | int int_ctl; /* interrupt control register */ |
| 37 | 37 | |
| 38 | 38 | |
| 39 | | int wday; /* day of the week (1-7 (1=monday, 7=sunday)) */ |
| 39 | int wday; /* day of the week (1-7 (1=day1 as set in init)) */ |
| 40 | 40 | int years1; /* years (BCD: 0-99) */ |
| 41 | 41 | int years2; |
| 42 | 42 | int months1; /* months (BCD: 1-12) */ |
| r3288 | r3289 | |
| 89 | 89 | } |
| 90 | 90 | }; |
| 91 | 91 | |
| 92 | | |
| 93 | | void mm58274c_init(running_machine *machine, int which, int mode24) |
| 92 | /* |
| 93 | Initializes the clock chip. |
| 94 | day1 must be set to a value from 0 (sunday), 1 (monday) ... |
| 95 | to 6 (saturday) and is needed to correctly retrieve the day-of-week |
| 96 | from the host system clock. |
| 97 | */ |
| 98 | void mm58274c_init(running_machine *machine, int which, int mode24, int day1) |
| 94 | 99 | { |
| 95 | 100 | memset(&rtc[which], 0, sizeof(rtc[which])); |
| 96 | | |
| 97 | 101 | timer_pulse(ATTOTIME_IN_MSEC(100), NULL, which, increment_rtc); |
| 98 | 102 | rtc[which].interrupt_timer = timer_alloc(rtc_interrupt_callback, NULL); |
| 99 | 103 | |
| r3288 | r3289 | |
| 106 | 110 | rtc[which].clk_set = systime.local_time.year & 3 << 2; |
| 107 | 111 | if (mode24) |
| 108 | 112 | rtc[which].clk_set |= clk_set_24; |
| 109 | | |
| 113 | |
| 110 | 114 | /* The clock count starts on 1st January 1900 */ |
| 111 | | rtc[which].wday = systime.local_time.weekday ? systime.local_time.weekday : 7; |
| 115 | rtc[which].wday = 1 + ((systime.local_time.weekday - day1)%7); |
| 112 | 116 | rtc[which].years1 = (systime.local_time.year / 10) % 10; |
| 113 | 117 | rtc[which].years2 = systime.local_time.year % 10; |
| 114 | 118 | rtc[which].months1 = (systime.local_time.month + 1) / 10; |
src/mess/drivers/ti99_4x.c
| r3288 | r3289 | |
| 166 | 166 | PORT_BIT(0x0010, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("FCTN") PORT_CODE(KEYCODE_RALT) PORT_CODE(KEYCODE_LALT) PORT_CHAR(UCHAR_SHIFT_2) |
| 167 | 167 | PORT_BIT(0x0004, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_ENTER) PORT_CHAR(13) |
| 168 | 168 | PORT_BIT(0x0002, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_SPACE) PORT_CHAR(' ') |
| 169 | | PORT_BIT(0x0001, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("= + QUIT") PORT_CODE(KEYCODE_EQUALS) PORT_CHAR('=') PORT_CHAR('+') PORT_CHAR(UCHAR_MAMEKEY(ESC)) |
| 169 | PORT_BIT(0x0001, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("= + QUIT") PORT_CODE(KEYCODE_EQUALS) PORT_CHAR('=') PORT_CHAR('+') PORT_CHAR(UCHAR_MAMEKEY(F12)) |
| 170 | 170 | /* col 1 */ |
| 171 | 171 | PORT_BIT(0x8000, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_X) PORT_CHAR('x') PORT_CHAR('X') PORT_CHAR(UCHAR_MAMEKEY(DOWN)) |
| 172 | 172 | PORT_BIT(0x4000, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_W) PORT_CHAR('w') PORT_CHAR('W') PORT_CHAR('~') |
| r3288 | r3289 | |
| 299 | 299 | /* 4 ports for keyboard and joystick */ |
| 300 | 300 | PORT_START("KEY0") /* col 0 */ |
| 301 | 301 | PORT_BIT(0x0080, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("1 !") PORT_CODE(KEYCODE_1) PORT_CHAR('1') PORT_CHAR('!') |
| 302 | | PORT_BIT(0x0040, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Q QUIT") PORT_CODE(KEYCODE_Q) PORT_CHAR('Q') PORT_CHAR(UCHAR_MAMEKEY(ESC)) |
| 302 | PORT_BIT(0x0040, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Q QUIT") PORT_CODE(KEYCODE_Q) PORT_CHAR('Q') PORT_CHAR(UCHAR_MAMEKEY(F12)) |
| 303 | 303 | /* TI99/4 has a second space key which maps the same */ |
| 304 | 304 | PORT_BIT(0x0020, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SPACE") PORT_CODE(KEYCODE_SPACE) PORT_CODE(KEYCODE_CAPSLOCK) PORT_CHAR(' ') |
| 305 | 305 | PORT_BIT(0x0010, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SHIFT") PORT_CODE(KEYCODE_LSHIFT) PORT_CHAR(UCHAR_SHIFT_1) |
docs/messnew.txt
| r3288 | r3289 | |
| 86 | 86 | we will start to use the correct ones. If you own a C128 PAL, please |
| 87 | 87 | dump its BIOS to verify its content. [Fabio Priuli] |
| 88 | 88 | |
| 89 | - [GENEVE] Fixed RTC to start on Sunday. [Michael Zapf] |
| 90 | |
| 89 | 91 | - [OSCNANO] Implemented RUN/MONITOR keys properly, changed video to |
| 90 | 92 | black and white, and fixed quickloading. System is now fully |
| 91 | 93 | working, including the "Säkkijärven polkka" program. [Curt Coder] |
| r3288 | r3289 | |
| 107 | 109 | memory addresses to be working. More work when/if more documents will |
| 108 | 110 | be available [Fabio Priuli] |
| 109 | 111 | |
| 112 | - [TI99] Changed ESC key to map to F12. [Michael Zapf] |
| 113 | |
| 110 | 114 | - [TMC2000] Fixed quickloading. [Curt Coder] |
| 111 | 115 | |
| 112 | 116 | - [TRS80] Added proper cassette emulation support. [Wilbert Pol] |