Macrosoft allows the programmer to achieve machine language speed with a familiar BASIC-like syntax. Technically, Macrosoft is a macro library for the Mindcraft Assembler.
First, follow the directions included with Macrosoft to create a working disk with The Assembler and Macrosoft. Next, just like last week’s tutorial, slide the disk into your drive and run the BOOT.SYSTEM program. Press “E” to enter the editor. Press “enter” once to get a “!” insert mode prompt. Type in the following program. Case does matter, so watch the capitalization. Also, make sure to begin each line with a space; otherwise, the assembler will interpret your entry as a label. Notice that, except for a few extra “boilerplate” lines, the program appears similar to BASIC.
USE MACROSOFT.3.1
UEN
MUL
BEGIN $2000
PRINT "Hello world."
CLEANUP
END
Press the “Escape” key and enter “Hello” for the “Save Pathname.” Press “A” to assemble to program. If you get errors, return to the editor and correct them.
Finally, press “!” to exit back to BASIC. Change to the directory containing the HELLO program and type “BRUN HELLO”.
Conway’s Game of Life is mathematical exploration into artificial life. The game consists of a grid of cells, and each cell is either alive or dead. A simple set of rules relate the cells alive or dead in the current generation to the previous generation. The interesting thing about the Game of Life is that a simple set of rules creates surprisingly complex patterns and behaviors. Wikipedia gives more details, including examples, a more formal definition of the game, and history.
I have implemented the game of life for the Apple II computer using the low-resolution (40×40) video mode and the Macrosoft macro language. Macrosoft is a library of assembler macros that produce assembly language code. I chose this language because I wanted to learn this unique language for years and to improve performance of the implementation.