From dcbb7194886e851b029f6c80f0fd5df7c0887d3f Mon Sep 17 00:00:00 2001 From: Ain <41307858+nero@users.noreply.github.com> Date: Sun, 1 Sep 2019 14:15:26 +0000 Subject: [PATCH] Fix broken intr_load, use LDS instruction --- kernel/intr.asm | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/kernel/intr.asm b/kernel/intr.asm index 2dbfa60..0c2d34b 100644 --- a/kernel/intr.asm +++ b/kernel/intr.asm @@ -44,17 +44,12 @@ intr_load: mul ah mov si, ax - ; ES = 0 + ; DS = 0 xor ax, ax mov ds, ax - ; load offset - lodsw - mov si, ax - - ; load segment - lodsw - mov ds, ax + ; load segment and offset in one go + lds si, [si] pop ax ret