From aaaddb1d77c55e332aef765f323d2162140ff841 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roc=20Vall=C3=A8s=20Dom=C3=A8nech?= Date: Wed, 6 Oct 2021 07:23:57 +0900 Subject: [PATCH] optromloader.asm: Comment on why ES needs to be initialized to zero. --- optromloader.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/optromloader.asm b/optromloader.asm index 2597682..2bce744 100644 --- a/optromloader.asm +++ b/optromloader.asm @@ -29,7 +29,7 @@ start: mov sp,$7C00 ;set a stack right under the bootloader sti ;re-enable interrupts from 8086/86 workaround mov ds,ax ;DS can't be trusted either - mov es,ax ;ES isn't any more trustworthy + mov es,ax ;ES isn't any more trustworthy, and is used by readblock below mov si,banner_str call printstr ;*** Load first block of ROM image (containing ROM header)