aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/avr8/words/popcnt.asm
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-08-26 20:31:40 +0200
committerDimitri Sokolyuk <demon@dim13.org>2017-08-26 20:31:40 +0200
commitd80736ab6e8e3cad2f1a30c6eaba2d6883dbe967 (patch)
tree15962f3d8542ae182d88ac5913a3c4bfce6f2b03 /amforth-6.5/avr8/words/popcnt.asm
parent530a312ee523a25e5df475341d201e5bb1296c41 (diff)
Remove AmForth
Diffstat (limited to 'amforth-6.5/avr8/words/popcnt.asm')
-rw-r--r--amforth-6.5/avr8/words/popcnt.asm29
1 files changed, 0 insertions, 29 deletions
diff --git a/amforth-6.5/avr8/words/popcnt.asm b/amforth-6.5/avr8/words/popcnt.asm
deleted file mode 100644
index 66f8f47..0000000
--- a/amforth-6.5/avr8/words/popcnt.asm
+++ /dev/null
@@ -1,29 +0,0 @@
-; ( n1 -- n2 )
-; Arithmetics
-; count the Number of 1 bits (population count)
-VE_POPCNT:
- .dw $ff06
- .db "popcnt"
- .dw VE_HEAD
- .set VE_HEAD = VE_POPCNT
-XT_POPCNT:
- .dw PFA_POPCNT
-PFA_POPCNT:
- movw zl, tosl
- clr tosl
- rcall PFA_POPCNT1
- mov zl, zh
- rcall PFA_POPCNT1
- clr tosh
- jmp_ DO_NEXT
-
-PFA_POPCNT1:
- ldi tosh, 8
-PFA_POPCNT2:
- ror zl
- ;breq PFA_POPCNT3
- adc tosl, zeroh
- dec tosh
- brne PFA_POPCNT2
-POPCNT3:
- ret \ No newline at end of file