scene.org File Archive

File download

<root>­/­parties­/­2021­/­vintagecomputingchristmaschallenge21­/­challenge/gordon_ruby_vc3_2021.zip

File size:
27 042 bytes (26.41K)
File date:
2021-12-25 12:55:53
Download count:
all-time: 9

Preview

  • image-2021.png 13.62K
  • info.txt 871B
  • source+run-2021.png 22.44K
  • tree.b 626B

file_id.diz

Author:			Gordon Henderson
System:			Ruby 816
Language:		BCPL
Length of source:	39 Lines, 626 characters.
Length of executable:	192 bytes

How to run:

1. Design and build a retro 65c816 CPU board with 512KB of RAM.
2. Implement the Cintcode VM needed to run the vintage BPCL language
3. Write a BCPL run-time system, libraries and so on.
   ... including a simple operating system and CLI.
4. Port the standard BCPL compiler to the hardware.

.... some time later

Use the editor you wrote in BPCL to write the tree program and compile
it natively on the system.

How the code works:

The TABLE instruction works like the BASIC DATA command. It's simple a
list of the length (measured in cones) of each branch of the tree with a
zero terminator. The rest of the code is a simple "interpreter" of this
data. This allows for other tree shapes to be created, if required.