aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/avr8/words/less.asm
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/avr8/words/less.asm')
-rw-r--r--amforth-6.5/avr8/words/less.asm18
1 files changed, 18 insertions, 0 deletions
diff --git a/amforth-6.5/avr8/words/less.asm b/amforth-6.5/avr8/words/less.asm
new file mode 100644
index 0000000..8426acd
--- /dev/null
+++ b/amforth-6.5/avr8/words/less.asm
@@ -0,0 +1,18 @@
+; ( n1 n2 -- flag)
+; Compare
+; true if n1 is less than n2
+ VE_LESS:
+ .dw $ff01
+ .db "<",0
+ .dw VE_HEAD
+ .set VE_HEAD = VE_LESS
+XT_LESS:
+ .dw PFA_LESS
+PFA_LESS:
+ ld temp2, Y+
+ ld temp3, Y+
+ cp temp2, tosl
+ cpc temp3, tosh
+PFA_LESSDONE:
+ brge PFA_ZERO1
+ rjmp PFA_TRUE1