BIOSMemoryMap is a location in bss now, use lea

This commit is contained in:
2024-10-12 12:58:16 -04:00
parent 31c45051e6
commit 3fbfcbef53

View File

@@ -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