aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/avr8/words/1plus.asm
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/avr8/words/1plus.asm')
-rw-r--r--amforth-6.5/avr8/words/1plus.asm13
1 files changed, 13 insertions, 0 deletions
diff --git a/amforth-6.5/avr8/words/1plus.asm b/amforth-6.5/avr8/words/1plus.asm
new file mode 100644
index 0000000..ffaaec2
--- /dev/null
+++ b/amforth-6.5/avr8/words/1plus.asm
@@ -0,0 +1,13 @@
+; ( n1|u1 -- n2|u2 )
+; Arithmetics
+; optimized increment
+VE_1PLUS:
+ .dw $ff02
+ .db "1+"
+ .dw VE_HEAD
+ .set VE_HEAD = VE_1PLUS
+XT_1PLUS:
+ .dw PFA_1PLUS
+PFA_1PLUS:
+ adiw tosl,1
+ jmp_ DO_NEXT