[PicForth] Data table usage and general error tracing ?
easlab at absamail.co.za
easlab at absamail.co.za
Tue Jan 20 18:47:51 CET 2004
2 separate problems here.
I want to extend my initial picforth program tests/learning by
accessing a data-array. I read: --
> New words
>
> * table, ftable, eetable, table> and end-table allow to create
> respectively RAM, flash or EEPROM tables.
> ...
> The following words allow you to create tables:
> table ( "name" -- ) Start a RAM table
> ...
> t, ( n -- ) Add one byte to the table
> table> ( "b1 .. bn" -- ) Add bytes b1 to bn to the table
> end-table ( -- ) End table declaration
I try to compile:
table
table> "9 8 7" \ try also <" 9 8 7 "> ; try also <9,>
end-table
Importantly, the error trace which would perhaps be sufficient to
fix this [and the to be expected future problems] scrolls off the
screen.
For a trivially introduced error, the
"<command-line-for-generating *.hex file> > ErrorFile"
command [in a bash script] produced a valid and helpfull pointer to
the error; but not for the 'table example above'.
Q1. Where is the mistake(s) in my attempted code ?
Q2. How is it possible to capture the error trace to a file ?
== Chris Glur.
More information about the PicForth
mailing list