EveryCircuit
Contact
Reviews
Home
lucasmcdonald3
modified 9 years ago

LC-2 --- Little Computer 2

16
2
571
09:11:24
A miniature computer! The LC-2 features a grand total of two 4-bit registers and a lean but powerful instruction set. The top register is register 0 and the bottom register is register 1. The LC-2 is programmable via 7 logic sources at the left of the screen. The first two inputs are opcodes corresponding to different operations. Here is each operation: 00: AND both registers, store result in selected register 01: Set selected register to input bits (LOAD) 10: Increment selected register by 1 11: Decrement selected register by 1 The third input bit determines which register is selected to store the value of the computation. 0 stores in R0, 1 stores in R1. The four bits below are input bits for the load instruction. If you're not using the LOAD instruction, you don't have to worry about these. The button below the logic sources is the clock. Press the button to trigger each programmed computation. Enjoy! Examples (input bits from top to bottom): 01 1 0101: LOAD 0101 (5) into R1 00 0 XXXX: AND R0 and R1, store into R0 (X's denote that the last 4 bits can be anything, they don't affect the output) 11 0 XXXX: Subtract 1 from R0 10 1 XXXX: Add 1 to R1 You can also execute a series of instructions to accomplish a task. For instance, to copy the value in R0 to R1: 01 1 1111: LOAD 1111 (F) into R1 00 1 XXXX: AND R0 with R1, store into R1
published 9 years ago
rous
7 years ago
Really cool!
Redstone_guy
2 years ago
The input that is tied to the button requires a pulldown resistor

EveryCircuit is an easy to use, highly interactive circuit simulator and schematic capture tool. Real-time circuit simulation, interactivity, and dynamic visualization make it a must have application for professionals and academia. EveryCircuit user community has collaboratively created the largest searchable library of circuit designs. EveryCircuit app runs online in popular browsers and on mobile phones and tablets, enabling you to capture design ideas and learn electronics on the go.

Copyright © 2026 by MuseMaze, Inc.     Terms of use     Privacy policy