Skip to content

Commit

Permalink
KA10: Fixed OWGBP on KL10B.
Browse files Browse the repository at this point in the history
  • Loading branch information
rcornwell authored and pkoning2 committed Oct 10, 2023
1 parent 9141eea commit 8b9613a
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions PDP10/kx10_cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -6418,13 +6418,17 @@ if ((reason = build_dev_tab ()) != SCPE_OK) /* build, chk dib_tab */
goto last;
AR = MB;
SC = (AR >> 24) & 077; /* S */
FE = (AR >> 30) & 077; /* P */
#if KL
if (SC || (QKLB && t20_page && FE > 36)) {
#else
if (SC) {
#endif
int bpw, left, newb, adjw, adjb;

FE = (AR >> 30) & 077; /* P */
f = 0;
#if KL
if (QKLB && t20_page && pc_sect != 0 && FE > 36) {
if (QKLB && t20_page && FE > 36) {
if (FE == 077)
goto muuo;
f = 1;
Expand Down Expand Up @@ -6513,7 +6517,7 @@ if ((reason = build_dev_tab ()) != SCPE_OK) /* build, chk dib_tab */
AR = MB;
SCAD = (AR >> 30) & 077;
#if KL
if (QKLB && t20_page && pc_sect != 0 && SCAD > 36) { /* Extended pointer */
if (QKLB && t20_page && SCAD > 36) { /* Extended pointer */
f = SCAD - 37;
if (SCAD == 077)
goto muuo;
Expand Down Expand Up @@ -6590,9 +6594,6 @@ if ((reason = build_dev_tab ()) != SCPE_OK) /* build, chk dib_tab */
if ((IR & 04) == 0)
break;
goto ldb_ptr;
} else {
if ((IR & 04) == 0)
break;
}
/* Fall through */

Expand All @@ -6611,7 +6612,7 @@ if ((reason = build_dev_tab ()) != SCPE_OK) /* build, chk dib_tab */
SC = (AR >> 24) & 077;
SCAD = (AR >> 30) & 077;
#if KL
if (QKLB && t20_page && pc_sect != 0 && SCAD > 36) { /* Extended pointer */
if (QKLB && t20_page && SCAD > 36) { /* Extended pointer */
f = SCAD - 37;
if (SCAD == 077)
goto muuo;
Expand Down Expand Up @@ -12299,7 +12300,7 @@ do_byte_setup(int n, int wr, int *pos, int *sz)
np = (p + (0777 ^ s) + 1) & 0777;
/* Advance pointer */
#if KL
if (QKLB && t20_page && pc_sect != 0) {
if (QKLB && t20_page) {
if (p > 36) { /* Extended pointer */
int i = p - 37;
*sz = s = _byte_adj[i].s;
Expand Down Expand Up @@ -12590,7 +12591,7 @@ adj_byte(int n)
/* Advance pointer */
np = (p + (0777 ^ s) + 1) & 0777;
#if KL
if (QKLB && t20_page && pc_sect != 0) {
if (QKLB && t20_page) {
if (p > 36) { /* Extended pointer */
int i = p - 37;
s = _byte_adj[i].s;
Expand Down Expand Up @@ -12651,7 +12652,7 @@ adv_byte(int n)
/* Advance pointer */
np = (p + (0777 ^ s) + 1) & 0777;
#if KL
if (QKLB && t20_page && pc_sect != 0) {
if (QKLB && t20_page) {
if (p > 36) { /* Extended pointer */
int i = p - 37;
s = _byte_adj[i].s;
Expand Down

0 comments on commit 8b9613a

Please sign in to comment.