aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/avr8/words/equalzero.asm
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/avr8/words/equalzero.asm')
-rw-r--r--amforth-6.5/avr8/words/equalzero.asm14
1 files changed, 14 insertions, 0 deletions
diff --git a/amforth-6.5/avr8/words/equalzero.asm b/amforth-6.5/avr8/words/equalzero.asm
new file mode 100644
index 0000000..d33cedd
--- /dev/null
+++ b/amforth-6.5/avr8/words/equalzero.asm
@@ -0,0 +1,14 @@
+; ( n -- flag )
+; Compare
+; compare with 0 (zero)
+VE_ZEROEQUAL:
+ .dw $ff02
+ .db "0="
+ .dw VE_HEAD
+ .set VE_HEAD = VE_ZEROEQUAL
+XT_ZEROEQUAL:
+ .dw PFA_ZEROEQUAL
+PFA_ZEROEQUAL:
+ or tosh, tosl
+ brne PFA_ZERO1
+ rjmp PFA_TRUE1