CPU Microprocessor
15 Stars     2830 Views    

Author: Bethany

Project access type: Public

Description:

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

Commands:

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: Aug 26, 2020

Updated: Apr 19, 2021

Copied to Clipboard!

Comments

WHY DOESNT IT WORK FOR SOME REASON

Posted on Apr 22 2021 at 08:40PM UTC.
+3

You must login before you can post a comment.