isfpu.asm
来自「开放源码的编译器open watcom 1.6.0版的源代码」· 汇编 代码 · 共 37 行
ASM
37 行
.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 + =
减小字号Ctrl + -
显示快捷键?