Comments (4)
Hi :-)
i was able to build the emulator following the instructions of the readme file. Just a question, the audio is available at the moment or it has to be add?
I ask you that because at the moment i have no audio output and I don't know if I am missing some dependencies or I need to put some specific option on the cli when I run the emulator. I tested it with super mario land
Thanks,
from gbemu.
I am sorry but I have no idea how this works, I am kind of a beginner at open source. If you have successfully run the code can you please tell me with an example how do I use this command on Ubuntu terminal
gbemu [--debug] [--trace] [--silent] [--exit-on-infinite-jr] [--print-serial-output] <rom_file>
I have compiled using make command but I don't know how to use the above command to run the emulator.
from gbemu.
Hi @shikhindahikar, thanks for checking out the project!
There are a lot of different ways you can start coding an emulator as there are a bunch of different subsystems that need to work together to get the game running. Personally I got started with the CPU - which in practice meant looking at the Gameboy's CPU architecture - pandocs has some information on this but there are some other great resources (like this site and this site, both of which have information about all of the opcodes that the CPU can execute). Then I moved onto other subsystems like video and memory management.
If you're new to emulators, I'd also recommend looking into the CHIP-8. It's a fantasy console which is significantly less complicated than the Gameboy and is a very popular choice as a first emulator project - it's easier to implement so it's a great way to get started and get an idea of what is involved. There are also some good tutorials on CHIP-8 emulators which might help you get started (this looks like a good one).
Regarding running gbemu once it's built, you'll need a ROM file for the game you want to play. Once you have the ROM file somewhere on your disk (let's say it's called the_rom.bin
) you can run gbemu by executing ./build/gbemu the_rom.bin
. All those other switches in the usage information allow you to customise the behaviour of the emulator - like --print-serial-output
which writes out any bytes written to the Gameboy's serial port out to the console - but they aren't necessary to just run a game.
Hope this helps!
from gbemu.
Thanks @jgilchrist I can now run the games! I will try making CHIP-8 for a start.
from gbemu.
Related Issues (12)
- Add support for building with GCC HOT 2
- No audio output HOT 3
- save data (state restore) - how does it work? HOT 4
- Changing Clock Speed HOT 1
- delete
- test with https://github.com/drhelius/demo-emulator/blob/master/test_roms/cpu_instrs/cpu_instrs.gb,something error happend? HOT 1
- Strange push/pop behavior? HOT 3
- Help output in debugger is misleading (registers should be regs) HOT 1
- AND also effecting F register HOT 2
- debugger commands listed incorrectly under help HOT 1
- Unable to build on Windows HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gbemu.