mirror of
https://github.com/simh/simh.git
synced 2026-05-04 15:05:39 +00:00
3b2: Fix windows build
This commit is contained in:
@@ -325,7 +325,7 @@ t_stat contty_reset(DEVICE *dtpr)
|
|||||||
memset(&iu_contty, 0, sizeof(IU_PORT));
|
memset(&iu_contty, 0, sizeof(IU_PORT));
|
||||||
brg_reg = 0;
|
brg_reg = 0;
|
||||||
brg_clk = BRG_DEFAULT;
|
brg_clk = BRG_DEFAULT;
|
||||||
parity_sel = PARITY_EVEN;
|
parity_sel = IU_PARITY_EVEN;
|
||||||
bits_per_char = 7;
|
bits_per_char = 7;
|
||||||
|
|
||||||
sprintf(line_config, "%s-%d%s1",
|
sprintf(line_config, "%s-%d%s1",
|
||||||
@@ -644,13 +644,13 @@ void iu_write(uint32 pa, uint32 val, size_t size)
|
|||||||
if (modep == 0) {
|
if (modep == 0) {
|
||||||
if ((bval >> 4) & 1) {
|
if ((bval >> 4) & 1) {
|
||||||
/* No parity */
|
/* No parity */
|
||||||
parity_sel = PARITY_NONE;
|
parity_sel = IU_PARITY_NONE;
|
||||||
} else {
|
} else {
|
||||||
/* Parity enabled */
|
/* Parity enabled */
|
||||||
if (bval & 4) {
|
if (bval & 4) {
|
||||||
parity_sel = PARITY_ODD;
|
parity_sel = IU_PARITY_ODD;
|
||||||
} else {
|
} else {
|
||||||
parity_sel = PARITY_EVEN;
|
parity_sel = IU_PARITY_EVEN;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -44,9 +44,9 @@
|
|||||||
#define IU_SPEED_REGS 2 /* Two speed select registers, */
|
#define IU_SPEED_REGS 2 /* Two speed select registers, */
|
||||||
#define IU_SPEEDS 16 /* with 16 speeds each */
|
#define IU_SPEEDS 16 /* with 16 speeds each */
|
||||||
|
|
||||||
#define PARITY_ODD 0
|
#define IU_PARITY_ODD 0
|
||||||
#define PARITY_EVEN 1
|
#define IU_PARITY_EVEN 1
|
||||||
#define PARITY_NONE 2
|
#define IU_PARITY_NONE 2
|
||||||
|
|
||||||
#define STS_RXR 0x01 /* Receiver ready */
|
#define STS_RXR 0x01 /* Receiver ready */
|
||||||
#define STS_FFL 0x02 /* FIFO full */
|
#define STS_FFL 0x02 /* FIFO full */
|
||||||
|
|||||||
Reference in New Issue
Block a user