This would read port address 01 and display its current bit values. If the hardware is unavailable, you might temporarily re-define PORT as a variable you can read and write, and so test the rest of the logic. As you work, you can use any additional programmer aids provided by SwiftX. You can easily change your code and re-load it. But your main ally is the intrinsically interactive nature of Forth itself . Annotated sample source code Parentheses and backslashes denote comments.
Listings begin with primitive functions.
A colon begins a new definition. The RAM figure includes stack space and system variables. Back to the SwiftX overview Updated August 2001.