1
0
mirror of https://github.com/rcornwell/sims.git synced 2026-04-26 20:18:04 +00:00

SCP: Updated to current.

This commit is contained in:
Richard Cornwell
2020-10-26 18:38:05 -04:00
parent e7a7f73554
commit 968f13fe32
8 changed files with 322 additions and 41 deletions

View File

@@ -630,7 +630,7 @@ static int _cmpcard(const uint8 *p, const char *s) {
t_stat
_sim_parse_card(UNIT *uptr, DEVICE *dptr, struct _card_buffer *buf, uint16 (*image)[80]) {
unsigned int mode;
int mode;
uint16 temp;
int i;
char c;
@@ -1269,7 +1269,7 @@ sim_card_attach(UNIT * uptr, CONST char *cptr)
}
memset(&data->hol_to_ascii[0], 0xff, 4096);
for(i = 0; i < (int)(sizeof(ascii_to_hol_026)/sizeof(uint16)); i++) {
for(i = 0; i < (sizeof(ascii_to_hol_026)/sizeof(uint16)); i++) {
uint16 temp;
switch(uptr->flags & MODE_CHAR) {
default:
@@ -1312,7 +1312,7 @@ sim_card_attach(UNIT * uptr, CONST char *cptr)
}
if (r == SCPE_OK) {
const char *fmt = "AUTO";
unsigned int mode = uptr->flags & UNIT_CARD_MODE;
int mode = uptr->flags & UNIT_CARD_MODE;
for (i = 0; fmts[i].name != 0; i++) {
if (fmts[i].mode == mode) {
fmt = fmts[i].name;