29 lines
975 B
NASM
29 lines
975 B
NASM
;=----------------------------------------------------------------------------=;
|
|
; GNU GPL OS/K ;
|
|
; ;
|
|
; Authors: spectral` ;
|
|
; NeoX ;
|
|
; ;
|
|
; Desc: Basic Memory Long mode Functions ;
|
|
; (x86_64 architecture only) ;
|
|
;=----------------------------------------------------------------------------=;
|
|
[BITS 64]
|
|
|
|
;; GLOBAL DATA
|
|
A20_OK db 0
|
|
|
|
;; TEXT
|
|
|
|
check_a20:
|
|
cmp BYTE [A20_OK], 1
|
|
je .A20Success
|
|
mov bl, 0x0C
|
|
mov esi, Fail
|
|
call write
|
|
jmp Die
|
|
.A20Success:
|
|
mov bl, 0x0A
|
|
mov esi, Pass
|
|
call write
|
|
ret
|