/* September 14 CS 301 CPU Emulator Program */ /* Orion Sky Lawlor, olawlor@acm.org, 2005/09/14 (public domain) */ 0x1800 /* mem[0x80]: r8=0x00 */ 0x1701 /* mem[0x81]: r7=0x01 */ 0xA878 /* mem[0x82]: r8=r7+r8 */ 0xE018 /* mem[0x83]: Print out r8 */ 0x1F82 /* mem[0x84]: Jump back to 0x82 */