Skip to content

danielmercier/adagbemu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AdaGBEmu

Gameboy emulator written in Ada.

SDL2

Make sure you have SDL2 >= 2.0.22 if you're using a recent version of sdlada

Building

You can build the project using alire

$ alr build

Testing CPU without Video

Uses the github project gbit for testing cpu instructions

$ alr exec -- gprbuild -P test_instrs/test.gpr

Then run the test_adagbemu binary to see if all tests passes

State

Neither the CPU nor the GPU are finished for now. Tasks for both of them do not exist yet. Some notes on the design, and things to be done:

tasks:

  • CPU task
  • GPU task
  • Main task

clock waiters:

  • one for the gpu
  • one for the cpu
  • Will_Wait sets clock to the given amount
  • Wait waits until clock is zero
  • Decrement instead of Increment (do not decrement lower than 0)

Main task:

  • SDL rendering
  • Increment each clock waiters

About

Gameboy emulator in Ada

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages