; Simple example machine language program to print all even ; letters (using repetition) ; ; Peter Christen, 4 April 2003 START a10 ; Start address of the program, initialise PC to this AT a10 ; Store the following data items (instructions) into ; memory from a10 onwards 000 001 0 001 000 010 ; a10: Load 'B' (immediate mode) 110101 0 000 000 011 ; a11: trap 3 (put) 000 111 0 001 011 010 ; a12: comp 'Z' 101001 0 000 001 110 ; a13: branch equal a16 000 011 0 000 000 010 ; a14: add #2 101000 0 000 001 001 ; a15: jump a11 110101 0 000 000 001 ; a16: trap 1 (halt)