?? em_fif8.s
字號:
.sect .text; .sect .rom; .sect .data; .sect .bss.define .fif8 .sect .text.fif8: mov bx,sp fldd 8(bx) fmuld 16(bx) ! multiply fld st ! and copy result ftst ! test sign; handle negative separately fstsw ax wait sahf ! result of test in condition codes jb 1f frndint ! this one rounds (?) fcom st(1) ! compare with original; if <=, then OK fstsw ax wait sahf jbe 2f fisubs (one) ! else subtract 1 jmp 2f1: ! here, negative case frndint ! this one rounds (?) fcom st(1) ! compare with original; if >=, then OK fstsw ax wait sahf jae 2f fiadds (one) ! else add 12: fsub st(1),st ! subtract integer part mov bx,4(bx) fstpd (bx) fstpd 8(bx) wait ret
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -