.endif
.if iEqual !=0
mov iDisplay[0],0
invoke SetDlgItemText,hWnd,IDE,addr iDisplay
invoke lstrcat,addr iDisplay,addr szButtonText9
invoke SetDlgItemText,hWnd,IDE,addr iDisplay
mov iEqual,0
.endif
.endif
.if wParam == IDB_Point
invoke GetDlgItemText,hWnd,IDE,addr iStore,20+1
invoke StrToFloat,addr iStore,addr iResult
finit
fld iResult
ftst ;与0.0比较,如果为0则C3,C2,C1为1,0,0
fstsw ax
and ax,4500h
.if ax == 4000h
mov iDisplay[0],'0'
invoke lstrcat,addr iDisplay,addr szButtonTextPoint
invoke SetDlgItemText,hWnd,IDE,addr iDisplay
.else
invoke lstrcat,addr iDisplay,addr szButtonTextPoint
invoke SetDlgItemText,hWnd,IDE,addr iDisplay
.endif
.endif
.if wParam == IDB_Add
mov iCal , 1 ;设置运算符为加,标志位对应为1
<< 上一页 [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] 下一页