From d1f1bfa974e6d166034b071c9512e00d7cfe2134 Mon Sep 17 00:00:00 2001 From: Lucia Ceionia Date: Wed, 8 Feb 2023 03:41:13 -0600 Subject: [PATCH] Program loader sets text mode on exit. --- progs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/progs.c b/progs.c index 1d0ba85..67d4320 100644 --- a/progs.c +++ b/progs.c @@ -360,6 +360,9 @@ void ProgramLoadTest(uint8_t *path, VOLINFO *vi) { vga_text += printStr("Press any key to run.", vga_text); kbd_wait(); uint32_t res = create_user_child(0x800000, 0x400000, 0); + union V86Regs_t regs; + regs.w.ax = 3; // text mode + V8086Int(0x10, ®s); vga_text = (uint16_t *)0xb8000; for (int i = 0; i < 80*25; i++) vga_text[i] = 0x0f00;