SIMULATION #6
ALU with memory access
There is one major change for this lab. Add RAM that you will now write to and read from (STAA and LDAA direct mode)
The Opcode for the 6 required functions (8 total) are as follows
FUNCTION NAME OPCODE OUTPUT
ADDA 0x02 A + operand
SUBA 0x06 A – operand
ANDA 0x04 A AND operand
ORA 0x01 A OR operand
EORA 0x07 A XOR operand
LDAA (immediate) 0x09 load A with #
LDAA (direct) 0x0A load A with memory
STAA 0x0C store A to memory