kevinms / cpu Goto Github PK
View Code? Open in Web Editor NEWToy CPU architecture and software stack including assembler, debugger, emulator and more.
Toy CPU architecture and software stack including assembler, debugger, emulator and more.
------------------------------------------------------------------------ This project's goal is to design a custom CPU Instruction Set Assembly Language Compiled Language Verilog FPGA Implemenation Processor 24 Instructions 16 Registers Assembly Language Assembler Emulator Debugger doc/ - Technical documention describing all aspects of this project. progs/ - Programs written to run on the CPU. hdl/ - Hardware to run Arithmetic: 7 add,sub,adc,sbc,mul,div,cmp Load/Store/Move: 5 ldw,ldb,stw,stb,mov Bitwise: 6 and,or,xor,nor,lsl,lsr Jumps: 5 jmp,jz,jnz,jl,jge Other: 1 die,nop -- 24 die # # Install dependencies. # sudo apt-get install libncurses5 libncurses5-dev # # Build a ROM and binary file from assembly code. # ./assembler.py --assemble test.asm -b test.bin > test.rom # # Run the ROM in the emulator. # ./emulator -r test.rom # # Run the binary in the emulator. # ./emulator -b test.bin:0x0 # # Run the kernel in the emulator. # ./emulator -b progs/boot.bin:0x4000 -b sd.img:0x5000 -p 0x4000 -i # # Run the kernel using the debugger. # ./emulator -b progs/boot.bin:0x4000 -b sd.img:0x5000 -g progs/all.kernel.bin:0x0 -g progs/lib.bin:0x3000 -p 0x4000 -i -t 2> error.out # # Dump heap contents in human readable format. # ./heap -m emulator.memory -o 0x10000 -z $(( 0x1FF0000 )) -s
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.