From e70386bcfbb293817262fcbe6940fdd009227a10 Mon Sep 17 00:00:00 2001 From: Ain <41307858+nero@users.noreply.github.com> Date: Thu, 17 Oct 2019 19:19:12 +0000 Subject: [PATCH] Mask raw directory bit when giving drive number to int13 --- kernel/drive.asm | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/drive.asm b/kernel/drive.asm index 2e1280a..447fb3a 100644 --- a/kernel/drive.asm +++ b/kernel/drive.asm @@ -43,6 +43,7 @@ drive_read: mov si, 5 ; retry count .try: mov dl, [bx+fcb_drv] ; drive number + and dl, 0x7F dec dl mov ax, 0x0201 mov bx, diskbuf