From baa146bef5399b1f1f37f732b6dab1e0071e0d45 Mon Sep 17 00:00:00 2001 From: Elaina Claus Date: Sat, 12 Oct 2024 12:58:16 -0400 Subject: [PATCH] BIOSMemoryMap is a location in bss now, use lea --- include/BIOS/func/E820_memory_map.nasm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/BIOS/func/E820_memory_map.nasm b/include/BIOS/func/E820_memory_map.nasm index 6752bf3..abc944a 100644 --- a/include/BIOS/func/E820_memory_map.nasm +++ b/include/BIOS/func/E820_memory_map.nasm @@ -48,7 +48,8 @@ GetMemoryMap: mov eax, 0xE820 ; select 0xE820 function xor ebx, ebx ; Continuation value, 0 for the first call - mov dx, (BIOSMemoryMap >> 4) + lea dx, [BIOSMemoryMap] + shr dx, 4 mov es, dx xor di, di ; (BIOSMemoryMap >> 4):0 makes di an index into BIOSMemoryMap