From 729e6790ef2bca1cca80fd27c42601b45c3f8891 Mon Sep 17 00:00:00 2001 From: Nero <41307858+nero@users.noreply.github.com> Date: Sun, 27 Sep 2020 15:10:28 +0000 Subject: [PATCH] boot/fat: Save a byte restoring DL --- boot/fat.asm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/boot/fat.asm b/boot/fat.asm index 85dabf5..96e1317 100644 --- a/boot/fat.asm +++ b/boot/fat.asm @@ -25,6 +25,7 @@ init: xor ax, ax mov ss, ax mov sp, stack push sp + push dx ; save potential partition table entry push ds @@ -192,9 +193,9 @@ loadclus: lodsw call read jmp loadclus -.jump: mov dl, [bp+bpb.drivenum] - pop si +.jump: pop si pop ds + pop dx ret err_not_found: