CPU Microprocessor
29 Stars     6842 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 accumulator
STA r - stores accumulator value in register r
CLR r - clears register r
INC r - increments the value of register r and replaces into r
DEC r - decrements the value of register r and replaces into r
COM r - stores the complement of the value in register r in the accumulator
ADD r - adds value in register r to the accumulator
SUB r - subtracts accumulator value from value in register r, replaces into accumulator
AND r - stores value of (accumulator AND r) in accumulator
IOR 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: Aug 26, 2023


Comments

You must login before you can post a comment.

WHY DOESNT IT WORK FOR SOME REASON
Posted on Apr 22 2021 at 08:40PM UTC.
+6
Comment deleted by Randyruby DEV TEAM.
Posted on Aug 27 2022 at 10:17PM UTC. Last modified by Randyruby DEV TEAM on Aug 27 2022 at 10:18PM UTC.
idk
Posted on Aug 27 2022 at 10:18PM UTC.
+0
they forgot to use the stop / go input wire which makes it useless
Posted on Nov 10 2022 at 01:25PM UTC. Last modified by Kuro.Mp3 on Nov 10 2022 at 01:26PM UTC.
+0