Keyboard reset fixes and the two files I forgot in the previous commit.

This commit is contained in:
OBattler
2021-04-10 07:22:49 +02:00
parent 976f6edc9d
commit 5990663881
3 changed files with 418 additions and 1 deletions

View File

@@ -1059,8 +1059,9 @@ write_output(atkbd_t *dev, uint8_t val)
if ((dev->output_port ^ val) & 0x01) { /*Reset*/
if (! (val & 0x01)) {
/* Pin 0 selected. */
resetx86(); /*Pulse reset!*/
softresetx86(); /*Pulse reset!*/
cpu_set_edx();
smbase = is_am486 ? 0x00060000 : 0x00030000;
}
}
/* Mask off the A20 stuff because we use mem_a20_key directly for that. */