CS 208: Computer Organization and Architecture

Clearing the PDP-8/E's memory

Write a PDP-8 program that clears as much memory as possible, using no more than 100 (base ten) lines of code. If your program clears all memory, including the program itself, you will earn an A+ (13 out of 12 points). Clearing all but one location is worth 12/12, all but two is worth 11/12, etc. Note, by the way, that if you clear all memory, your program will not halt by itself. (What will it do?)