--- gforth/doc/gforth.ds 2010/08/10 22:00:42 1.226 +++ gforth/doc/gforth.ds 2010/08/12 21:31:06 1.227 @@ -12927,13 +12927,12 @@ Here's a AMD64 example that deals with F @example abi-code my-f+ ( r1 r2 -- r ) \ SP passed in di, returned in ax, address of FP passed in si -si ) ax mov \ load fp -8 ax d) dx lea \ update fp -ax ) xmm0 movsd \ r2 -dx ) xmm0 addsd \ r1+r2 -xmm0 dx ) movsd \ store r -dx si ) mov \ store new fp -di ax mov \ sp into return reg +si ) dx mov \ load fp +8 dx d) xmm0 movsd \ r2 +dx ) xmm0 addsd \ r1+r2 +xmm0 8 dx d) movsd \ store r +8 # si ) add \ update fp +di ax mov \ sp into return reg ret end-code @end example