aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/avr8/words/mstar.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/mstar.asm
parent530a312ee523a25e5df475341d201e5bb1296c41 (diff)
Remove AmForth
Diffstat (limited to 'amforth-6.5/avr8/words/mstar.asm')
-rw-r--r--amforth-6.5/avr8/words/mstar.asm37
1 files changed, 0 insertions, 37 deletions
diff --git a/amforth-6.5/avr8/words/mstar.asm b/amforth-6.5/avr8/words/mstar.asm
deleted file mode 100644
index a25d4a1..0000000
--- a/amforth-6.5/avr8/words/mstar.asm
+++ /dev/null
@@ -1,37 +0,0 @@
-; ( n1 n2 -- d)
-; Arithmetics
-; multiply 2 cells to a double cell
-VE_MSTAR:
- .dw $ff02
- .db "m*"
- .dw VE_HEAD
- .set VE_HEAD = VE_MSTAR
-XT_MSTAR:
- .dw PFA_MSTAR
-PFA_MSTAR:
- movw temp0, tosl
- loadtos
- movw temp2, tosl
- ; high cell ah*bh
- muls temp3, temp1
- movw temp4, r0
- ; low cell al*bl
- mul temp2, temp0
- movw tosl, r0
- ; signed ah*bl
- mulsu temp3, temp0
- sbc temp5, zeroh
- add tosh, r0
- adc temp4, r1
- adc temp5, zeroh
-
- ; signed al*bh
- mulsu temp1, temp2
- sbc temp5, zeroh
- add tosh, r0
- adc temp4, r1
- adc temp5, zeroh
-
- savetos
- movw tosl, temp4
- jmp_ DO_NEXT