1 ;;; Words doing arithmetics
5 ;; n3 is the sum of n1 and n2
10 WORD p_minus, '-',fasm
12 ;; n3 is the result of subtracting n2 from n1
19 ;; Multiply n1 by n2 giving the product n3.
20 ;; [rsp{8}] * [rsp+8{8}]
21 ;; dd00 = [rsp+4{4}]*[rsp+12{4}] ignored
24 ;; 0cc0 = [rsp{4}]*[rsp+12{4}]
28 ;; 0bb0 = [rsp+4{4}]*[rsp+8{4}]
29 mov eax, dword [rsp+4]
32 ;; 00aa = [rsp{4}]*[rsp+8{4}]
37 mov eax,eax ; ensure zero-extending eax
42 WORD p_abs, 'ABS',fasm
44 ;; u is the absolute value of n.
51 WORD p_negate, 'NEGATE',fasm
53 ;; Negate n1, giving its arithmetic inverse n2.