Intel汇编-把内存块的值加载回FPU环境中
# An example of the FSTEVN and FLDENV instruction
#
# 用于把内存块的值加载回FPU环境中
#
#
.section .data
value1:
.float 12.34
value2:
.float 56.789
rup:
.byte 0x7f, 0x0b
.section .bss
.lcomm buffer, 28
.section .text
.globl main
main:
nop
finit
flds value1
flds value2
fldcw rup
fstenv buffer
finit
flds value2
flds value1
fldenv buffer
movl $1, %eax
movl $0, %ebx
int $0x80
# gcc -g -o 15 15-fldenv.s -m32
#