-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,18 @@ | ||
# EmuCPU | ||
# EmuCPU | ||
|
||
![EmuCPU](https://raw.githubusercontent.com/EmuKit/EmuCPU/master/.github/imgs/diagram.png) | ||
|
||
## What is EmuCPU? | ||
EmuCPU is an emulator for a CPU I designed. | ||
|
||
* It's 16 bit | ||
* It has 2 registers (A and B) and a Program Counter | ||
* Its ISA has 6 instructions | ||
* Program it's stored in a Memory, which size is defined at compile time. | ||
|
||
## What is the ISA? | ||
The ISA is the instruction set of the CPU. It has 6 instructions, MOV, ADD, SUB, MUL, DIV and INC. | ||
Math it's done with using boolean logic, not C math operators. | ||
|
||
## How do I use it? | ||
There's not a method to load a program from a file, so you have to write it in the code. In main.c there's an array called 'prog' which contains the program. You can write something in an ASM-like language. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters