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:
parent
b102824b15
commit
2bf7929ce2
@ -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
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user