From 9940517c3b89c0aed0d444786d3c0e8d9dddd677 Mon Sep 17 00:00:00 2001 From: Alex Weisberger Date: Wed, 1 Oct 2014 18:42:52 -0400 Subject: [PATCH] program 2 adc instructions --- src/bin/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/main.rs b/src/bin/main.rs index b4c9d88..00dc4f7 100644 --- a/src/bin/main.rs +++ b/src/bin/main.rs @@ -36,7 +36,8 @@ fn main() { // "Load" a program machine.memory.set_byte(&Address(0), 0x69); // ADC immediate opcode machine.memory.set_byte(&Address(1), 0x07); // Immediate operand - + machine.memory.set_byte(&Address(2), 0x69); // ADC immediate opcode + machine.memory.set_byte(&Address(3), 0x08); // ADC immediate opcode // Obviously this will run the full program, just // executing a finite num of instructions for simplicity