Rockbox

  • Status Closed
  • Percent Complete
    100%
  • Task Type Patches
  • Category Games
  • Assigned To No-one
  • Operating System All players
  • Severity Low
  • Priority Very Low
  • Reported Version Daily build (which?)
  • Due in Version Undecided
  • Due Date Undecided
  • Votes 1
  • Private
Attached to Project: Rockbox
Opened by theli - 2006-09-22
Last edited by kugel. - 2011-06-05

FS#6048 - Atari 2600 emulator

atari 2600 emulator
it can open .bin roms and has one public domain rom built in

should work (only display) at least on all color ipods
and in all color targets sims

Closed by  kugel.
2011-06-05 11:41
Reason for closing:  Out of Date
Additional comments about closing:   Warning: Undefined array key "typography" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 371 Warning: Undefined array key "camelcase" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 407

There doesn't seem to be interest in this anymore. Open a new task if this is wrong.

How is it running so far? What games work?

theli commented on 2006-09-28 06:09

all games work (which i tested), you can open .bin files with it
it doesn’t have any user interaction - only rendering to screen is implemented

patch is posted for anyone interested in working on it … here is one screenshot posted here:
http://forums.rockbox.org/index.php?topic=6636.0

I really hope this gets done. This would be the best thing to happen to rockbox except for maybe doom or rockboy.

I really hope this gets done. This would be the best thing to happen to rockbox except for maybe doom or rockboy.

How do I go about putting this emulator in my .rockbox folder?

fugot commented on 2007-05-03 22:21

it’s not done yet

fugot commented on 2007-05-06 15:57

has anymore worke been done on this?

I’m not normally one for advocating gaming on a DAP, but I’d admit this is something I’d love to see completed…

This no longer runs on current SVN, it seg faults as soon as it starts. At least on the emulator build, and setting debug to verbose in /2600/rbconfig.h makes the compiler complain how sterr is not defined, isn’t the part of stdio?
A SVN from jan/27/07 compiles and runs. I don’t know what date it stop working, I just choose some arbutary date from this past winter when I was poking around with this and new it worked.
Using the ipod video simulator it ran okie dokie fairly well,
I would hate to see this code go stale and end up getting forgotten.
It should be reorganized as a diff file so it can be easily worked on, and added to the emulator page of the wiki
I’m not familiar enough with the new layout of the apps/games/demos menu yet to add the viewer info.
I just ran the 2600box.rock file from the file viewer
Anyone willing to collaborate on this?

theli commented on 2007-11-15 09:02

Benjamin, noone touched this since i posted it more than a year ago ….
this doubtly will be worked on anytime soon … since i’ve lost interest when i put this here (so it can’t be worked on by someone) … and noone appeared willing to continue since then….

fugot commented on 2007-12-01 02:51

what work still needs to be done?

It would be good if it could be made into standard patch/diff form…

ben_b commented on 2008-01-21 08:23

ok heres a patch file, this is the command I used if I didn’t do it right would someone tell me the correct way its my first time using diff
“diff -Naur rockbox.orig rockbox > 2600box.patch” It compiles with a whole lot of warnings but no errors and still doesn’t run with current svn source.
but now at least its easier to work with now.

ben_b commented on 2008-01-21 08:26

one more thing you have to navigate to .rockbox/rocks and execute 2600box from there or add the correct info to the viewers config file and then open an atari2600 bin rom. and then you can see it not run at all lol

theli commented on 2008-05-30 13:48

the only change which it needs not to crash is remove “true,” from rb→splash calls

Here is a vile ugly hack to let this compile and run for ipod video at least on the sim using current svn
I need some one to try this out on a real ipod video if they would not mind

What works:

 Loading bin files still works
 Controls are hacked in for the ipod video
 Menu is up, play is down, left is left, right is right, select is fire
 To exit press left and right together something that should never happen with a real Atari joystick,  not sure if this is possible on real ipod hardware though
 It seems playable

What needs work :

 Controls for supported targets
 Currently the screen translation in 16bpp_disp.c  does not work well enough to play on for screens with less horizontal resolution than the atari2600 which is 192, like the e200 I own has only 176. What happens on the e200 target is that the right half of the screen is missing and the second scan line from the left half is shown in its place, happens on the sim and real e200 hardware

If some can see how to quickly solve this the relevant code snippet follows


put_image (void)

{

#if LCD_WIDTH < 320

  int  X_STEP = ((tv_width<<16) / LCD_WIDTH);
  int  Y_STEP = ((tv_height<<16) / LCD_HEIGHT);
  fb_data *frameb;
  int x=0,y=0;
  int srcx, srcy=0;     /* x / y coordinates in source image */
  short* image;
  image = &screenmem[0];
  frameb = rb->lcd_framebuffer;
  for(y = 0; y < LCD_HEIGHT; y++)
  {
      srcx = 0;           /* reset our x counter before each row... */
      for(x = 0; x < LCD_WIDTH; x++)
      {
  • frameb = image[srcx»16];
          srcx += X_STEP;    /* move through source image */
          frameb++;
      }
      srcy += Y_STEP;      /* move through the source image... */
      image += (srcy>>16)*tv_width;   /* and possibly to the next row. */
      srcy &= 0xffff;     /* set up the y-coordinate between 0 and 1 */
  }

#endif


I was thinking rotating the display might solve this but every time I try something it still comes out orientated like normal but uglier

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing