diff --git a/boot/loader/loader.asm b/boot/loader/loader.asm index dff8458..c67f038 100644 --- a/boot/loader/loader.asm +++ b/boot/loader/loader.asm @@ -94,13 +94,13 @@ main32: ;; VERIFY A20 pushad - mov edi,0x112345 ;odd megabyte address. - mov esi,0x012345 ;even megabyte address. - mov [esi],esi ;making sure that both addresses contain diffrent values. - mov [edi],edi ;(if A20 line is cleared the two pointers would point to the address 0x012345 that would contain 0x112345 (edi)) - cmpsd ;compare addresses to see if the're equivalent. + mov edi,0x112345 ;odd megabyte address. + mov esi,0x012345 ;even megabyte address. + mov [esi],esi ;making sure that both addresses contain diffrent values. + mov [edi],edi ;(if A20 line is cleared the two pointers would point to the address 0x012345 that would contain 0x112345 (edi)) + cmpsd ;compare addresses to see if the're equivalent. popad - jne .A20_on ;if not equivalent , A20 line is set. + jne .A20_on ;if not equivalent , A20 line is set. mov WORD [A20_OK], 0 jmp .A20_end .A20_on: @@ -242,4 +242,4 @@ main64: jmp Die -times 6 db 0 +times 20 db 0 diff --git a/build/bin/disk.img b/build/bin/disk.img index 8de11c3..1dc81cd 100644 Binary files a/build/bin/disk.img and b/build/bin/disk.img differ diff --git a/build/bin/loader.bin b/build/bin/loader.bin index 5dc4681..6ca87c7 100644 Binary files a/build/bin/loader.bin and b/build/bin/loader.bin differ diff --git a/build/obj/boot/loader.bin b/build/obj/boot/loader.bin index 5dc4681..6ca87c7 100644 Binary files a/build/obj/boot/loader.bin and b/build/obj/boot/loader.bin differ