CPU Microprocessor
0 Stars     1 Views    

Author: bvg

Forked from: Bethany/CPU Microprocessor

Project access type: Public


Working CPU with eight 8-bit registers and eleven commands. Instructions in the project, command list below.


LDA r - loads value from register r into accumulatorSTA r - stores accumulator value in register rCLR r - clears register rINC r - increments the value of register r and replaces into rDEC r - decrements the value of register r and replaces into rCOM r - stores the complement of the value in register r in the accumulatorADD r - adds value in register r to the accumulatorSUB r - subtracts accumulator value from value in register r, replaces into accumulatorAND r - stores value of (accumulator AND r) in accumulatorIOR r - stores value of (accumulator OR r) in accumulator [inclusive or]XOR r - stores value of (accumulator XOR r) in accumulator [exclusive or]

*Eight 8-bit registers: r must be a value between 0 and 7 and refers to the address of the register, not its contents*

Created: Nov 19, 2021

Updated: Nov 19, 2021

Copied to Clipboard!


You must login before you can post a comment.