Re: [Flashforth-devel] FF and PIC processors
Brought to you by:
oh2aun
|
From: Peter J. <p.j...@uq...> - 2013-06-08 17:53:56
|
Peter,
I checked by downloading the file after I put it in place so my guess is that your browser is offering up a cached copy. To get around the browser being too smart, I've made a copy of the same file to eoff-2013-jun-08.pdf. That should appear new to your browser.
I'll play with the words you sent below. Being fairly new to Forth, I am still being surprised by how neat these little utility words are. Is there a collection of such things that is generally available?
I'm also still learning how much there is to cover in a tutorial. Although I have been trying to limit the document to about 20 pages (so it's not so daunting for the students) I'm open to being more inclusive for this document or for a follow-on document.
As for dump, I was going to include it but I didn't get it to work as I expected
marker -play ok<$,ram>
$ff93 3 dump ok<$,ram>
create a-array 3 , 2 , 1 , 0 , ok<$,ram>
a-array 8 dump ok<$,ram>
a-array @ . 3 ok<$,ram>
I'm probably just doing it wrong but I also had trouble finding the words mod /mod */ */mod for the single signed numbers. Any hints?
Peter J.
________________________________________
From: Pete Zawasky [pza...@pz...]
Sent: Sunday, June 09, 2013 1:58 AM
To: FF mailing list
Subject: [Flashforth-devel] FF and PIC processors
Hi Peter,
Not sure I am able to see your new version yet.
Only found a few spelling typos in the original.
Here are 2 words I find very helpful exploring the usefulness of
FlashForth and PIC18 microcontrollers:
: .mem ( -- ) \ print current memory locations
base @ hex
cr ." flash " flash here #4 u.r
cr ." eeprom " eeprom here #4 u.r
cr ." ram " ram here #4 u.r
base ! ;
: c?% ( addr -- ) \ print byte contents at addr in binary
2 spaces base @ swap
c@ 8 bin u.r
base ! ;
c?% is useful to look at SFRs.
.mem is useful to examine further what Mikael was saying about FORGET vs
EMPTY .
Side note: I still prefer the original FORTH word COLD to
Mikael's EMPTY.
Don't leave out DUMP, especially when learning to create arrays and jump
tables.
Pete
Pete Zawasky
PZEF Co.
361 Mills RD
Oriental, NC 28571
www.pzef.net
pza...@pz...
1-252-249-3393 (voice and fax)
1-252-670-6940 (cell)
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Flashforth-devel mailing list
Fla...@li...
https://lists.sourceforge.net/lists/listinfo/flashforth-devel
|