Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Digital Logic Sim

​A minimalistic digital logic simulator · By Sebastian Lague

SAP-1

A topic by Bendy509 created 61 days ago Views: 465 Replies: 9
Viewing posts 1 to 4

 

INST

Bin

Function

NOP

0000

No operation

LDA

0001

Load accumulator from memory

ADD

0010

Add memory to accumulator

SUB

0011

Subtract memory from accumulator

STA

0100

Store accumulator to memory

LDX

0101

Load external register

JMP

0110

Jump to specified address

JC

0111

Jump if Carry is set

JZ

1000

Jump if accumulator is zero

JNC

1001

Jump if Carry is not set

JNZ

1010

Jump if accumulator is not zero

SHL

1011

Shift accumulator left

SHR

1100

Shift accumulator right

AND

1101

Bitwise AND with memory

OUT

1110

Output accumulator contents

HLT

1111

Halt execution

 

 

nice

can i have the project files please

(6 edits)

S= START/STOP
X=ONE STEP
C= CLEAR

The visualization is in HEX code. The steps per clock stick must be at least 7.
It has a multiplication (it also runs division) program on it (Multiplicand=0x000, Multiplier=0x002).
It's better when using HEX format to edit the ROM.
EX: LDX 5= 505 (Three digits. The 1st one is the instruction, and the rest is the data.



https://drive.google.com/file/d/1gX9fHKHZM2ACvy0F13JdNZ6kAkDKj9bM/view?usp=shari...

thanks

i dont have access

i dont have access

Try it now

thanks