Previous 15994 Revisions Next

r11039 Saturday 2nd April, 2011 at 16:05:27 UTC by Sandro Ronco
[TI82] Fixed the backup loading
[src/mess/formats]ti85_ser.c

src/mess/formats/ti85_ser.c
r11038r11039
5050#define TI85_PC_OK_PACKET_SIZE   4
5151#define TI85_PC_END_PACKET_SIZE   4
5252
53#define TI82_BACKUP_ID      0x0f   //used by the TI-82
54#define TI85_BACKUP_ID      0x1d   //used by the TI-85 and TI-86
55#define TI83_BACKUP_ID      0x13   //used by the TI-73, TI-83 and TI-83+
56
5357//known tranfer ID
5458#define TI_TRANFER_ID_TI73      0x07
5559#define TI_TRANFER_ID_TI82      0x02
r11038r11039
359363   ti85serial_state *ti85serial = get_token( device );
360364   UINT16 i;
361365   UINT16 number_of_entries;
362   UINT8 backup_id = (device->type() == TI85SERIAL || device->type() == TI86SERIAL) ? 0x1d : 0x13;
366   UINT8 backup_id = (ti85serial->image_type == TI_FILE_V1) ? TI85_BACKUP_ID : ((device->type() == TI82SERIAL) ? TI82_BACKUP_ID : TI83_BACKUP_ID);
363367
364368   ti85_entry* ti85_entries = NULL;
365369

Previous 15994 Revisions Next


© 1998-2018 The MESS Team