;**************;绝对值在ax中符号在S中ax-bx*****s要定义db*************
subab PROC
CMP AX,BX
JAE goab
XOR s,1
XCHG AX,BX
goab:
SUB AX,BX
RET
subab ENDP
;***************************linex***y=(y2-y1)*(x-x1)/(x2-x1)+y1
;****in (x1,y1),(x2,y2)******************x++
linex PROC NEAR
PUSH x1
PUSH x2
PUSH y1
PUSH y2
pusha
上一页 [1] [2] [3] [4] [5] [6] 下一页