Previous 15994 Revisions Next

r5607 Sunday 6th September, 2009 at 16:06:16 UTC by Curt Coder
Fixed 64-bit MSVC compile.
[src/emu/cpu/superfx]superfx.c
[src/mame/machine]snesrtc.c snessdd1.c

src/mame/machine/snessdd1.c
r5606r5607
1static UINT8 sdd1_read(running_machine* machine, UINT16 addr);
1static UINT8 sdd1_read(running_machine* machine, UINT32 addr);
22
33typedef struct //Input Manager
44{
r5606r5607
629629   }
630630}
631631
632static UINT8 sdd1_read(running_machine* machine, UINT16 addr)
632static UINT8 sdd1_read(running_machine* machine, UINT32 addr)
633633{
634634   //printf( "sdd1.read(%06x)\n", addr );
635635   if(snes_sdd1.sdd1_enable & snes_sdd1.xfer_enable)
src/mame/machine/snesrtc.c
r5606r5607
159159            if(snes_rtc.rtc_index == 12)
160160            {
161161               // 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;
165165               year += 1000;
166166
167167               snes_rtc.rtc_ram[snes_rtc.rtc_index++] = srtc_weekday(year, month, day);
src/emu/cpu/superfx/superfx.c
r5606r5607
534534
535535   if(addr >= 0x3100 && addr <= 0x32ff)
536536   {
537      return superfx_cache_mmio_write(cpustate, addr - 0x3100, data);
537      superfx_cache_mmio_write(cpustate, addr - 0x3100, data);
538      return;
538539   }
539540
540541   if(addr >= 0x3000 && addr <= 0x301f)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team