From 67d25d837ac55f28a366c0a3b262e439a6e75fc3 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sat, 19 Aug 2017 12:15:28 +0200 Subject: Add AmForth --- amforth-6.5/avr8/words/2spirw.asm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 amforth-6.5/avr8/words/2spirw.asm (limited to 'amforth-6.5/avr8/words/2spirw.asm') diff --git a/amforth-6.5/avr8/words/2spirw.asm b/amforth-6.5/avr8/words/2spirw.asm new file mode 100644 index 0000000..a7064da --- /dev/null +++ b/amforth-6.5/avr8/words/2spirw.asm @@ -0,0 +1,19 @@ +; ( n1 -- n2 ) +; MCU +; SPI exchange of 2 bytes, high byte first +VE_2SPIRW: + .dw $ff05 + .db "!@spi",0 + .dw VE_HEAD + .set VE_HEAD = VE_2SPIRW +XT_2SPIRW: + .dw PFA_2SPIRW +PFA_2SPIRW: + push tosl + mov tosl, tosh + call_ do_spirw + mov tosh, tosl + pop tosl + call_ do_spirw + jmp_ DO_NEXT + -- cgit v1.2.3