📄 isfpu.asm
字号:
.386
.model flat
.stack 400h
.data
FoundText DB 'FPU detected.',13,10
MissingText DB 'No FPU detected.',13,10
.code
start:
mov ax,ss
mov ds,ax
finit
push eax
fstcw [esp]
pop eax
cmp ah,3
jne nofpu
isfpu:
mov edx,OFFSET FoundText
mov ecx,SIZEOF FoundText
jmp output
nofpu:
mov edx,OFFSET MissingText
mov ecx,SIZEOF MissingText
output:
mov bx,1
mov ah,40h
int 21h
mov ax,4c00h
int 21h
end start
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -