[Flashforth-devel] Update of ff-tutorial-guide.pdf
Brought to you by:
oh2aun
From: Peter J. <pe...@me...> - 2013-10-26 12:42:44
|
Mike, I've updated the ff-tutorial-guide.pdf at http://dropbox.eait.uq.edu.au/e4pjacob/flash-forth/ Fixed a couple of typos, changed to use GtkTerm for the terminal program and added an example of reporting voltage measurements from an MCP3422 ADC hanging off the I2C port. I needed a scale operator for mixed, signed values so I've put one in m-star-slash.txt. It might be useful for other users of qmath.txt (if you don't already have one -- I looked but didn't see). Regards, Peter Jacobs \ m-star-slash.txt \ Peter J. 2013-10-26 -m-star-slash marker -m-star-slash \ Duplicate triple : 3dup ( n1 n2 n3 -- n1 n2 n3 n1 n2 n3 ) 2 pick 2 pick 2 pick ; \ Signed scale d1*n1/n2 with intermediate triple result : m*/ ( d1 n1 n2 -- d2 ) 3dup xor xor >r \ save result sign abs >r abs >r dabs r> r> \ now have S:ud1 u1 u2 um*/ r> ?dnegate ; |