From 542b2cbf08169239b2198f40f6be3246d4fa34b8 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Sun, 10 Jan 2016 17:26:47 -0800 Subject: [PATCH] PDP11: Enhance LOAD command to be able to load from an in host memory image. --- PDP11/pdp11_sys.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PDP11/pdp11_sys.c b/PDP11/pdp11_sys.c index c0d851ec5..5973627e3 100644 --- a/PDP11/pdp11_sys.c +++ b/PDP11/pdp11_sys.c @@ -248,7 +248,7 @@ if ((*cptr != 0) || (flag != 0)) do { /* block loop */ csum = 0; /* init checksum */ for (i = 0; i < 6; ) { /* 6 char header */ - if ((c[i] = getc (fileref)) == EOF) + if ((c[i] = Fgetc (fileref)) == EOF) return SCPE_FMT; if ((i != 0) || (c[i] == 1)) /* 1st must be 1 */ csum = csum + c[i++]; /* add into csum */ @@ -263,7 +263,7 @@ do { /* block loop */ return SCPE_OK; } for (i = 6; i < cnt; i++) { /* exclude hdr */ - if ((d = getc (fileref)) == EOF) /* data char */ + if ((d = Fgetc (fileref)) == EOF) /* data char */ return SCPE_FMT; csum = csum + d; /* add into csum */ if (org >= MEMSIZE) /* invalid addr? */ @@ -273,7 +273,7 @@ do { /* block loop */ (M[org >> 1] & 0177400) | (uint16)d; org = (org + 1) & 0177777; /* inc origin */ } - if ((d = getc (fileref)) == EOF) /* get csum */ + if ((d = Fgetc (fileref)) == EOF) /* get csum */ return SCPE_FMT; csum = csum + d; /* add in */ } while ((csum & 0377) == 0); /* result mbz */