making GB emulator, anyone wanna help?

Discussion in 'Computer Programming, Emulation, and Game Modding' started by Monado_III, Mar 8, 2016.

  1. Monado_III
    OP

    Monado_III GBAtemp Advanced Fan

    Member
    636
    349
    Feb 8, 2015
    Canada
    /dev/null
    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, Mar 14, 2016
    Touko White likes this.
  2. Monado_III
    OP

    Monado_III GBAtemp Advanced Fan

    Member
    636
    349
    Feb 8, 2015
    Canada
    /dev/null
    Anyone in the least bit interested?
     
  3. TotalInsanity4

    TotalInsanity4 GBAtemp Supreme Overlord

    Member
    7,094
    7,088
    Dec 1, 2014
    United States
    Under a rock
    I think that it's not a problem of interest, but a problem of required experience/knowledge
     
    Monado_III likes this.
  4. Monado_III
    OP

    Monado_III GBAtemp Advanced Fan

    Member
    636
    349
    Feb 8, 2015
    Canada
    /dev/null
    eh, whatever, might as well put it out there.
     
    TotalInsanity4 likes this.
  5. LarBob

    LarBob GBAtemp Fan

    Member
    344
    158
    Dec 29, 2013
    United States
    It would help if you put up a github repo.
     
  6. Monado_III
    OP

    Monado_III GBAtemp Advanced Fan

    Member
    636
    349
    Feb 8, 2015
    Canada
    /dev/null
    I will soon, just want to finish all the opcodes
     
  7. Monado_III
    OP

    Monado_III GBAtemp Advanced Fan

    Member
    636
    349
    Feb 8, 2015
    Canada
    /dev/null
    updated OP
    Still missing lots of stuff and really ugly atm.
     
    Last edited by Monado_III, Mar 14, 2016
  8. Monado_III
    OP

    Monado_III GBAtemp Advanced Fan

    Member
    636
    349
    Feb 8, 2015
    Canada
    /dev/null
    Got it compiling if anyone wants to take a look now, nothing runs and it seg faults everywhere but it compiles and runs!
     
    TotalInsanity4 likes this.
  9. Hasbroz

    Hasbroz Newbie

    Newcomer
    8
    0
    Mar 18, 2016
    Sounds like a pretty cool project, I'd take a look if you have a link?
     
  10. LarBob

    LarBob GBAtemp Fan

    Member
    344
    158
    Dec 29, 2013
    United States
    There's a link in the OP.
     
    Monado_III likes this.
  11. Clydefrosch

    Clydefrosch GBAtemp Psycho!

    Member
    4,115
    1,168
    Jan 2, 2009
    Gambia, The
    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.
     
  12. Monado_III
    OP

    Monado_III GBAtemp Advanced Fan

    Member
    636
    349
    Feb 8, 2015
    Canada
    /dev/null
    I would ask, but he hasn't posted since Jan 2 :/

    — Posts automatically merged - Please don't double post! —

    thanks, feel free to make a pull request, those files should compile but they won't run anything
     
  13. Monado_III
    OP

    Monado_III GBAtemp Advanced Fan

    Member
    636
    349
    Feb 8, 2015
    Canada
    /dev/null
    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 :/