On Fri, 10 Sep 2010, pito wrote:
First, I am assuming that "Luboš assembler" is a set of words
from the lib/assembler.frt file in the amforth distribution.
Is this correct?
1. I want to write a new word full in asm called fuX (a b c -- y )
2 I want to use an existing "code" written in assembler
Matthias, Marcin,
thanks a lot for the infos - I've spent a time to work in order to
write my first amforth routine ++_ - based on Lubos sources so I've
got the first touch..
Basically my problem is not the assembler of any processor, but what
are the limitation for a specific integration in the f
Matthias, thanks! I've tried to comment indirect access like
( n -- (tos-n) ) and that killed me for a while..P.
> nested comments are not allowed.
--
Start uncovering the many advantages of virtual appliances
and star
Pito,
> Hi, is this correct behaviour in respect to comment content? P.
>
>
> : abcd1 ( n -- xx )
> .s ;
>
>
> : abcd2 ( n -- (xx) )
nested comments are not allowed. I just tried
your code with gforth (0.7.0) and it produces
(other but) similiar strange output.
The ( searches for the
Hi 李雪愚,
> I've got headache on debug the words on the board. I need a simulator for
> amforth.
Thats sad. I know of no s(usable) imulator for the avr's. The Atmel
Development studio has a built-in simulator, but I never managed to get
amforth running there. It simply crashes.
> Or how to compil
adiw xl, 1
DO_NEXT:
brts DO_INTERRUPT
movw zl, XL; READ IP
readflashcell wl, wh
adiw XL, 1; INC IP
DO_EXECUTE:
movw zl, wl
readflashcell temp0,temp1
movw zl, temp0
ijmp HERE CALLS AVRStudio usoft
DO_INTERRUPT:
; here we deal with interrupts the forth way
Hi, I can imagine the headache, indeed. The experts may answer the
simulator Q.. I've put the stuff into AVR Studio 4.18 SP2 (build 700
and 692)and I've tried to run amforth in simulator. IT WORKS,
however after few steps the AVR Studio crashed (it shots down the
simulator) - always on first "ijmp"
Hi, is this correct behaviour in respect to comment content? P.
: abcd1 ( n -- xx )
.s ;
: abcd2 ( n -- (xx) )
.s ;
> 1234 abcd1
0 12846 1234
ok
>
> .s
ok
> 1234 abcd2
0 12844 0 additional 0 on stack
1 12846 1234
ok
>
--
Hi, better code for stacks hexa vertical. Pito
\ Some new .s
\ by Pito 2010-09-10
\ v3 WITH TOS, TOR ON RIGHT SIDE
\PRINTED VERTICALLY !!!
\ a little bit optimised
marker -newdots
: u.r ( s n -- ) 0 swap ud.r ; \ comment if installed
: nibble ( n -- nth_nibbble )
1- 2* 2* rshift
hi, all
I've got headache on debug the words on the board. I need a simulator for
amforth.
Does anyone know how to solve it? Or how to compile the amForth to X86? Where
are the forth source of the core?
Thnks and Best Regards.
---
Hi, here is the data stack printed Vertically, TOS on rigt side.
Currently HEX only, not optimised yet.. Pito
\ Some new .s
\ by Pito 2010-09-10
\ v3 WITH TOS ON RIGHT SIDE
\PRINTED VERTICALLY !!!
\ not optimised yet
marker -newdots
: u.r ( s n -- ) 0 swap ud.r ; \ comment if instal
11 matches
Mail list logo