From 2bf7929ce27511c8768f6d2fec0ca3e539e9b8cf Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Thu, 17 Jan 2019 15:05:03 +0100 Subject: [PATCH] BUG + stuff --- boot/loader/loader.asm | 14 +++++++------- build/bin/disk.img | Bin 18944000 -> 18944000 bytes build/bin/loader.bin | Bin 2049 -> 2063 bytes build/obj/boot/loader.bin | Bin 2049 -> 2063 bytes 4 files changed, 7 insertions(+), 7 deletions(-) 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 8de11c32b3e39c3dedd2495de5d186a1ac916354..1dc81cd507c6b735120973f2a014c138ac11c135 100644 GIT binary patch delta 4822 zcmZoz(8AdO#2cn@Ocr3$VM=1yKGBBR#(xsWG*tcyT_pykGDAN@KL!SAAf3p-&%wa( zG?zh_!IZ(7A&P;YVXEb1{}pxuDT+{KAR4HwdG3n#xhojA&t1WkJbl{_CPuE!8#w;6 z(w-II5432M7!8BbbTFC?MvH>cl5n&n94!e)OTy8TaI_>GEeS_U!qJj&v?LrY2}eu9 KVOJ8?%K-o;*rDJ6 delta 5310 zcmZoz(8AdO#2cn@F!?ZSpZJ9-pLuh^$_Z|p1(-5fCvi-}Cb~jbC8egw(9h71fuRaW zdowU{FfcsLWzc1C2Eq^qeuk;$3}KT6SK9K!)PZQAy5_kn+UKrd+&*^&Q}T3(MPS=T z3AfSE0H(UpbTAqQpweeF9gK#-XgV0p2BSs6Xh}F)5{{OHqb1>JNjO>(j+TU@CE;jE PI9d{pmV}^^(7_P^>^;)y diff --git a/build/bin/loader.bin b/build/bin/loader.bin index 5dc46811a611e4f7cc01ec9869be362fa05e1dc4..6ca87c7c969db4b99dc492b1f72a547ae343898e 100644 GIT binary patch delta 11 ScmZn^=oi?)$T9gjGampI&;xY< delta 7 OcmeAdXcXAM$N>NeF9GTR diff --git a/build/obj/boot/loader.bin b/build/obj/boot/loader.bin index 5dc46811a611e4f7cc01ec9869be362fa05e1dc4..6ca87c7c969db4b99dc492b1f72a547ae343898e 100644 GIT binary patch delta 11 ScmZn^=oi?)$T9gjGampI&;xY< delta 7 OcmeAdXcXAM$N>NeF9GTR