Effective Computer-aided Calculator Programming - Part 1 - Voyager



#2

Abstract


Keystroke programming for small quick&dirty programs it is very efficient, but what about for long or very long programs? Debugging a 100+ instruction program can be a challenge, especially when only one instruction is visible. Many of us can write RPN code in text editors, and then run the program in our heads before keying the sequence. While this may work for some, there are more effective ways.

The purpose for this series of articles is to describe the options available to aid in the rapid development and testing of RPN code by leveraging the use of text editors, compilers, and accelerated simulators and emulators.

Part 1 of this series supports the follow models: 11C, 12C, 15C, and the 16C.



Link: http://www.hpmuseum.org/cgi-sys/cgiwrap/hpmuseum/articles.cgi?read=866


This article highlights the new Voyager Nonpareil compiler. This compiler has the following features:

  1. Syntax checking with support for user definable statements.
  2. Numeric expansion. Multiple digit constant numbers can use a single line of code.
  3. Duplicate label checking. Although legal, warnings are issued when duplicate labels are encountered.
  4. GTO checking. No point in going nowhere.
  5. Macro expansion. Macros can be defined on a per calculator basis.
  6. Virtual 12C labels. LBL can be use with 12C programs. All LBL and GTO statements will be properly converted to line numbers when compiled.
  7. Pretty print listings than can contain line numbers, statements, and/or keystroke sequences. Listings can be displayed using multiple columns to minimize space usage when publishing your code.
  8. An internal dictionary of statements and keystrokes that can be listed and used as a reference guide.
  9. Windows, Linux, OS/X supported.


Lastly there are some hacks to get Nonpareil to run about 200 times faster.


I did not have time to get parts 2 (42S) and 3 (41) done before the April 1st SSMC games. IANS for the 42S you need txt2raw.pl, and for the 41 HP41UC. The 41 article will have various solutions for getting code off your desktop and into your calc.

Edited: 2 Apr 2008, 1:35 a.m.


Possibly Related Threads…
Thread Author Replies Views Last Post
  Use 82240B as computer printer R. Pienne 3 2,282 12-09-2013, 12:19 PM
Last Post: Marcus von Cube, Germany
  The HP Prime saga - Part II Michael de Estrada 21 5,772 11-30-2013, 01:04 PM
Last Post: Michael de Estrada
  9014B Sony Part Number Compatibility aj04062 0 944 11-08-2013, 05:59 AM
Last Post: aj04062
  HP Prime - part selection bluesun08 7 2,326 10-29-2013, 09:31 PM
Last Post: CompSystems
  Dedicated HP calculator programming-hardware-bug website? Geoff Quickfall 12 2,726 10-12-2013, 11:34 PM
Last Post: Les Koller
  OT: Jeppesen E6B Wind-Easy Computer (Slide Rule) Eddie W. Shore 18 6,561 10-12-2013, 03:26 PM
Last Post: George Litauszky
  Voyager keyboard issue John Richards 2 1,462 09-27-2013, 07:43 PM
Last Post: John Richards
  Concern about Voyager keyboard test Matt Agajanian 2 1,417 08-30-2013, 07:56 PM
Last Post: Matt Agajanian
  HP 32s LCD part Trisnadi Sutrisno 2 1,393 08-27-2013, 02:12 PM
Last Post: Han
  Computer-scientist functions on HP Prime? Michael O. Tjebben 12 3,538 08-22-2013, 06:59 PM
Last Post: plivesey

Forum Jump: