BAG's MoarNes Port

Discussion in 'Supercard' started by BassAceGold, Dec 11, 2011.

  1. BassAceGold
    OP

    BassAceGold Testicles

    Member
    495
    124
    Aug 14, 2006
    Canada
    While taking a break from studying for finals, I decided that I would try to find the easiest emulator possible to port and get running on the DSTwo. In a little under an hour I have successfully got a NES emulator running on the DSTwo (with no sound)!

    [​IMG]

    The original source code that was ported can be found here: http://forums.libsdl...227c7acbdb1614a
    This emulator is by no means finished or optimized, in fact if you click the above link to the topic, you'll see its actually a help post for a crash in the emulator (regarding SDL). This is simply a straight over port just for the fun of it and nothing else. You have been warned!

    The controls:
    NES - DS
    A - B
    B - Y
    Start - Start
    Select - Select

    Screenshots can be taken with the L button and will be saved to the root of your card.

    To play a game:
    -copy a nes rom to the root of your sd card
    -rename it "test.nes" with no quotes of course
    -run the plugin!

    Please note that I do not have current plans for future updates and improvements. Also I cannot release the ported source because it uses code from and unreleased version of my library I am working on and thus is not currently possible to compile outside of my environment. However the original source code is posted above and is easy enough to port to the DSTwo sdk that if you want to continue the development of such emulator, it wouldn't be hard to catch up to this state of development.

    Download here: http://www.mediafire...34xv1dkn6onzz3s
     
    1 person likes this.


  2. GreatCrippler

    GreatCrippler Greatness Fallen

    Member
    1,298
    171
    Mar 27, 2010
    United States
    And I thought I had weird hobbies. Very nice though. :-P
     
    1 person likes this.
  3. DinohScene

    DinohScene Capture the Dino

    Member
    GBAtemp Patron
    DinohScene is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    15,791
    12,245
    Oct 11, 2011
    Antarctica
    В небо
    Under an hour.

    Impressive.
    Very impressive!
     
  4. VatoLoco

    VatoLoco Don't crush that dwarf, hand me the pliers.

    Member
    2,266
    277
    Jan 29, 2008
    United States
    Ya Cant Get There From Here
    Nice=) Thanks Bass!
     
  5. Cid2mizard

    Cid2mizard GBAtemp Fan

    Member
    362
    210
    Aug 16, 2007
    France
    Maubeuge
  6. NorteñodelSur_27

    NorteñodelSur_27 Newbie

    Newcomer
    5
    0
    Nov 5, 2011
    Have the same issues that NesDS on DSXL? (burn screens)
     
  7. BassAceGold
    OP

    BassAceGold Testicles

    Member
    495
    124
    Aug 14, 2006
    Canada
    It shouldn't, everything is handled in software. Then again it has its own issues such as being ridiculously slow. I imagine this is probably the software timing keeping everything in sync as increasing the CPU speed doesn't improve performance at all.
     
  8. Kitanode

    Kitanode Advanced Member

    Newcomer
    55
    1
    Nov 30, 2009
    Irvine, Scotland
    If you play wit the brightness up high then you should try turning it down to '2'
    I've been using nesDS on my DSiXL since the console's release and i have never encountered any screen burn-in.
    The only reason i can think of is that i usually play with the brightness at this level, and maybe also not playing it for prolonged periods without turning it off briefly now and then.
     
  9. Ammako

    Ammako GBAtemp Guru

    Member
    6,406
    3,538
    Dec 22, 2009
    Canada
    If this ends up becoming better than what nesDS already is, then I will consider using this emulator instead.
     
  10. Luigi2012SM64DS

    Luigi2012SM64DS G-old member

    Banned
    2,060
    309
    Aug 27, 2011
    Canada
    Minecrapt
    i love you. (in a homo way)
     
    1 person likes this.
  11. Flame

    Flame Me > You

    Member
    3,866
    5,024
    Jul 15, 2008
    gotta check this out.
     
  12. jimmyemunoz

    jimmyemunoz GBAtemp Advanced Maniac

    Member
    1,958
    226
    Feb 23, 2009
    United States
    Louisiana
    **snip this too** As I am censored whenever I spread the truth regarding a gbatemp user with a high post count. Whatever you do my posts will still be read and they don't change the facts. So why don't you delete this too.
     
  13. jurassicplayer

    jurassicplayer Completionist Themer

    Member
    4,355
    505
    Mar 7, 2009
    United States
    Pantsuland
    -_-" Is anybody reading the post?
     
    1 person likes this.
  14. jimmyemunoz
    This message by jimmyemunoz has been removed from public view by a moderator, Sep 20, 2017.
    Dec 14, 2011
  15. Ammako
    This message by Ammako has been removed from public view by a moderator, Sep 20, 2017.
    Dec 14, 2011
  16. jimmyemunoz
    This message by jimmyemunoz has been removed from public view by a moderator, Sep 20, 2017.
    Dec 14, 2011
  17. SifJar
    This message by SifJar has been removed from public view by a moderator, Sep 20, 2017.
    Dec 14, 2011
  18. jimmyemunoz
    This message by jimmyemunoz has been removed from public view by a moderator, Sep 20, 2017.
    Dec 14, 2011
  19. SifJar

    SifJar Not a pirate

    Member
    6,022
    892
    Apr 4, 2009
    Oh look, I was right. It is not in the slightest immature to back up people who are correct and combat rudeness and arrogance. I think you need to look up immature in the dictionary.
     
    1 person likes this.
  20. Luigi2012SM64DS

    Luigi2012SM64DS G-old member

    Banned
    2,060
    309
    Aug 27, 2011
    Canada
    Minecrapt
    lets get back om top[ic
     
  21. miker00lz

    miker00lz Newbie

    Newcomer
    1
    1
    Feb 15, 2012
    United States
    hey, BassAceGold. i found this thread via google, and thought it was neat that you did a DS port. i wrote MoarNES. the code you ported from is ridiculously old though. there is a completely new code base now. everything has been rewritten from scratch, CPU and all. if you wanted to give it another shot you might want to have a look at the current code. the emulator is light years beyond the one you used before! :)

    http://rubbermallet....lpha-source.zip

    in addition to the source code, there's a compiled win32 binary MoarNES.exe in the "Release" folder. there's an actual GUI of sorts now with drop-down menus. you'll also notice the sound is pretty close to the real NES now i think, except i don't have the APU sweeps working. the code is also much, much cleaner and organized.
     
    1 person likes this.
  22. Another World

    Another World Emulate the Planet!

    Former Staff
    10,498
    1,672
    Jan 3, 2008
    Colombia
    From Where???
    the guy that claimed this happened later admitted that he left a game on pause for more than a day. its a bit annoying that people are still spreading this around as though everyone who uses nesDS and an XL will experience screen burn or ghosting.

    i'm sorry i quoted such an old post but it bugs me when people spread information around without the facts or without having run tests of their own. the last thing we need is a few thousand people finding this one post and assuming its a fact.

    -another world
     
    1 person likes this.
  23. BassAceGold
    OP

    BassAceGold Testicles

    Member
    495
    124
    Aug 14, 2006
    Canada
    Cool, I'll be sure to check it out when I have the time, although that doesn't mean no one else can attempt to try this in the mean time. :)
     
  24. BassAceGold
    OP

    BassAceGold Testicles

    Member
    495
    124
    Aug 14, 2006
    Canada
    Alright, just reporting back that I have successfully ported over miker00lz newer version in which he posted here. This port is pretty much same performance wise to the original port, maybe a little better overall. I have removed all dependencies of libBAG and have uploaded the ported code to github here. Everything should compile with the standard Supercard SDK, so if anyone wants to take a stab at optimizing it, it's all good to go now.
     
    1 person likes this.
  25. Janthran

    Janthran Solarian

    Member
    3,777
    1,044
    Sep 17, 2011
    United States
    The Pacific Northwet
    Needs multiplayer like NESDS. Meh.
    I mean, I know it could go a long way, but NESDS is already great.