MMIX Editor
Henry Chianski, a computer science student at a prestigious university, is enrolled in a special topics course – CS649, Computer Architecture for the new Millenium. His first assignment is to write a Hello World application using the MMIX application.
Henry successfully installs the plug-in, and creates an MMIX Project, which he calls “hello”. The workbench creates the default file, “hello.mms”, and the MMOType Editor opens this blank file.
Henry, aware of the basic operation instructions, types the following lines of code in the editor:
LOC #100
Main GETA $255,String
TRAP 0,Fputs,StdOut
TRAP 0,Halt,0
String BYTE "Hello, world!",#a,0
Henry presses the compile button, which calls the mmixal instruction. The program compiles successfully, and generates the binary file “hello.mmo”. Upon successful compilation, the “hello.mmo” file is run, and the application’s console displays the anticipated “Hello, world!” message. The console also displays the total asymptotic running time of the executed program.
The hello.mms and hello.mmo files are saved in the project. Henry has completed his first assignment, and is able to turn in the required files. Henry gets an A on his project.