aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/avr8/words/1minus.asm
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/avr8/words/1minus.asm')
-rw-r--r--amforth-6.5/avr8/words/1minus.asm13
1 files changed, 13 insertions, 0 deletions
diff --git a/amforth-6.5/avr8/words/1minus.asm b/amforth-6.5/avr8/words/1minus.asm
new file mode 100644
index 0000000..ca70fed
--- /dev/null
+++ b/amforth-6.5/avr8/words/1minus.asm
@@ -0,0 +1,13 @@
+; (S: n1 -- n2 )
+; Arithmetics
+; optimized decrement
+VE_1MINUS:
+ .dw $ff02
+ .db "1-"
+ .dw VE_HEAD
+ .set VE_HEAD = VE_1MINUS
+XT_1MINUS:
+ .dw PFA_1MINUS
+PFA_1MINUS:
+ sbiw tosl, 1
+ jmp_ DO_NEXT