, so when I flash they are
> direct availableI
>
> Cheers,
>
>
> Jan kromhout
> Sacharovlaan 3
> 3223HM Hellevoetsluis-NL
>
> Op 14 jun. 2012 om 21:27 heeft Kalus Michael
> het volgende geschreven:
>
>> Hi Jan.
>>
>>
>> Am 14.06.2012 um 07:53 s
Hi.
To handle IMMEDIATE words there is a variable called G4IMMEDIATE -
turn it on to make the next colon definition immediate.
Since G4 is a simple one pass scriptor, there is no other way to
accomplish it. The header and following stuff has allready been
written when you reach the classic
Hi Jan.
Am 14.06.2012 um 07:53 schrieb Jan Kromhout:
..
> 2. Can I used it with Win32for compiler under windows?
Tried this tonight, it compiled with 3 errors I could fix -
WIN32FORTH V 6.14.00 build 2
Several warnings may be ignored.
So there is a win32forth version now called g4w32f.fs at:
Cheers,
>
> Jan kromhout
> Sacharovlaan 3
> 3223HM Hellevoetsluis-NL
>
> Op 14 jun. 2012 om 00:25 heeft Kalus Michael
> het volgende geschreven:
>
>> Hi Jan.
>>
>> I would add the word to amforth-x.x/appl/myproject/words/uitvoer.asm
>> and append them in
Hi Jan.
I would add the word to amforth-x.x/appl/myproject/words/uitvoer.asm
and append them in dict_appl.inc in the way words are included there:
..
.include "words/uitvoer.asm" ; my first assembled forth word
..
Did you take a look at
http://www.forth-ev.de/repos/g4/
allready? g4.fs is a pl
Hi.
BSET and BCLR in 4e4th where renamed to CSET and CCLR. They are
MSP430 specific code since the MSP supports bit set and bit clear
instructions at any address.
Michael
;U Bit manipulation words
--
; based on http://www.forth.org/svfi
Hi.
Is there any XOFF/XON mechanism active?
Could you visualise ALL characters transmitted from device to terminal?
And source to device? (ASCII-Code 0 to 31 and 127)
Michael
Am 01.03.2012 um 01:48 schrieb Charles Summers:
> I really appreciate all the help. Unfortunately things are still no
Am 04.06.2011 um 11:22 schrieb pito:
> Hi, for debugging/educative purposes I'd like to monitor the
> activity of the inner interpreter. The idea is it to have an led
> switched on/off when running through the interpreter, so I can see
> the interpreter interprets words and the program is running
Hi.
Here is some gforth code to make a one-file amforth assembler source
from your application.lst file.
Edit wowrd GO on line 76 in delister.fs to your needs.
: go s" my-application.lst" delist bye ;
Then on comand line do:
gforth delister.fs -e go > my-application.asm
Befor you do so
Hi
Here is a tool to convert your amforth application AVRA *.lst file
into an assemler source.
http://dl.dropbox.com/u/1170761/relister.fs
I used gforth.
Open gforth, include relister.fs and type
s" " relister
on gforth commandline.
To use shell command edit relister line 77 to name of yo
Hi.
Recently someone asked how otherwise imported subroutines (c-code)
can be used by amforth.
You may use icall of AVR instruction set to do so.
Include icall.asm example in your application to test it.
Add more stack to register moves if necessary for a given subroutine.
Michael
; ( adr --
Hi Hannu.
Am 10.04.2011 um 04:48 schrieb Hannu Vuolasaho:
..
>> Yes, UNTIL consumes a flag. IF consumes a flag too.
> OK. Does amforth's words page have then error in if ( -- addr )
> ? shouldn't that be ( f -- addr) Also until ( addr -- )
> looks wrong. (f -- ) as it is making boolean decis
Hi Hannu.
Am 09.04.2011 um 21:57 schrieb Hannu Vuolasaho:
>
> Hi Michael and rest of you!
>
> Thanks for kind answers. Those were very enlightning. I'll bring
> these new questions up so that beginners like myself doesn't need
> to ask them over again (if they can search archives) and maybe
Hi Hannu.
Am 08.04.2011 um 06:41 schrieb Hannu Vuolasaho:
> Q: Is somewhere simple LED blinker example?
> A: saw examples directory and studying those programs. But the
> workflow from forth code to standalone program is missing
\ example:
: main ( -- ) begin led-on 1000 ms led-off 1000 ms k
Am 03.04.2011 um 12:27 schrieb D Nyberg:
> I think you would also see a huge speed increase if you defined
> constant
> named "1" and tried it again too. That used to be standard in F79 and
> 83, though it was more about size than speed.
>
> On 4/3/2011 4:16:17 AM, pito (p...@volna.cz) wrote:
Hi.
pito wrote:
> Hi, when running the amforth4.2 in simulator I've observed
> following:
> a) "1 1 + ." takes 42sec to calculate
> b) "1000 1000 3000 + - ." takes 60sec to calculate.
> Does it mean the amforth spends most of the time with tokens lookup?
Interpreting a commandline speeds up if yo
has XONXOFF at the beginning ans FINIS at end of code.
There is en errorhandler as well that may by turnd on and off.
My amforthversion 3.6 uses pollling method for USART.
Michael
Am 30.03.2011 um 23:24 schrieb Marcin Cieslak:
>>> Kalus Michael wrote:
>> I use ZTerm with Mac O
Hi.
Am 29.03.2011 um 21:33 schrieb Matthias Trute:
..
> Receiving characters is a completly different thing. The characters
> can come at any time, therefore the code needs to deal with the
> situation relativly fast (at least before the next character
> arrives).
If you just want to connect a t
Hi.
http://dl.dropbox.com/u/1170761/aStudio4b589.exe
michael
Am 23.03.2011 um 07:09 schrieb D Nyberg:
> On 3/22/2011 2:35:17 AM, pito (p...@volna.cz) wrote:
>> Which AvrStudio4 build do you run? I've upgraded to the latest 716
>> and the Hapsim2.17 does not hook..
>>
> Okay, the hapsim page s
Hi Karl.
Maybe you want to take a look at old volksforth - it had blocks on
flopy disk as forth source.
http://www.forth-ev.de/wiki/doku.php/words:volksforth_kernel
...
: source ( -- addr len ) blk @ ?dup IF loadfile @ (block b/blk exit
THEN tib #tib @ exit ;
...
Michael
Am 10.11.2010 um 2
I like to use such ref cards - great! Thank you!
Michael
Am 25.10.2010 um 20:19 schrieb Matthias Trute:
> hi all,
>
> I recently spent some time on updating the documentation
> headers in many assembly files. The result is a pdf file
> on the project home page
>
> http://amforth.sourceforge.n
Hi.
Is there an evaluate for amforth?
Michael
--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting c
Hi.
how can I see what word a defered word will execute?
gforth:
defer test ok
: xxx 11 22 33 . . . ; ok
xxx 33 22 11 ok
.s <0> ok
' xxx is test ok
test 33 22 11 ok
.s <0> ok
see test
: xxx
11 22 33 . . . ;
latestxt
Defer test
IS test
ok
amforth?
Michael
amforth-devil ;-)
mailing list stripped attachment.
So use link please to get the file:
http://dl.dropbox.com/u/1170761/qmark.asm
Michael
Am 03.10.2010 um 09:37 schrieb pito:
> ..did you send an attachment? P.
>
> - PŮVODNÍ ZPRÁVA -
> Od: "Kalus Michael"
&g
Hi.
maybe you like to have it in your dict_appl.inc, so
.include "words/qmark.asm"
there.
Michael
--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployme
Hi Pito.
Am 30.09.2010 um 21:15 schrieb pito:
>>> float is an assembler defined word, or is it
>>> colon definition?
> it is Leon's word - the colon definition, not an assembler word.
> See Leon's lib
> http://github.com/lnmaurer/amforth-float/blob/master/float.fth
>
> P.
Hm, I see. Very strang
Hi Pito.
>float is an assembler defined word, or is it colon definition?
http://www.bradrodriguez.com/papers/moving6.htm:
COMPILER OPERATION
"... Also, : will HIDE the new word, and ; will REVEAL it (by setting
and clearing the "smudge" bit in the name). This is to allow a Forth
word to be
Hi Pito.
If >float is assembler defined and closed with something like end-
code, this end-code has to smudge the definition the same way ;
(semicolon) does it.
It has been a long standing claim that a definition may not be found
until it is finished. So setting the "smudgebit" is last thing
Hi.
Am 30.09.2010 um 14:18 schrieb pito:
..
>> bl parse 7.77854e-12 >float
> ^
> ?? -13 28
>>
> Why?? Pito
This indicates that >float is unknown to your system.
28 characters from the beginning of the line is the end of the
unknown word = >float
There was a patch recently for quit.asm that mov
Hi.
Would you kindly try (again?) this marker verson on amforth-4.2?
http://dl.dropbox.com/u/1170761/marker.asm
It is ok with my amforth3.6. May be now it is ok for amforth-4.2 too,
since i! is fixed.
marker copies eeprom from 0..edp into flash, and then
restores it.
It restores values a
Hi Pito.
..
> Not sure about device.inc. Why we need it?
Setup device.asm to include your device.inc tree if you like to have
address names at forth level too. No need to download them as forth
source code then.
e.g. (atmega168):
You want all PortB names as forth words. Edit device.asm line
Hi Pito.
Am 19.09.2010 um 02:11 schrieb pito:
..
> As Matthias indicates there are
> no dependencies on positioning of the asm within the chip (?),
..
i! had to be in boot flash section. Interrupt vectors had to be at
the _beginning_ of application flash section (or boot flash section;
depend
Pito.
> dict_appl.inc ...
This is my experience.
a) For a well defined board like butterfly and a limited project I
put all my *.asm files in the words dictionary of its appl folder, e.g.:
amforth-4.1/appl/avr-butterfly/words/*.asm
And dict_appl.inc includes all these *.asm files then.
So t
Hi Pito.
Looks like a kind of disassembler.
So ff is subroutine threaded forth?
amforth is token threaded code (TTC).
Here we want an disforther. ;-)
Thanks for the info. Michael
Am 18.09.2010 um 10:08 schrieb pito:
> Michael,
> so I fired up ff and this is what I can see:
>
> ok<$,ram>
> see
Am 18.09.2010 um 01:05 schrieb pito:
> Hi Michael,
> few Q (sorry, I am an forth language illiterate):
> a) how the "here" knows what to deliver - next free address of flash
> or next free address from ram?
Oh, I'm sorry. Its in amforth-3.6.
amforth-3.6
here == next free address of flash
heap ==
Hi.
If you like to see what has been compiled, gforth has comfortable
SEE
as a command. There is no see in amforth so far? So this may help a
little.
new
hex ( source: amforth-4.1/lib/ans94/ans.frt)
\ go from the XT backwards to get the Name field
: xt>nfa ( xt -- nfa )
1- \ link add
Hi.
Am 16.09.2010 um 14:39 schrieb pito:
..
> PS: I am still thinking why the amforth overhead is so big?? It
> seems from my naive measurements a typical forth word takes ~7us
> plus minus.
> This is about 175 clock cycles @25MHz, or aprox 100 instructions -
> could it be so much? Just a stupid Q
Hi.
Here is an explanation example. Comments wellcome.
http://dl.dropbox.com/u/1170761/2dup.asm
Michael
Am 15.09.2010 um 10:01 schrieb Marcin Cieslak:
> On Wed, 15 Sep 2010, pito wrote:
>
>> Hi,
>> is there any expalnation available on what these
>> .dw $ff03;
>
> High byte:
>$75 me
this is broken because of the changes to here and dp
> recently.
> Anyway, for now I'm sticking with a hybrid 3.8 -- I did take some
> of the
> device and driver stuff out of 4.1 and got it working with 3.8.
>
>
> On Wednesday, September 15, 2010 16:59:25 pm Kalus Michael wrot
Hi Al.
..
The problem is once you mess up the flash you have to reprogram.
Adding a simple 'restoresystem on reset' helps allot. It just takes a
copy of the original system vectors and puts them back into eeprom.
As long as you did not overwrite amforth below DP by mistake this
will work.
Hi.
Am 15.09.2010 um 21:24 schrieb Al Williams:
..
Any ideas on getting marker to work?
maybe this version works. It copies the _entire_ system vector to
flash, and pops it back when executing the marker word.
: pushee ( -- ) dp , here , edp , edp 8 do i e@ , 2 +loop ;
: popee ( adr n
Am 09.09.2010 um 20:10 schrieb Matthias Trute:
...
> There is no way to use forth words from within the
> assembler code. For that you need to initialize
> a forth vm and call it. The only "guide" for that
> is the startup code itself (amforth.asm).
and goes like this:
sei ; global interupt
Hi.
Is there a readme.txt or so giving hints how to establish the
communicate via the USB of arduino board, after the
duemilanove.eep.hex and duemilanove.hex are flashed successfully?
Friends keep complaining not getting the ok using it from the shelf
(ver4.1).
There are various Linux in us
Hi.
: xx 11 22 33 ;
Edefer zz
' xx is zz
Then later on I want to examin the system: What words do all my
Edefered word stand for?
How can I find out which word has been put there in an Edefered word?
' zz 1+ i@
gives the adr in eeprom where the xt of xx is.
example:
» 62 e@ .
5390 ok
» ' xx
Hi Andy.
Am 23.08.2010 um 13:40 schrieb a...@kirbyand.co.uk:
..
> http://www.ruggedcircuits.com/html/mb324p.html
Very interesting board. But there is no information on how they
solved the USB-serial to ATmega324P connection. They call it Arduino
compatible, so i guess they usa a the bootloade
ls up should be 1.2
> (1.0, 1.1
> are the previous iterations).
>
> For etching I use the Copper Chloride method documented here :-
>
> http://www.instructables.com/id/Stop-using-Ferric-Chloride-
> etchant!--A-better-etc/
>
> Sorry I am not big on video.
>
> But hope the
Hi Andy.
I'd realy like to take a look over your sholder when you do "built a
couple of boards up" - video? How do you do it?
Michael
Am 22.08.2010 um 19:02 schrieb a...@kirbyand.co.uk:
> Thanks mathias
>
> I have just received a couple of 1284's and built a couple of
> boards up
> with the
Hi.
You are right - its in gforth. g4 was fun to do, used it for some
privat purpose with amforth. Its free, use it as you like. There is
no manual.
Michael
Am 18.08.2010 um 23:00 schrieb pito:
> g4 tool - interesting! On the first glance I tought I can run it in
> amforth, then I saw UPP
Maybe this ist interersting for you then.
Michael
Am 17.08.2010 um 03:39 schrieb Marcin Cieslak:
Below please find definitions of c?, i? and ? - I find
them useful while exploring amforth (and AVR) interactively.
--Marcin
; ( addr -- ) Numeric IO
; R( -- )
; output single character fro
49 matches
Mail list logo