20 lines
249 B
NASM
20 lines
249 B
NASM
.386P
|
|
|
|
NAME HLT
|
|
|
|
PROG_CODE SEGMENT ER USE32 'CODE'
|
|
ASSUME CS:PROG_CODE
|
|
|
|
PUBLIC _halt_cpu
|
|
|
|
_halt_cpu PROC NEAR
|
|
;HLT ; this will cause #GP(0) as CPL is set to 3 by intel dos extender.
|
|
;MOV AX, CS
|
|
;AND AX, 3
|
|
RET
|
|
_halt_cpu ENDP
|
|
|
|
PROG_CODE ENDS
|
|
|
|
END
|