VAX: replace magic numbers with constants

This commit is contained in:
Sergey Svishchev 2016-05-12 21:11:07 +03:00 committed by Mark Pizzolato
parent 5531ccb175
commit ba4b951bd6

View file

@ -119,7 +119,7 @@ switch (rg) {
if (((ctx->port[PORT_A].mode[1] >> MODE_V_CHM) & MODE_M_CHM) == 0x2) { /* Maint */ if (((ctx->port[PORT_A].mode[1] >> MODE_V_CHM) & MODE_M_CHM) == 0x2) { /* Maint */
ctx->port[PORT_A].buf = data & 0xFF; ctx->port[PORT_A].buf = data & 0xFF;
ctx->port[PORT_A].sts |= STS_RXR; ctx->port[PORT_A].sts |= STS_RXR;
ctx->ists |= 0x2; ctx->ists |= ISTS_RAI;
} }
else { else {
if (ctx->port[PORT_A].put_char != NULL) if (ctx->port[PORT_A].put_char != NULL)
@ -180,7 +180,7 @@ switch (rg) {
if (((ctx->port[PORT_B].mode[1] >> MODE_V_CHM) & MODE_M_CHM) == 0x2) { /* Maint */ if (((ctx->port[PORT_B].mode[1] >> MODE_V_CHM) & MODE_M_CHM) == 0x2) { /* Maint */
ctx->port[PORT_B].buf = data & 0xFF; ctx->port[PORT_B].buf = data & 0xFF;
ctx->port[PORT_B].sts |= STS_RXR; ctx->port[PORT_B].sts |= STS_RXR;
ctx->ists |= 0x20; ctx->ists |= ISTS_RBI;
} }
else { else {
if (ctx->port[PORT_B].put_char != NULL) if (ctx->port[PORT_B].put_char != NULL)