
Specialist
Instrumentation Design and Programming
Inventio Software Ltd, 568 London Road
South, Lowestoft, Suffolk, NR33 0LF
(+44) 01502 589198 Mobile (+44) 07954 580 833
email : howerd (at) inventio (dot) co
(dot) uk
Inventio Software Ltd - registered as a computer consultancy in the
UK since 1985, and as a limited liability company 2000 Jul 07
Howerd Oakford specialises in real-time, embedded, internet enabled programming where program size, speed or reliability are critical. Also the hardware to run it on - micro-controller instrumentation and system design. Click here for my CV ,or download it in Word format. I like the Forth programming language – please see the links below…
Inventio is Latin for "discovery". Software is what makes a computer do what you want.
Corrected
two typos in the HDLC CRC16 calculation in Forth :
crc16hdlc.f
crc16.zip
\
*****************************************************************************
\
crc16hdlc.f 2012 Apr 11
\
CRC-16 for HDLC calculation using a table
\
16 bit FCS lookup table per RFC1331
\
Thanks to :
\
http://www.mavi1.org/web_security/cryptography/hashes/crc/crc-16-hdlc.c
\
Note that this code defines "#define FCSGOOD 0xF0B8"
\
whereas I define "$0F47 constant CRC_VALID" which is bitwise inverted.
\
This is because CRC16 returns the actual value to be sent in an HDLC packet
\
Also note that at least one online CRC calculator does not include this CRC.
\
*****************************************************************************
…and added two new CRC16 calculations
in Forth :
crc16modbus.f as above for ModBus
crc16-a.f as above for ISO10373 and ISO14443 type A
(and B )
Download cweed4v1.exe self-extracting zip file.
Download cweed4v1.zip zip file.
Minor
bug fixes in Folder Report and new NumName.txt file “monsoons-megabyte”
Fixed
lack of update when the Cweed window is covered, added NumName text feature to
give the file MD5 hash a human readable form – see NumName.f for details.The
NumName.txt file list of words is now precompiled.
Announcing Win32Forth6v05H.exe ( and Win32Forth6v05H.zip zip version ) , the Win32Forth system used
to create win32for.exe, as supplied in the Cweed packages. The ‘H’ is for
Howerd, although I have kept as much of the original V6.05 as possible.
This version of Win32Forth runs under
Windows7 ( Ultimate 64 bit ) and does not offend my anti-virus program.
I have kept the original help file by Tom Zimmer et al. but moved it to load from the local directory without having to have the source tree present. This means that it works with the Cweed package. I merged changes in the OS detection words from V6.14 so that it recognises Windows 7…
I have also added some aliases such as
loc for
locate , to locate a word’s source,
\\ for
\S to end compilation of a file
and some new words :
g to invoke the editor, and
tt that,
if you are in directory Cweed, will
load file Cweed.f
I am offering what I hope is a very
competitive service to convert RS-274-D format Gerber files to the new to
RS-274-X standard.. click here for details.
568
London Road South
Lowestoft
Text
My thoughts on Forth
My EuroForth papers collected together here :
2003 The colorForth Magenta Variable an emergent property of a new programming environment
2003 Three Forths Make a Hole how Forth made the extremely difficult happen
2001 colorForth and the Art of the Impossible the title says it all
2000 The Point to Point Protocol in Forth Hayes, PPP, IP, UDP, IPCP for 16 bit micros
1998 Multiple Language Programs Made Easy what you can do with a simple compiler
1997 Forth : Past, Present and Future an attempt to understand Forth
Forth and Not C (why you shouldn't use Forth ;)
Forth Versus C (why you should use Forth ;)
Token-based Programming for Compact Code getting the most out of the Atmel 89C2051
Software - The following are available
for free download!!!
Full assembler source files, NASM assembler, colorForth source and DOS batch file to create the colorForth image, plus
floppy.com to download it to a floppy disc :
Download the zip file here cf2010_4v1.zip
and self-extracting zip file here cf2010_4v1.exe
Real colorForth running really
slowly...
A tradeoff between working on (just
about) any Windows PC against execution speed.
Double left click ( run ) go.bat to
start the cf2010.blk version of colorForth
in a bochs PC emulator.
bochs is available from
http://bochs.sourceforge.net/
bochs is truly wonderful! Thank you to
all the bochs developers...
Download the zip file here cf2010bochs.zip
and self-extracting zip file here cf2010bochs.exe
Some
of my software tools - I hope they are useful...
PCIdev PCI device viewer. Even works under WinXP/2K/NT (with some help!) This program may be of special interest to potential colorForth users to debug troublesome hardware...
PPP.com is a DOS based program to analyse, display and create PPP and Internet protocols. PPP.com is the current evolution of a general purpose scripting environment, adapted to the Point to Point Protocol. Currently it can open a PPP connection to an ISP and send DNS, ICMP, UDP or TCP packets to any IP address on the Internet. PPP.com has not been optimised for program size, as it is a 16 bit Forth program, and nearly fills up the maximum 63K bytes allowed for a .com program. This includes 4K of help text, roughly 3K of protocol descriptor text, an editor, 8086 assembler and Forth compiler. It supports five tasks, two of which monitor PPP and IP packets on each of COM1 and COM2 serial ports. It is programmed in a 16 bit DOS 8086 Forth to allow easy porting to 8 or 16 bit embedded processors.
Cweed is a C source file weeded and scanner. It only changes whitespace (formatting) and does not otherwise change the content of the file. This is analogous to weeding a garden, where the plants are left untouched but the bits between may be seriously modified. Cweed is an experiment in specifying a coding standard in the form of an executable program. Cweed is also useful for scanning a file for control characters, removing tabs, or just viewing what is actually there, not processed and formatted by an editor.
cfdos is
a DOS program to display colorForth pre-parsed source blocks. This program will
work on any computer that runs or emulates DOS, and allows you to view colorForth source, in
both normal and "colour blind" mode. It features a file listing
utility (F6) which displays all files of type *.BLK in the same directory, and
can copy them to a formatted floppy disk. colorForth Explorer Edition is the latest colorForth stand-alone
operating system, packaged together with a Windows/DOS program to display colorForth source and
create bootable floppy disks.
Don't be deceived by the fact that colorForth boots from
a floppy - this is an experimental state-of-the-art operating system for a PC.
See The colorForth
Magenta
Variable
and colorForth and the Art of the Impossible my first impressions of colorForth
So
you want to know more about Forth? Hint
: when searching for Forth related material on the Internet, use “in Forth” as the
string, as this excludes the use of the English word “forth” as in “back and
forth”. E.g. Google for "in forth" tutorial
http://www.angelfire.com/in/zydenbos/WhatisForth.html
(by R.J Zydenbos)
www.forth.com (Forth, Inc. , ANS Forth
supplier)
http://www.mpeforth.com/ (MicroProcessor
Engineering , ANS Forth supplier)
www.holonForth.com (HolonForth , HolonJ
for Java, HolonX for XML - a novel database Forth/Java/XML environment)
FIG (the Forth Interest Group)
Forth Java applet (try out
Forth online!)
Forth Underview (by
Peter Knaggs)
Why Forth (a
personal view, very much the same as my own, from Brad Rodriguez)
http://home.iae.nl/users/mhx/sf0/sf0.html
Starting Forth
http://thinking-forth.sourceforge.net/ Thinking Forth
http://www.forth.com/resources/evolution/index.html
http://dec.bournemouth.ac.uk/forth/forth.html
http://www.ece.cmu.edu/~koopman/forth/hopl.html
http://www.charlton.demon.co.uk/stackflow/ (about the Stack)
http://www.softsynth.com/pforth/pf_tut.html (also in French and Chinese)
http://www.complang.tuwien.ac.at/forth/gforth/Docs-html/
(Gforth for Linux)
http://www.lxhp.in-berlin.de/lhpf8td.html (in
German)
http://dec.bournemouth.ac.uk/forth/ans/faq.html (
ANS standard FAQs )
http://en.wikipedia.org/wiki/Forth_programming_language
http://wiki.forthfreak.net/index.cgi?ForthWiki
http://www.forth.com/
(Forth systems vendor)
http://www.mpeforth.com/ (VFX
Forth – optimizing compiler)
http://www.inventio.co.uk/forthvsc.htm
(why you should use Forth)
http://www.inventio.co.uk/forthnc.htm (and maybe why you shouldn’t ;)
colorForth
http://www.colorforth.com/cf.html (a new
development in Forth - not ANS)
http://www.inventio.co.uk/cfdos.htm (download DOS
colorForth utilities)
cflinks.strangegizmo.com/ ( colorForth resources
on the Web)
Comments and ideas to : Howerd Oakford
Howerd Oakford's personal page - everything you may not want to know about me...
This
Web Site was last updated on 2012 Apr 11
Delivery
Address : Inventio
Software Ltd, 568 London Road South Lowestoft, Suffolk,
NR33 0LF, UK
Thanks to Bert Greevenbosch for J.S.Bach's Inventio No.8 and Inventio No.13.
Hits since 2002 Jul 05 :
___