1
0
mirror of https://gitlab.os-k.eu/os-k-team/os-k.git synced 2023-08-25 14:03:10 +02:00

BUG + stuff

This commit is contained in:
Adrien Bourmault 2019-01-17 15:05:03 +01:00
parent b102824b15
commit 2bf7929ce2
4 changed files with 7 additions and 7 deletions

View File

@ -94,13 +94,13 @@ main32:
;; VERIFY A20 ;; VERIFY A20
pushad pushad
mov edi,0x112345 ;odd megabyte address. mov edi,0x112345 ;odd megabyte address.
mov esi,0x012345 ;even megabyte address. mov esi,0x012345 ;even megabyte address.
mov [esi],esi ;making sure that both addresses contain diffrent values. 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)) 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. cmpsd ;compare addresses to see if the're equivalent.
popad 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 mov WORD [A20_OK], 0
jmp .A20_end jmp .A20_end
.A20_on: .A20_on:
@ -242,4 +242,4 @@ main64:
jmp Die jmp Die
times 6 db 0 times 20 db 0

Binary file not shown.

Binary file not shown.

Binary file not shown.