Previous 15994 Revisions Next

r9734 Sunday 5th December, 2010 at 23:26:40 UTC by Nathan Woods
Bug fixes. [Atari Ace]
[src/mess/machine]hecdisk2.c
[src/mess/tools/imgtool/modules]amiga.c psion.c

src/mess/tools/imgtool/modules/amiga.c
r9733r9734
301301/* Convert amiga time to standard time */
302302static time_t amiga_crack_time(amiga_date *date)
303303{
304   static const int month_days[12] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
304   int month_days[12] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
305305   int year = 1978, month = 1, year_days = 365; /* base date */
306306   int day = date->days;
307307   struct tm t;
r9733r9734
317317    }
318318
319319    /* then the month */
320    if (is_leap(year))
321      month_days[1] = 29;
322
323320    while(day >= month_days[month-1])
324321    {
325322        day -= month_days[month-1];
323        if (month == 2 && is_leap(year))
324           day -= 1;
326325        month++;
327326    }
328327
src/mess/tools/imgtool/modules/psion.c
r9733r9734
408408{
409409   psion_pack *pack = (psion_pack*)imgtool_image_extra_bytes(image);
410410   static const UINT8 opk_magic[4] = {'O', 'P', 'K', 0x00};
411   static const UINT8 pack_head[8] = {0x40, 0x00, 0x59, 0x01, 0x01, 0x01, 0x00, 0x00};
411   UINT8 pack_head[8] = {0x40, 0x00, 0x59, 0x01, 0x01, 0x01, 0x00, 0x00};
412412   UINT16 checksum;
413413
414414   pack_head[0] |= (option_resolution_lookup_int(opts, 'R')) ? 0x00 : 0x02;
src/mess/machine/hecdisk2.c
r9733r9734
419419{
420420   running_device *fdc = space->machine->device("upd765");
421421   upd765_dack_w(fdc,0, data);
422}
No newline at end of file
422}

Previous 15994 Revisions Next


© 1998-2018 The MESS Team