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/rpfetch.asm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 amforth-6.5/avr8/words/rpfetch.asm (limited to 'amforth-6.5/avr8/words/rpfetch.asm') diff --git a/amforth-6.5/avr8/words/rpfetch.asm b/amforth-6.5/avr8/words/rpfetch.asm new file mode 100644 index 0000000..8d1cdb6 --- /dev/null +++ b/amforth-6.5/avr8/words/rpfetch.asm @@ -0,0 +1,15 @@ +; ( -- n) +; Stack +; current return stack pointer address +VE_RP_FETCH: + .dw $ff03 + .db "rp@",0 + .dw VE_HEAD + .set VE_HEAD = VE_RP_FETCH +XT_RP_FETCH: + .dw PFA_RP_FETCH +PFA_RP_FETCH: + savetos + in tosl, SPL + in tosh, SPH + jmp_ DO_NEXT -- cgit v1.2.3