https://github.com/c272/eslr
A C# CPU emulation package for the Sharp LR35902, used in the original GameBoy.
https://github.com/c272/eslr
c-sharp cpu-emulator
Last synced: about 1 year ago
JSON representation
A C# CPU emulation package for the Sharp LR35902, used in the original GameBoy.
- Host: GitHub
- URL: https://github.com/c272/eslr
- Owner: c272
- Created: 2018-12-20T17:56:44.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-14T11:05:21.000Z (over 7 years ago)
- Last Synced: 2025-01-23T06:45:12.732Z (over 1 year ago)
- Topics: c-sharp, cpu-emulator
- Language: C#
- Size: 31.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# eSLR
*A C# CPU emulation package for the Sharp LR35902, used in the original GameBoy.*
## Introduction
Welcome! This repository is the home for eSLR, a C# SLR35902 emulator, a CPU extremely similar in opcode setup and architecture to the Zilog Z80. Due to this, the emulator can also be used to emulate a basic Z80 by putting it in "Zilog Mode", however this is currently experimental and untested, and not recommended. For another more stable Zilog emulator, try [z80nuget](https://github.com/sklivvz/z80).
## Usage
To use the CPU class library, set up your code like so:
...
public void Main() {
var myCPU = new eSLR();
myCPU.state = State.ProcessorStates.NORMAL;
//Hook up your memory controller here.
myCPU.SaveByte = mySaveByteFunction;
...
//Set the PC to somewhere in memory and go!
myCPU.reg.PC = 0x0FF;
myCPU.exec();
}