aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/avr8/words/dnegate.asm
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/avr8/words/dnegate.asm')
-rw-r--r--amforth-6.5/avr8/words/dnegate.asm17
1 files changed, 17 insertions, 0 deletions
diff --git a/amforth-6.5/avr8/words/dnegate.asm b/amforth-6.5/avr8/words/dnegate.asm
new file mode 100644
index 0000000..cfa45ca
--- /dev/null
+++ b/amforth-6.5/avr8/words/dnegate.asm
@@ -0,0 +1,17 @@
+; ( d1 -- d2 )
+; Arithmetics
+; double cell negation
+VE_DNEGATE:
+ .dw $ff07
+ .db "dnegate",0
+ .dw VE_HEAD
+ .set VE_HEAD = VE_DNEGATE
+XT_DNEGATE:
+ .dw DO_COLON
+PFA_DNEGATE:
+ .dw XT_DINVERT
+ .dw XT_ONE
+ .dw XT_ZERO
+ .dw XT_DPLUS
+ .dw XT_EXIT
+; : dnegate ( ud1 -- ud2 ) dinvert 1. d+ ;