1
0
mirror of https://github.com/mre/mos6502.git synced 2024-11-15 13:05:33 +00:00

program 2 adc instructions

This commit is contained in:
Alex Weisberger 2014-10-01 18:42:52 -04:00
parent 3563f6362c
commit 9940517c3b

View File

@ -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