Quartus Forth Manual

Table of Contents - Quartus Forth Home Page - How to Register

The Sources to "Duco"

© 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>

About This Package:

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.

Files in this package:

Other Required Sources:

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.

About Duco and Make-Duco:

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.

To compile and run Duco from the sources provided:

(note: <Return> means a Graffiti Return -- a pen stroke in the Graffiti area from upper right to lower left)

  1. Using the Palm Desktop software, add Duco.txt and all supporting files as memos in the MemoPad on your Palm device.
  2. HotSync DucoRsrc.prc into your Palm device.
  3. You'll also need Quartus itself HotSync'd in (either the free or the registered version, version 0.8.2 or later).
  4. Start Quartus.
  5. At the prompt, type  include duco <Return>
  6. To run Duco: when prompted "ok", type   go <Return>

To create a stand-alone PRC from the sources provided:

  1. Follow steps 1-3 above.
  2. Using the Palm Desktop software, add MakeDuco.txt as a memo in the MemoPad.
  3. Start the registered version of Quartus.
  4. Type  include make-duco <Return>
  5. To run Duco: from the Palm Application Launcher (or equivalent), start the "Duco" icon.
  6. HotSync the device again; Duco.PRC will be copied into the backup directory under your Palm Desktop user directory.

Notes:

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.


Table of Contents - Quartus Forth Home Page
© 1998 Neal Bridges. All rights reserved.