A 16 bit Fantasy console inspired by the NES and Gameboy written in C++
To use this project you'll need a C/C++ compiler like GCC or Cland.
This project also uses the Imgui lib to draw the interface, you can check the project here
Please make sure you have all the dependecies listed here. If you do, just run the commands below.
git clone https://github.com/Garoze/Console
cd Console
make config && make
To use the Console
itself, just run
./console <rom_file>
The CPU has a total of 19 16-bit registers, these being:
Registers Name | Description |
---|---|
PC | Hold the address to the next instruction on memory |
SP | Indicates the address of the top of the stack |
R0 | Accumulator register |
R1...R8 | General purpose registers |
The CPU has a total of 3¹ flags these being Zero, Carry and Overflow
.
¹ The CPU has a special flag called status
to inform if the execution should be stoped.
This project in under the MIT License terms. And you can check the file here.