Make POST card PCjr detection a little more specific

This commit is contained in:
RichardG867
2020-11-30 20:20:03 -03:00
parent 750c721c58
commit 1e7bab8470

View File

@@ -94,7 +94,7 @@ postcard_reset(void)
static void
postcard_write(uint16_t port, uint8_t val, void *priv)
{
if (postcard_written && val == postcard_code)
if (postcard_written && (val == postcard_code))
return;
postcard_prev_code = postcard_code;
@@ -117,7 +117,7 @@ postcard_init(const device_t *info)
postcard_port = 0x190; /* ISA PS/2 machines */
else if (strstr(machines[machine].name, " IBM XT "))
postcard_port = 0x60; /* IBM XT */
else if (strstr(machines[machine].name, "PCjr"))
else if (strstr(machines[machine].name, " IBM PCjr"))
postcard_port = 0x10; /* IBM PCjr */
else if (strstr(machines[machine].name, " Compaq ") && !(machines[machine].flags & MACHINE_PCI))
postcard_port = 0x84; /* ISA Compaq machines */