src/mame/machine/snessdd1.c
| r5606 | r5607 | |
| 1 | | static UINT8 sdd1_read(running_machine* machine, UINT16 addr); |
| 1 | static UINT8 sdd1_read(running_machine* machine, UINT32 addr); |
| 2 | 2 | |
| 3 | 3 | typedef struct //Input Manager |
| 4 | 4 | { |
| r5606 | r5607 | |
| 629 | 629 | } |
| 630 | 630 | } |
| 631 | 631 | |
| 632 | | static UINT8 sdd1_read(running_machine* machine, UINT16 addr) |
| 632 | static UINT8 sdd1_read(running_machine* machine, UINT32 addr) |
| 633 | 633 | { |
| 634 | 634 | //printf( "sdd1.read(%06x)\n", addr ); |
| 635 | 635 | if(snes_sdd1.sdd1_enable & snes_sdd1.xfer_enable) |
src/mame/machine/snesrtc.c
| r5606 | r5607 | |
| 159 | 159 | if(snes_rtc.rtc_index == 12) |
| 160 | 160 | { |
| 161 | 161 | // Day of week is automatically calculated and written |
| 162 | | UINT8 day = snes_rtc.rtc_ram[6] + snes_rtc.rtc_ram[7] * 10; |
| 163 | | UINT8 month = snes_rtc.rtc_ram[8]; |
| 164 | | UINT8 year = snes_rtc.rtc_ram[9] + snes_rtc.rtc_ram[10] * 10 + snes_rtc.rtc_ram[11] * 100; |
| 162 | UINT32 day = snes_rtc.rtc_ram[6] + snes_rtc.rtc_ram[7] * 10; |
| 163 | UINT32 month = snes_rtc.rtc_ram[8]; |
| 164 | UINT32 year = snes_rtc.rtc_ram[9] + snes_rtc.rtc_ram[10] * 10 + snes_rtc.rtc_ram[11] * 100; |
| 165 | 165 | year += 1000; |
| 166 | 166 | |
| 167 | 167 | snes_rtc.rtc_ram[snes_rtc.rtc_index++] = srtc_weekday(year, month, day); |