Have you a way to try that ? I will be fun to play pong on the open firmware from a graphic card
I extracted the code. To load the code:
On a Mac with a serial port:
- Type
dl command to begin download.
- Paste the contents of the .4th file.
- Press Control-D to end the download. It executes the contents which in this case just adds words to the Open Firmware dictionary.
The
dl command is nice because you can disable text pacing without it missing any characters.
A normal paste to Open Firmware using serial port requires a delay between characters because Open Firmware will often through away characters if more than 14 at a time are pasted.
dl works by accepting characters in a very tight loop and does not echo the characters back to the console which makes it faster.
On a Mac that supports loading a file in Open Firmware, you can use the
load command to load either the .4th (Forth) file or the .fc (fcode) file.
Then open the gpu (doesn't need to be a Formac GPU). e.g. For Beige G3:
" pci/@12" select-dev
Then do
pong
Keys:
player 1 up:
A down:
Z
player 2: up:
' down:
/
new game:
esc
end game:
delete
The Forth file is 18,484 characters.
The fcode file is 3,727 bytes.
For a Power Mac 7500,8500,8600, the Open Firmware graphics driver for the built-in video requires a small patch to work correctly.
