[Preview] Z26 3DS - Atari 2600 Emulator

Discussion in '3DS - Homebrew Development and Emulators' started by nop90, Sep 21, 2015.

  1. nop90
    OP

    nop90 GBAtemp Maniac

    Member
    1,350
    2,035
    Jan 11, 2014
    Italy
    Rome
    I'm working on porting z26 to 3ds and someone asked me to test it.

    So here it is, attached you find the 3dsx version.

    This is'n a simple port from SDL to 3DS IO functions, like the other two projects I posted. I'm modifying part of the code of the original emulator to make it run faster on o3ds.

    In the version posted, after a first try using sf2dlib to draw frames (which resulted in about 1/4 of the needed fps, I changed the code to write pixels directly on the framebuffer. Now it works at about half speed on o3ds and I think I can gain some more speed using 16bpp instead of 32.

    I'm also working on the opcode interpreter to find other possible optimization.

    To test it, make a folder in the root of the SD named Atari2600 and copy some 2600 roms in it. You can also use subdirectorys to organize roms if you want.

    In the menu use Up-Down to navigate, Left-Right moves page Down-Up. A selects a menu item and B is to exit from a menu page.

    During game DPad and A emulate the Joystic 1 (no joy 2, there is an option to swap ports, but I did not tested it) X-Y select the difficulty, Select is the select key and Start is the reset Key.

    Pressing L and R pauses the game and opens the menu (no return to your game, if you exit ther menu the loaded rom is resetted).

    Warning: If you swap too many roms the emulator crashes (the original code don't let you load a new rom, so I have to check if some allocated memory isn't released)

    On N3ds the emulator should run faster, but there isn't any FPS limiter, so it could run faster than normal.

    As soon as I have a faster version I'll make an official release with menu options cleaned (some doesn't make anything).

    Here are some screenshot (not from this version).


    z26_1.png z26_2.png

    EDIT: updated sources are on my Github
     

    Attached Files:

    Last edited by nop90, Sep 22, 2015


  2. Tjessx

    Tjessx GBAtemp Maniac

    Member
    1,156
    508
    Dec 3, 2014
    Belgium
    Nice! Will try this when i get home later today
     
    Margen67 likes this.
  3. zoogie

    zoogie simple pimp tool

    Member
    6,149
    7,728
    Nov 30, 2014
    United States
    You named the folder z36 :P
     
  4. DjoeN

    DjoeN Captain Haddock!

    Member
    5,128
    1,477
    Oct 21, 2005
    Belgium
    Somewhere in this potatoland!
    Nice Atari 2600 :)
    Will have to try this out soon :)
     
  5. Selim873

    Selim873 Nunnayobeesnes

    Member
    1,164
    582
    Jul 31, 2010
    United States
    Chillin' with Bob Ross
    Yar's Revenge, here I come!!!!
     
    HaloEffect17 likes this.
  6. olshrimpeyes

    olshrimpeyes Your question is bad and you should feel bad

    Member
    454
    283
    Jul 30, 2015
    United States
    GNU/Somewhere
    Time to get my pitfall on.
     
    Selim873 likes this.
  7. zoogie

    zoogie simple pimp tool

    Member
    6,149
    7,728
    Nov 30, 2014
    United States
    Tested Haunted House and Joust on n3ds 9.2
    Ninjhax 1 - both worked fine - no sound - slow
    Ninjhax 2 - both worked fine - no sound - full speed (too fast on joust!)

    Not much of a test but its a start. Nice work.
     
    SLiV3R likes this.
  8. nop90
    OP

    nop90 GBAtemp Maniac

    Member
    1,350
    2,035
    Jan 11, 2014
    Italy
    Rome
    The name of the folder in the zip is wrong. I'll fix it when I arrive at work.

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

    Thank you. This is a preview not a release. There are a lot of things to fix/complete. And my goal is to make it work on o3ds.
     
    zoogie likes this.
  9. AtlasFontaine

    AtlasFontaine GBAtemp Maniac

    Member
    1,055
    623
    Jul 18, 2015
    Venezuela
    Venezuela-Zulia.
    Runs at good speed on O3DS, still improvable (obviously is in early stages lol)
    You're the hero that we O3DS users need, I hope you continue delivering more emulators in the future <3
     
    SLiV3R likes this.
  10. ric.

    ric. Drivin' to meme country

    Member
    792
    907
    Sep 17, 2015
    Peru
    This is great, the 2600 has a lot of gems I've been meaning to revisit - Combat, Keystone Capers, Pitfall, Adventure, etc. Not to mention all the homebrew games that are still being released to this day.

    Awesome job!
     
    SLiV3R likes this.
  11. nop90
    OP

    nop90 GBAtemp Maniac

    Member
    1,350
    2,035
    Jan 11, 2014
    Italy
    Rome
    File in the OP updated with folder name aligned to 3dsx name, so you can now copy the folder directly in the 3ds directory.

    The sources are on my github if someone is interested.

    And now a little request to old 2600 gamers
    : when I was very young I never finished E.T., and I want to do it now. Yesterday I missed the spaceship for a fraction of second (damn FBI agent). I have a question, if the agent takes a piece of the telephone, how can you recover it? I didn't found it in the pits.
     
  12. A_Random_Guy

    A_Random_Guy Officially That Dev

    Member
    862
    459
    May 22, 2015
    Malaysia
    Smea's closet
    I think you can find them in other pits. Not the same pits that you find before as they are randomly generated

    Or

    Just reset the game
     
  13. zoogie

    zoogie simple pimp tool

    Member
    6,149
    7,728
    Nov 30, 2014
    United States
    I don't know if this can help you, but here is the source to alekmaul's excellent StellaDS. Since it runs pretty good on DS, I'm sure it can run full speed on 3DS :)
    It wasn't easy to find - took me forever to track it down because all the homebrew bounty links were down.
     

    Attached Files:

  14. Naked_Snake

    Naked_Snake Constant Miscreant

    Member
    1,117
    279
    Oct 6, 2013
    Hyrule Field
    Knight on the Town here I come
     
  15. Da_GPer

    Da_GPer Advanced Member

    Newcomer
    70
    4
    Jun 28, 2008
    United States
    I noticed that the emulator crashes when you have a huge list of games to choose from.
     
  16. BurningDesire

    BurningDesire Nepu Nepu Nepu

    Member
    4,943
    5,728
    Jan 27, 2015
    United States
    Behind a screen reading news
    So we can now play E.T on the 3DS huh.
     
  17. nop90
    OP

    nop90 GBAtemp Maniac

    Member
    1,350
    2,035
    Jan 11, 2014
    Italy
    Rome
    I have roms organized in 5 folders and the one with mor files has 153.

    I'l check if there is a limit in the code (this part is from original emulator gui) so i can change the code to use dynamic allocation.

    But using too many files makes the directory very slow to be scanned, so consider to use max 100 files per folder.
     
  18. Cid2mizard

    Cid2mizard GBAtemp Fan

    Member
    361
    209
    Aug 16, 2007
    France
    Maubeuge
    Thanks, :grog:
    my first video console :)
     
  19. Jwiz33

    Jwiz33

    Banned
    2,654
    1,523
    Jun 5, 2014
    United States
    in the illuminati headquar—I have said too much!
    Thank you very, very much :D
     
  20. SLiV3R

    SLiV3R 3DS Friend Code: 0473-9069-2206

    Member
    2,163
    1,026
    Jan 9, 2006
    Very nice that you are working on this! :)