Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A Cpu Diagram creted in logisim with simple asembler ✍️(◔◡◔)

License

NotificationsYou must be signed in to change notification settings

Daynlight/CPU

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

This is my cpu diagram and assembler created for learning purposes.

🎈Base Information about CPU Diagram🎈

RISC Architecture
32 bit Data Line
3 bit Operation Step
4 Registers (0-4)
2 DISCKS and 1 BIOS

💎Usage💎

I. Download RepositoryFrom Release Branch.
II. Download JavaJava
III. Go toAPP Folder
IV. Runlogisim-win-2.7.1.exe
V. Open File and loadCPU.circ
VI. Load Images fromOS Folder to Bios and Disk
VII. Have Fun <3

📃Asembler Operations codes📃

CodeWhat doStructure!
mmuSet MMU locations on disk to jump there for example when you use loop.mmu (Place on Disk in Hex)Register 1 = MMU ID
Register 2 = Disk Location
!Location need by increment by one!
gtoFill Spaces betwaen MMU aplicationsgto "Place on Disck in Hex"
jmpJump to MMU location.jmpRegister 3 = Disk
Register 1 = MMU ID
!Compare need be set on true condition!
varSet Data on Register.var (Register) "Data"
priPrint text in terminal.pri "Text"
nelGo to next line.nel
prrCopy Data from one Register and paste data in another.prr (Register) (Register)
outDisplay Data from Register.out (Register)
getGet Data From Input and save in register.get (Register)
smeSave data from Register in RAM.sme (Register)RAM Location = Register 4
gmeGet Data From RAM and save in Register.gme (Register)RAM Location = Register 4
comCompare two datas.comA = Register 1
B = Register 2
OP = Register 3
Avaible Operations:
0 -> >
1 -> =
2 -> <
3 -> <=
4 -> !=
5 -> >=
6 -> True
7 -> False
aluMake ALU operations.aluOP = Register 0
A = Register 1
B = Register 2
Result = Register 3
waiWait for input.wai
dscGo to Disk from Register.dsc (Register)You need set Jump before you go to Disck
savSave data on disck.savDisck = Register 3
Data = Register 2
Location = Register 1
endEnd Programend

💻ALU Operations💻

0. A
1. not A
2. AND
3. OR
4. XOR
5. NAND
6. NOR
7. ff
8. 00
9. ADD
10. Sub
11. Mult
12. Devider
13. Random
14.
15.

🗻OP Table🗻

DESCRIPTIONOPRRMore Info
NULL0Do nothing
R -> M1RSave in RAM
R4=location
M -> R2RGet from RAM
R4=location
JMP3RR3=Disck to jmp
R1 mmu loation
Need compart 1
ALU4OP = Register 0
A = Register 1
B = Register 2
Result = Register 3
GET5Rget data to register
OUT6Rout data from register and display on tty
R -> R7R(from)R(to)copy from register to register
R -> Rom8Save data on disck
R3=Disck
R2=Data
R1=location
NULL9
WAITAWait for input
COMPAREBCompart
A = Register 1
B = Register 2
OP = Register 3
Operations:
0 - >
1 -> =
2 -> <
3 -> <=
4 -> !=
5 -> >=
6 -> True
7 -> False
MMUCR1=location
R2=content
Need by set before jmp
location +1
Change DiskDRgo to dick from register
need set location to jmp before
D - > RERDSet register
STOPFend program

🛠️Tools🛠️

About

A Cpu Diagram creted in logisim with simple asembler ✍️(◔◡◔)

Topics

Resources

License

Stars

Watchers

Forks

Languages


[8]ページ先頭

©2009-2025 Movatter.jp