32 lines
967 B
NASM
32 lines
967 B
NASM
;=----------------------------------------------------------------------------=;
|
|
; GNU GPL OS/K ;
|
|
; ;
|
|
; Authors: spectral` ;
|
|
; NeoX ;
|
|
; ;
|
|
; Desc: Basic longmode CPU functions ;
|
|
; (x86_64 architecture only) ;
|
|
;=----------------------------------------------------------------------------=;
|
|
|
|
[BITS 64]
|
|
|
|
temporize:
|
|
push rcx
|
|
mov rcx, 2000
|
|
.looping:
|
|
nop
|
|
nop
|
|
nop
|
|
loop .looping
|
|
pop rcx
|
|
ret
|
|
|
|
bitemporize:
|
|
push rcx
|
|
mov rcx, 2000
|
|
.looping:
|
|
call temporize
|
|
loop .looping
|
|
pop rcx
|
|
ret
|