From 67d25d837ac55f28a366c0a3b262e439a6e75fc3 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sat, 19 Aug 2017 12:15:28 +0200 Subject: Add AmForth --- amforth-6.5/msp430/words/m-star.asm | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 amforth-6.5/msp430/words/m-star.asm (limited to 'amforth-6.5/msp430/words/m-star.asm') diff --git a/amforth-6.5/msp430/words/m-star.asm b/amforth-6.5/msp430/words/m-star.asm new file mode 100644 index 0000000..f1e2b44 --- /dev/null +++ b/amforth-6.5/msp430/words/m-star.asm @@ -0,0 +1,8 @@ +;C M* n1 n2 -- d signed 16*16->32 multiply +; 2DUP XOR >R carries sign of the result +; XT_SWAP ABS SWAP ABS UM* +; R> ?DNEGATE ; + HEADER(XT_MSTAR,2,"m*",DOCOLON) + DW XT_2DUP,XT_XOR,XT_TO_R + DW XT_SWAP,XT_ABS,XT_SWAP,XT_ABS,XT_UMSTAR + DW XT_R_FROM,XT_QDNEGATE,XT_EXIT -- cgit v1.2.3