© Neal Bridges, November 1998. (nbridges@interlog.com)
If you're unfamiliar with Quartus Forth, please take a look at the Quartus home page: <http://www.interlog.com/~nbridges/quartus.html>
This package contains the source to a polished Quartus Forth application, complete with form controls (buttons), a menu and an icon. By following the provided directions, you can use the registered version of Quartus (or the development beta, during the beta-test period) to compile the app on-board your Palm PDA, and HotSync the resulting .PRC file down to your PC or Mac.
Duco is a standard four-function calculator with one key difference -- it works in Roman numerals.
The sources to Duco are provided for two purposes: first, as a demonstration of how to write a complete Quartus Forth application, with integrated PalmOS resources; and second, to demonstrate the creation of stand-alone PRCs from Quartus apps.
Beyond that, Duco is an fun program in its own right, and may be of interest from a coding perspective to new Forth programmers.
ReadMe.htm
; this file.
Duco.txt
; The Quartus Forth
source to Duco (fits in one MemoPad memo).
MakeDuco.txt
; A Quartus
script to compile Duco into a stand-alone PRC.
Duco.rcp
; A PilRC script defining
PalmOS resources used by Duco.
IconBig.bmp
; a 1-bpp icon
bitmap.
DucoRsrc.bat
; A batch file to generate DucoRsrc.prc
(requires PilRC and Pila)
DucoRsrc.prc
; Generated from DucoRsrc.rcp
.
Provided as a convenience for those of you lacking PilRC and Pila.
Duco.prc
; The generated stand-alone application, ready
to be installed. This is the production release; it also has a small
icon, and has no splash-screen.
Here's a breakdown of what files need what other files, to help you ensure that you have all the supporting library sources installed as memos in your MemoPad: All the files listed here are available in the Quartus File Area.
enum
value
, etc.
type.right
line
and frame
cond
and thens
Duco will compile and run under the free version of Quartus. Make-Duco generates a stand-alone PRC of Duco, and contains commands that will only function properly under a registered copy of Quartus (or the development beta, during the beta test period).
If you just want to try Duco, skip these steps and simply use the Palm
Desktop software to HotSync Duco.PRC
into your Palm device. If
you want to compile it yourself, however, read on.
(note: <Return> means a Graffiti Return -- a pen stroke in the Graffiti area from upper right to lower left)
Duco.txt
and all supporting
files as memos in the MemoPad on your Palm device.
DucoRsrc.prc
into your Palm device.
include duco
<Return>
go
<Return>
MakeDuco.txt
as a memo
in the MemoPad.
include make-duco
<Return>
Duco.PRC
will be copied into the
backup directory under your Palm Desktop user directory.
Quartus compiles the sources to Duco into native-code in about 10 seconds.
Make-Duco extracts approximately 4K of active application code from
codespace, and builds it into a new .PRC file along with several required PalmOS
resources (a form, menu, about box, help text, and icon). The result: Duco.PRC
,
about 8K in size.
Duco.PRC
is automatically flagged for backup, and will be copied
into C:\...\username\backup\Duco.PRC
at the next HotSync. Duco.PRC
is a proper stand-alone application that requires no runtime support, and can
be HotSync'd (or beamed) into any another Pilot, PalmPilot, or Palm III.