Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI-Nspire => Topic started by: willrandship on August 11, 2010, 05:17:17 pm

Title: Port of Little John to Nspire?
Post by: willrandship on August 11, 2010, 05:17:17 pm
The Little John Emulator for Palm OS (ARM) can emulate the NES, SNES, GBC, Sega Genesis/Megadrive, Sega Master System, Sega Game Gear, Wonderswan/Wonderswan Color (no sound), NeoGeo Pocket and Neogeo pocket Color, and the atari 2600.

Features quoted from the site

http://little-john.net/index.php (http://little-john.net/index.php)

    *  Sound (except WS)
    * Multiple screen modes (zoom/smoothing)
    * Adjustable/auto frameskipping
    * SRAM support
    * Multiple Save/Load state
    * Turbo mode
    * Support for zipped roms

Source Code is available!
Title: Re: Port of Little John to Nspire?
Post by: bwang on August 11, 2010, 08:04:12 pm
Seems tricky. Little John wasn't exactly written for portability, and there's probably a lot of PalmOS specific code in there.
Title: Re: Port of Little John to Nspire?
Post by: willrandship on August 11, 2010, 08:37:19 pm
Hmm...well, here's a version ported to the GP32. NES emu only, but a NES emu on the nspire would be an awesome start.
http://yoyofr92.free.fr/ljgp32/index.html

BTW, GP32 version ran most games fullspeed, it has an ARM9 133 mhz CPU.
Title: Re: Port of Little John to Nspire?
Post by: qazz42 on August 11, 2010, 08:44:32 pm
Sound? Me thinks not, unless you manage to add TI-84+SE support...
Title: Re: Port of Little John to Nspire?
Post by: willrandship on August 11, 2010, 08:50:08 pm
Who mentioned sound? That was just on the feature list for Little-john's, so I put it there.
Title: Re: Port of Little John to Nspire?
Post by: bwang on August 11, 2010, 08:51:31 pm
Yeah, if we want to port it we are better off porting the individual emulators that make up the package. NES emulation would be nice, though.
Must...get...standard...library...
Title: Re: Port of Little John to Nspire?
Post by: qazz42 on August 11, 2010, 08:55:00 pm
I want NES emulation! I would love castlevania on my calc
Title: Re: Port of Little John to Nspire?
Post by: TIfanx1999 on August 11, 2010, 09:24:25 pm
Sound? Me thinks not, unless you manage to add TI-84+SE support...
I thought this was suggested for Nspire? I can't really imagine trying to run NES emulation on a Z80. I just think the graphics would scale down to 96 X 64 horribly. D:

As far as emulation the said systems, I'm not sure if the would all be workable on the Nspire.
NES Likely
SNES Maybe
GBC, Yes
Sega Genesis/Megadrive Maybe (more likely than Snes)
Sega Master System/ Sega Game Gear Likely (I think these two function essentially the same)
Wonderswan/Wonderswan Color (likely)
NeoGeo Pocket and Neogeo pocket Color (i don't know much about these so I can't say)
atari 2600 (likely)

I wonder how much space this emulator takes up as a whole anyway? Portability also depends on how similar the devices are of course. The nintendo DS is an ARM processor and has emulators for many of these systems too, but despite being ARM, the hardwares are very different.
Title: Re: Port of Little John to Nspire?
Post by: qazz42 on August 11, 2010, 09:27:30 pm
Sound? Me thinks not, unless you manage to add TI-84+SE support...
I thought this was suggested for Nspire? I can't really imagine trying to run NES emulation on a Z80. I just think the graphics would scale down to 96 X 64 horribly. D:


As far as emulation the said systems, I'm not sure if the would all be workable on the Nspire.
NES Likely
SNES Maybe
GBC, Yes
Sega Genesis/Megadrive Maybe (more likely than Snes)
Sega Master System/ Sega Game Gear Likely (I think these two function essentially the same)
Wonderswan/Wonderswan Color (likely)
NeoGeo Pocket and Neogeo pocket Color (i don't know much about these so I can't say)
atari 2600 (likely)

I wonder how much space this emulator takes up as a whole anyway? Portability also depends on how similar the devices are of course. The nintendo DS is an ARM processor and has emulators for many of these systems too, but despite being ARM, the hardwares are very different.



Switching to another keypad while running asm doesnt really change anything, other than different key maps (I might be wring on this)
Title: Re: Port of Little John to Nspire?
Post by: TIfanx1999 on August 11, 2010, 09:31:01 pm
Oh, you mean using the 84+ keypad on the Nspire? I misunderstood your post. :-[ Yes, that would be sweet! You'd just need to switch keycodes around i think.
Title: Re: Port of Little John to Nspire?
Post by: calc84maniac on August 11, 2010, 09:33:27 pm
We'd also need to figure out how to activate the I/O port in the first place, I think.
Title: Re: Port of Little John to Nspire?
Post by: willrandship on August 11, 2010, 09:36:50 pm
that's right. the keypads can be swapped with no worries during asm progs, but the OS has interrupts that shut down the calc when the pads are pulled out. The pads themselves 

I'd imagine it'll only be 5 or 6 mb max, being very generous with the file sizes. Heck, the little-john emu is only 1.9 MB for ALL of those systems!
Title: Re: Port of Little John to Nspire?
Post by: qazz42 on August 11, 2010, 09:49:37 pm
Oh, you mean using the 84+ keypad on the Nspire? I misunderstood your post. :-[ Yes, that would be sweet! You'd just need to switch keycodes around i think.


Haha, no worries! I should have been more specific
Title: Re: Port of Little John to Nspire?
Post by: Hot_Dog on August 11, 2010, 10:36:41 pm
NES emulation would definitely be a great start
Title: Re: Port of Little John to Nspire?
Post by: willrandship on August 11, 2010, 11:17:22 pm
Well, if it means anything, here's a Snes emu for the GP2x that takes the best of PocketSNES and SquidgeSNES, and makes them into one fast emulator.

we'll still need a standard library though. Curses!
http://reesy.gp32x.de/DrPocketSnes.html
Title: Re: Port of Little John to Nspire?
Post by: Builderboy on August 12, 2010, 12:34:14 am
NES emulation would be crazy awesome :O
Title: Re: Port of Little John to Nspire?
Post by: qazz42 on August 12, 2010, 08:46:58 am
I have some NES roms, if someone is interested...
Title: Re: Port of Little John to Nspire?
Post by: FinaleTI on August 12, 2010, 11:00:32 am
NES emulation would be crazy awesome :O
Yeah, it would. If I could play the fan translation of FF3 in class, I would so get an Nspire sooner than I'm planning to.
Title: Re: Port of Little John to Nspire?
Post by: SirCmpwn on August 12, 2010, 01:10:28 pm
*bump*
This would be crazy.  It must be done.
Title: Re: Port of Little John to Nspire?
Post by: DJ Omnimaga on August 16, 2010, 07:03:20 pm
NES and Sega Master System/Game Gear emulation would be awesome.
Title: Re: Port of Little John to Nspire?
Post by: willrandship on August 18, 2010, 07:30:13 pm
and possible, IMO. Man, though, it would be even nicer If we could get a gpu somehow. Then, star fox might even be possible!
Title: Re: Port of Little John to Nspire?
Post by: calc84maniac on August 18, 2010, 10:04:26 pm
and possible, IMO. Man, though, it would be even nicer If we could get a gpu somehow. Then, star fox might even be possible!
Star Fox is totally possible without a GPU.
Title: Re: Port of Little John to Nspire?
Post by: willrandship on August 19, 2010, 10:36:13 pm
Not necessarily.....Super FX could cause many, many headaches, and does even on systems with a decent gpu (speaking of handhelds, not pcs)
Title: Re: Port of Little John to Nspire?
Post by: calc84maniac on August 20, 2010, 08:38:40 am
Not necessarily.....Super FX could cause many, many headaches, and does even on systems with a decent gpu (speaking of handhelds, not pcs)
Oh, I didn't realize you were talking about SNES emulation. A little brain lapse there... xD
Title: Re: Port of Little John to Nspire?
Post by: qazz42 on August 20, 2010, 08:40:24 am
x.x I wonder how the screen size will be accounted for....
Title: Re: Port of Little John to Nspire?
Post by: calc84maniac on August 20, 2010, 08:45:50 am
x.x I wonder how the screen size will be accounted for....
With what system? I'm pretty sure the TI-Nspire screen has enough resolution for most of this stuff.
Title: Re: Port of Little John to Nspire?
Post by: qazz42 on August 20, 2010, 08:55:06 am
NES, I mean, compare the huge NES screen (your T.V.) to the little screen of the nspire. I assume the game screen will have to compacted.....
Title: Re: Port of Little John to Nspire?
Post by: calcdude84se on August 20, 2010, 12:41:33 pm
The Nspire screen is actually 320*240, and an analog TV screen (NTSC, anyway) is 640*480.
Compacting 4 pixels of color to one of greyscale doesn't seem like it would be too difficult. Problems would only arise if one screen's dimensions weren't an integer multiple of the other.
Title: Re: Port of Little John to Nspire?
Post by: willrandship on August 20, 2010, 01:53:23 pm
wikipedia quote:

Quote
The standard display resolution of the NES is 256 horizontal pixels by 240 vertical pixels.

Most older systems had 320x240 or less, even the SNES had most games at 320x240. Only a few games (like Secret of mana) used 640x480, and we could compress the screen for those few.

Edit: here's wikipedia's listed resolutions for the SNES, interlaced and progressive

Progressive: 256x224, 512x224, 256x239, 512x239
Interlaced: 512x448, 512x478

So, some games will not quite fill the screen, some will need to be compressed.

Edit2: Oh and BTW, while NTSC officially supports 640x480, most TVs cut it off a little short so there are no black bars, and game designers usually choose something around 512x384, or a near resolution. This overscan rule doesn't apply to lcds, however.
Title: Re: Port of Little John to Nspire?
Post by: calcdude84se on August 21, 2010, 11:05:36 am
Then it's even less of a problem than I thought :D