headerImage

Contents

This page contains a number of sample scripts that you can use to get started with pbForth programming.

pbForth RCX Extension Scripts
These scripts go over some of the unique features of the RCX.
HowTo Use DCC With pbForth
A brief tutorial on using the DCC enabled pbForth to control your modified train motors.
HowTo Read and Write IR Data Using pbForth
Shows you how to read and write arbitrary binary data on the IR port of the RCX using pbForth. Examples include reading messages from the LEGO Remote Control and writing IR packets that look like they were sent by the Remote Control.
HowTo Play Music on the RCX
Shows you how to make two different music players. One hogs all of the CPU cyles as a foreground task, the other lets you play music in the background. Example code shows how the 1 msec tick ISR in the RCX can be used in pbForth.
HowTo Make an RCX Monitor
This three part article goes into detail and describes how to make a simple keyboard monitor for the RCX that runs in the background.
HowTo Save an Image of Your System
A brief article on saving an image of your pbForth system in S-Record format using the XMODEM protocol.
HowTo Use the pbForth Assembler
A brief tutorial on using the H8/300 assembler that comes with the pbForth distribution.