Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

I made an 8-bit computer in Digital Logic Sim V2

A topic by megarcher created Jan 29, 2023 Views: 4,167 Replies: 20
Viewing posts 1 to 6
(+3)

I finished this project several weeks ago, but forgot to share it with the community, so here it is! (PS if you're confused by the size of chips, I noticed that I was running out of usable space in the sim, so I made a mod for the sim to have a bigger workspace and have a way of zooming in and out.)

A few weeks ago, when DLS got updated, I went on a journey to create a computer that could do these things:

ALU operations: X + Y, X - Y, X + 1 and X - 1

Logic operations: X and Y, X or Y, X xor Y and invert X

And as control unit it should be able to switch the X and Y inputs and it should be able to zero X.

It should also have enough memory to run a small game on it. 


First I made some simple arithmic chips and combined them into the arithm chip (attachment 1), then I went ahead and made a logic chip, combined them and made the ALU. Soon after that, I made the control chip. At this point I still had to make a ROM and some memory to get the computer to run a program, so I made a 65536 bits (or 8192 bytes) memory module for the computer.

I then programmed a simple game to test on the computer. The computer will show the player a random (I haven't made a randomizer, I might do it in the future) decimal number on the seven segment displays (the one with the green wires attached) the objective of the game would be to input that number into the computer in binary. When you input a correct number, you get a point (displayed in the bottom right display), if your number is wrong, you can try again

This computer is (how I like to call it :) Nandpatible, or Nandgame compatible. Programming the rom should be the same for my computer as the Nandgame computer, although my computer only does operations in 8 bit. For the people that want my game ROM, here it is:

1000000010010000

0000000001010011

1000010010010000

0000000000000100

1001011000000101

0000000000000000

1001010101001000

1000000000000111

Now let's show you some photo's of my computer!

how did u mod it? (i am a scripter so i'd love to know) (and maybe get the mod

Hi,

It's really simple to mod the game. Just download the source code from github, install a compatible unity editor version, and open DLS in unity. Once you're there, you can make whatever changes you want, but for the one we want, zooming in and out, you'll need to make a C# script. By chaning the camera's orthographic size, you can make the camera zoom in and out. Be sure to include the camera's child, or the input system won't work well.

Good luck, let me hear how it goes!

Hello megarcher, 

I've tried to make the zoom script myself but I'm running into alot of "Input" errors. Would you be so kind to explain how you made the script (or paste the script itself)

If you're not familiar with the new unity input system, you might want to change support for the old input system in player settings. Then you can just make a script using the old input system. Don't forget to make the background bigger and change the input/output pins locations. (or the input pins will be halfway on the screen)

(1 edit)

Alright I'll try that, thanks!

tell me how you enlarged the area, i need it too

do you mind sharing the modded version?

Would you mind sharing your modded version of the game? I am trying to work on a rather large project and need the space but I just don't have the coding experience to do what you outlined.

Developer(+2)

That's very cool, thanks for sharing!

(+1)

Glad to have you responding, that was kind of a goal of my own :).

Please, i beg you, keep continuing this program, it's so cool. Would be great to have bundled cables like the CE version of your V0 has. I'm currently working on a much bigger project than the one i posted about, I'm sadly forced to do it on CE because they have a 16x16 display. It'd be much clearner if you could add bundled cables and displays though.

Hello megarcher, Would you be able to share the DLSv2 with me. I would really like to make bigger circuts but I do not know how unity works, Thanks.

Never mind I found the DLS CE

Deleted 1 year ago
(-1)

How do you actually run the DLS CE?

do you mind if you share the app you edited before? thanks

Is there a way you could share a file so everyone can enjoy using your computer ?

I'd recommend you check out my new (not anymore) version of it! https://itch.io/t/2670630/i-improved-my-8-bit-computer-watch-video-of-it-in-acti...

I don't think I'll share the files though, since the components are a mess and you need my self-made mod to open them anyways.

Can you please share your file of the modded game?

The comment above yours explains why.

I mean share the mod to expand the play area

I don't remember where but he said he didn't want to share it, but I'll look and see if I can figure out how to do it myself.