making GB emulator, anyone wanna help?

Monado_III

Well-Known Member
OP
Member
Joined
Feb 8, 2015
Messages
722
Trophies
0
Location
/dev/null
XP
1,443
Country
Canada
So I've started making a gb emulator (mostly for the practice) in C, I've got most of the internals emulated (hopefully properly) and I'm currently working on writing out all the opcodes, however I have no idea how to do the actual gfx/gui (like print them to the screen, not emulate them), the sound and maybe controls (I don't know if what I have currently will work). I could probably do some crappy SDL graphics hack and not do sound but I figured if someone wanted to help I'd ask.

I'll likely have the source up on github by then end of the week if anyone wants to take a look at it.
edit: http://bit.ly/1Rg6Oaf
 
Last edited by Monado_III,
  • Like
Reactions: Touko White

Clydefrosch

Well-Known Member
Member
Joined
Jan 2, 2009
Messages
6,026
Trophies
2
XP
4,648
Country
Germany
well, drenn, the guy who made gameyob may or may not be able to give you a few pointers, he too coded a gb(c) emulator from scratch in recent years. though his was for ds/3ds.
 

Monado_III

Well-Known Member
OP
Member
Joined
Feb 8, 2015
Messages
722
Trophies
0
Location
/dev/null
XP
1,443
Country
Canada
well, drenn, the guy who made gameyob may or may not be able to give you a few pointers, he too coded a gb(c) emulator from scratch in recent years. though his was for ds/3ds.
I would ask, but he hasn't posted since Jan 2 :/

--------------------- MERGED ---------------------------

Sounds like a pretty cool project, I'd take a look if you have a link?
thanks, feel free to make a pull request, those files should compile but they won't run anything
 

Monado_III

Well-Known Member
OP
Member
Joined
Feb 8, 2015
Messages
722
Trophies
0
Location
/dev/null
XP
1,443
Country
Canada
Well, I fixed some issues, but now
Code:
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
and
Code:
while(SDL_PollEvent(&event))
are causing segmentation faults :/
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Sicklyboy @ Sicklyboy:
    @BigOnYa, I'll rip a bag off my Volcano to that, brother
    +2
  • a_username_that_is_cool @ a_username_that_is_cool:
    DDDS . Dual Developer Dedede System :)
    +1
  • BakerMan @ BakerMan:
    also happy birthday @Xdqwerty
    +1
  • BigOnYa @ BigOnYa:
    Is it me you're looking for?
  • MysticStarlight @ MysticStarlight:
    'Cause I wonder where you are
  • MysticStarlight @ MysticStarlight:
    wait I got the lyrics mixed up
    +1
  • BigOnYa @ BigOnYa:
    And I wonder what you do...Lol
  • BigOnYa @ BigOnYa:
    Its all good, I'm here to talk to you.
  • BigOnYa @ BigOnYa:
    Hello
  • BigOnYa @ BigOnYa:
    I've been playing fallout4 all day, I went into a elevator and it kept going, never stopped, waited 5 minutes, must of been a bug. How bout you, whatcha do today?
    +1
  • MysticStarlight @ MysticStarlight:
    I'm wondering why a stray tuxedo cat has a cloudy eye
  • MysticStarlight @ MysticStarlight:
    I've been playing TOTK all day also
    +1
  • MysticStarlight @ MysticStarlight:
    Oh you reminded me of those elevator nightmares
  • BigOnYa @ BigOnYa:
    Awesome game, fun how they force you to build, but you can build as you want
  • MysticStarlight @ MysticStarlight:
    It is super fun, I actually prefer it over BoTW
    +1
  • BigOnYa @ BigOnYa:
    The guy holding the sign always cracked me up, esp when you fail, and it falls
  • MysticStarlight @ MysticStarlight:
    Ah yes, that guy lol. I still need to find all his signs. The game has a lot to do though so I don't know what to finish first
  • MysticStarlight @ MysticStarlight:
    I'm 120 hours in and am still like 44.4% done
    +1
  • BigOnYa @ BigOnYa:
    Good times. Building is starting to get good around now for you. You making me want to make run thru again.
  • BigOnYa @ BigOnYa:
    Ok good chatting, enjoy your gaming, and avoid the lightning, or put your sword away. Good night.
  • K3Nv2 @ K3Nv2:
    All I gotta do is not spend $10 in the next 5 days and I'll break even this month lol
  • K3Nv2 @ K3Nv2:
    @BigOnYa, tell your wife not to forget her wallet
    K3Nv2 @ K3Nv2: @BigOnYa, tell your wife not to forget her wallet