Scrap Mechanic

Scrap Mechanic

Not enough ratings
SMC3
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
500.944 KB
22 Apr, 2021 @ 3:47pm
14 Aug, 2022 @ 2:30pm
8 Change Notes ( view )

Subscribe to download
SMC3

Description
CodeMaker_4: Created the design/instruction set/whole idea of the SMC3
HuntaBadday: Built the CPU
Radiant: SMC3 emulator creator

Command list and usage+registers:
https://docs.google.com/spreadsheets/d/1GniPOFf0OO-XGHuqhgA-y6ozCBTELOkIwj9bok8XLMo/edit?usp=sharing
LOGNET AND EXPANSION NOT IMPLEMENTED YET

Usage:

I/O Ports Gate Colors:
All blue gates are the I/O ports
All yellow is address
Red is write
Green is read
Cyan is data request (To let the device know that the CPU wants to use it)
White: request in (When the device is ready the device should turn this on)
Least significant bit is always the lighter version of the color used

I/O Port Color:
Blue port: External memory (where the program is or other I/O devices)
Cyan port: Internal memory (data / I/O Device without interfering with the program memory) (NOTE: The purple in this section is to tell the CPU how much internal memory there is)
Green: stack (Where you can temporarily store value or where the return address is when a jump to subroutine is called).

Front panel:
User I/O (On the left): Where the switches are (least significant bit is on the right) Data request is when the orange light is on, button beside the switches is to tell the CPU that you have inputted the data.

Start/Stop/Clock (Middle): Cyan on the top is instruction stage (Left is executing, right is fetching), red button is reset (I suggest to press this two times), green is to start/stop, white button is manual clock step, white switch is automatic clock (if you want to have a custom clock input then you can input it into the white gate).

Other stuff (Right): Cyan is current instruction, yellow is the address of the program counter.
3 Comments
Rango 6 Oct, 2022 @ 10:57am 
Ohh i see, you have all sorts of modules for this CPU, thanks!
HuntaBadday  [author] 5 Oct, 2022 @ 12:59pm 
Yes! Check my account and look for "Simple 16-Byte RAM", "16-Byte RAM" and "16-Byte ROM"
Rango 5 Oct, 2022 @ 12:04pm 
You got some suitable RAM for this?