A20 Line: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
Content deleted Content added
Line 80: | Line 80: | ||
===Testing A20 line from Protected Mode=== |
===Testing A20 line from Protected Mode=== |
||
When in Protected mode it's easier to test A20 because you can access |
When in Protected mode it's easier to test A20 because you can access A20's set memory addresses using any odd megabyte address. |
||
<source lang="asm"> |
<source lang="asm"> |
||
[bits 32] |
[bits 32] |
||
; check |
; check A20 line |
||
; returns to caller if |
; returns to caller if A20 gate is cleared. |
||
; continues to a20_on if a20 line is set. |
; continues to a20_on if a20 line is set. |
||
; written by Elad Ashkcenazi |
; written by Elad Ashkcenazi |
||
is_A20_on?: |
|||
pushad |
pushad |
||
Line 99: | Line 99: | ||
cmpsd |
cmpsd |
||
popad |
popad |
||
jne |
jne A20_on |
||
ret |
ret |
||
A20_on: |
|||
a20_on: |
|||
</source> |
</source> |