From 3198cd8d088b888a42a5d0e3f94b8e8797d9f2ad Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Sun, 25 Oct 2020 18:42:48 -0400 Subject: [PATCH] emul/8086/pcat: fix broken AT-XY --- emul/8086/pcat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emul/8086/pcat.c b/emul/8086/pcat.c index 0678c90..55139dc 100644 --- a/emul/8086/pcat.c +++ b/emul/8086/pcat.c @@ -23,7 +23,7 @@ static void int10() { uint16_t dx = regs.wordregs[regdx]; switch (cmd) { case 0x02: // at-xy - wmove(w, dx&0xff, dx>>8); + wmove(w, dx>>8, dx&0xff); break; case 0x0e: // emit if (al >= 0x20 || al == '\n') {