Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
22 May, 2013, 21:26:28 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1] 2   Go Down
  Print  
Author Topic: NES EMMULLLATOR (FOR NSPIRE!)! -  (Read 1700 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
njaddison
LV4 Regular (Next: 200)
****
Offline Offline

Gender: Male
Last Login: 15 May, 2013, 02:46:53
Date Registered: 08 November, 2011, 03:56:20
Location: South Carolina(USA)
Posts: 153


Topic starter
Total Post Ratings: -5

View Profile
« on: 10 November, 2011, 07:21:04 »
0

hey guys i was thinking that we could remake some nes games for the the nspire, using lua, and then make an nes emulator in lua to play the games with. the prob is, somehow, i would have to find a way to give the emulator access to the files on the nspires ram, which i haven't learned how to do.
well, i have all of these nes games on my computer, and i can't play them because my nes emulator isn't compatible with computers without flash player. please help! javascript:void(0);
Logged


NerdTests.com says I'm a Highly Dorky Nerd God.  Click here to take the Nerd Test, get geeky images and jokes, and talk to others on the nerd forum!


DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Today at 15:15:35
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50216


Total Post Ratings: +2615

View Profile WWW
« Reply #1 on: 10 November, 2011, 07:32:48 »
0

Well there's already a NES emu for the Nspire on ticalc.org. It's called NESpire (there's also a topic here in this forum section if you use the search function). It requires Ndless, though. I don't think a NES emulator in Lua is possible, due to speed reasons.

Also I would recommend not using caps-lock titles. Tongue
« Last Edit: 10 November, 2011, 07:36:29 by DJ_O » Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
Yeong
Eternally Young Scarlet Moon
LV12 Extreme Poster (Next: 5000)
************
Offline Offline

Gender: Male
Last Login: 20 May, 2013, 01:44:48
Date Registered: 15 October, 2010, 04:29:49
Location: Arden, NC
Posts: 3694


Total Post Ratings: +260

View Profile
« Reply #2 on: 10 November, 2011, 13:55:24 »
0

hey guys i was thinking that we could remake some nes games for the the nspire, using lua, and then make an nes emulator in lua to play the games with. the prob is, somehow, i would have to find a way to give the emulator access to the files on the nspires ram, which i haven't learned how to do.
well, i have all of these nes games on my computer, and i can't play them because my nes emulator isn't compatible with computers without flash player. please help! javascript:void(0);
Also, it would be really slow if we emulate NES with Lua O.o
Logged

Project Redemption....

My project progresses:HERE
My Pastebin stuffs:HERE
Check your rate: HERE
My Animations: HERE
Spoiler for Images :D:

ノ◕ヮ◕)ノ:・゚ PENGUIN WAVE!!:„ø¤º°¨ ¨°º¤KEEP THE PENGUIN GOING ¸„ø¤º°¨ ¨°º¤øº LETS GO PENGUIN !¤¤º°¨¨°º¤øº¤ø„¸¸ø¤º°¨„ ø¤º°¨¨°º
Jim Bauwens
Lua! Nspire! Linux!
Editor
LV10 31337 u53r (Next: 2000)
*
Online Online

Gender: Male
Last Login: Today at 21:13:34
Date Registered: 28 February, 2011, 22:32:12
Location: Belgium
Posts: 1733


Total Post Ratings: +180

View Profile WWW
« Reply #3 on: 10 November, 2011, 14:09:11 »
0

Yes, NES would be definitely too slow (not that its not possible).
But there are some older atari machines that *might* be possible to be emulated in Lua, but someone will have to spend allot of time working on it.
Logged

Art_of_camelot
The matrix has you.. ಠ_ಠ
Support Staff
LV12 Extreme Poster (Next: 5000)
*
Online Online

Last Login: Today at 21:25:13
Date Registered: 30 August, 2008, 04:55:55
Location: Dr. Light's Laboratory
Posts: 4399


Total Post Ratings: +151

View Profile WWW
« Reply #4 on: 10 November, 2011, 17:25:05 »
0

Unfortunately, I highly doubt even that is possible in Lua. Apparently even emulating the Atari 2600 is fairly complicated. Lua just isn't up for heavy lifting like Emulation.
Logged

Projects:
TBA! Coming to an 83+ near you!

NerdTests.com says I'm a Cool Nerd King.  Click here to take the Nerd Test, get nerdy images and jokes, and write on the nerd forum!


Jim Bauwens
Lua! Nspire! Linux!
Editor
LV10 31337 u53r (Next: 2000)
*
Online Online

Gender: Male
Last Login: Today at 21:13:34
Date Registered: 28 February, 2011, 22:32:12
Location: Belgium
Posts: 1733


Total Post Ratings: +180

View Profile WWW
« Reply #5 on: 10 November, 2011, 17:30:49 »
0

Well, I think I would be able to create one of the first machines. I've checked some info and looked at specs, and I think its possible Smiley
Logged

Art_of_camelot
The matrix has you.. ಠ_ಠ
Support Staff
LV12 Extreme Poster (Next: 5000)
*
Online Online

Last Login: Today at 21:25:13
Date Registered: 30 August, 2008, 04:55:55
Location: Dr. Light's Laboratory
Posts: 4399


Total Post Ratings: +151

View Profile WWW
« Reply #6 on: 10 November, 2011, 17:36:34 »
0

Are there others before the 2600 series? That's the earliest I remember. I'd like to see what Atari was working on before that. It had to have been really simplistic. Do you have links? Cheesy
« Last Edit: 10 November, 2011, 17:37:12 by Art_of_camelot » Logged

Projects:
TBA! Coming to an 83+ near you!

NerdTests.com says I'm a Cool Nerd King.  Click here to take the Nerd Test, get nerdy images and jokes, and write on the nerd forum!


Goplat
LV5 Advanced (Next: 300)
*****
Offline Offline

Gender: Male
Last Login: Yesterday at 02:54:09
Date Registered: 08 December, 2009, 13:17:47
Posts: 289

Total Post Ratings: +77

View Profile
« Reply #7 on: 10 November, 2011, 19:35:00 »
0

Let's compare Lua to Javascript: People have written NES emulators in Javascript, and they are slow even on a modern PC. The TI-Nspire has a much slower processor than a PC, and Lua is even less suited for emulation than Javascript; it not only has the big problem of not having typed variables (any variable in JS or Lua can point to an object of any type, so the runtime has to do a type check on every operation), but also doesn't even seem to have bitwise operators (which are used extensively in emulators and are inefficient to build out of other operators).
Logged

Numquam te deseram; numquam te deficiam; numquam circa curram et te desolabo
Numquam te plorare faciam; numquam valedicam; numquam mendacium dicam et te vulnerabo
Yeong
Eternally Young Scarlet Moon
LV12 Extreme Poster (Next: 5000)
************
Offline Offline

Gender: Male
Last Login: 20 May, 2013, 01:44:48
Date Registered: 15 October, 2010, 04:29:49
Location: Arden, NC
Posts: 3694


Total Post Ratings: +260

View Profile
« Reply #8 on: 10 November, 2011, 19:54:50 »
0

I guess we have to wait until ndless 3 Wink
Logged

Project Redemption....

My project progresses:HERE
My Pastebin stuffs:HERE
Check your rate: HERE
My Animations: HERE
Spoiler for Images :D:

ノ◕ヮ◕)ノ:・゚ PENGUIN WAVE!!:„ø¤º°¨ ¨°º¤KEEP THE PENGUIN GOING ¸„ø¤º°¨ ¨°º¤øº LETS GO PENGUIN !¤¤º°¨¨°º¤øº¤ø„¸¸ø¤º°¨„ ø¤º°¨¨°º
Jim Bauwens
Lua! Nspire! Linux!
Editor
LV10 31337 u53r (Next: 2000)
*
Online Online

Gender: Male
Last Login: Today at 21:13:34
Date Registered: 28 February, 2011, 22:32:12
Location: Belgium
Posts: 1733


Total Post Ratings: +180

View Profile WWW
« Reply #9 on: 10 November, 2011, 20:19:06 »
0

@AOC, I'm sorry, the 2600 was the first one they released, didn't look good enough. The 6502 processor is pretty easy to emulate, but I also just realized that I can't have a good clock in Lua, the fastest I would have would be 100Hz Sad

@goplat, I know bitwise operators are issue's, but I can try to optimize them in bytecode (yes, the nspire can run bytecode).

Anyway, its hard, but I *think* that you can emulate some old devices with Lua. I know that there is a gameboy emulator written in Lua, but thats for a PC (its a mod for a game).
Logged

Hot_Dog
If you can't find a cat, look for its tail.
Support Staff
LV11 Super Veteran (Next: 3000)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 21:08:05
Date Registered: 28 December, 2009, 18:47:54
Location: Midland, Washington
Posts: 2940


Total Post Ratings: +428

View Profile
« Reply #10 on: 10 November, 2011, 20:49:48 »
0

From what I've heard, Lua isn't even good for smooth-scrolling tilemapping
Logged

There are people who can speak two languages, and they are called bilingual.  There are people who speak three languages and are therefore trilingual.  Then there are people who speak one language, and these people are called Americans.

Goplat
LV5 Advanced (Next: 300)
*****
Offline Offline

Gender: Male
Last Login: Yesterday at 02:54:09
Date Registered: 08 December, 2009, 13:17:47
Posts: 289

Total Post Ratings: +77

View Profile
« Reply #11 on: 10 November, 2011, 21:03:49 »
0

@AOC, I'm sorry, the 2600 was the first one they released, didn't look good enough. The 6502 processor is pretty easy to emulate, but I also just realized that I can't have a good clock in Lua, the fastest I would have would be 100Hz Sad
Most emulators only synchronize emulated time with real time once per frame; 60Hz suffices for that.

The real problem is that Lua just wouldn't be fast enough to run 1/60 second of emulated time in less than 1/60 second of real time.
Logged

Numquam te deseram; numquam te deficiam; numquam circa curram et te desolabo
Numquam te plorare faciam; numquam valedicam; numquam mendacium dicam et te vulnerabo
Jim Bauwens
Lua! Nspire! Linux!
Editor
LV10 31337 u53r (Next: 2000)
*
Online Online

Gender: Male
Last Login: Today at 21:13:34
Date Registered: 28 February, 2011, 22:32:12
Location: Belgium
Posts: 1733


Total Post Ratings: +180

View Profile WWW
« Reply #12 on: 11 November, 2011, 14:54:35 »
0

From what I've heard, Lua isn't even good for smooth-scrolling tilemapping
The image drawing function is a bit slow, but it is possible to create smooth-scrolling graphics. And this will also improve in future OS updates.

Most emulators only synchronize emulated time with real time once per frame; 60Hz suffices for that.

The real problem is that Lua just wouldn't be fast enough to run 1/60 second of emulated time in less than 1/60 second of real time.
Ah, didn't think about that. Well, I guess I'll look into older devices to emulate.

Thanks for the info Smiley
Logged

Art_of_camelot
The matrix has you.. ಠ_ಠ
Support Staff
LV12 Extreme Poster (Next: 5000)
*
Online Online

Last Login: Today at 21:25:13
Date Registered: 30 August, 2008, 04:55:55
Location: Dr. Light's Laboratory
Posts: 4399


Total Post Ratings: +151

View Profile WWW
« Reply #13 on: 11 November, 2011, 15:14:46 »
0

@AOC, I'm sorry, the 2600 was the first one they released, didn't look good enough. The 6502 processor is pretty easy to emulate, but I also just realized that I can't have a good clock in Lua, the fastest I would have would be 100Hz Sad

@goplat, I know bitwise operators are issue's, but I can try to optimize them in bytecode (yes, the nspire can run bytecode).

Anyway, its hard, but I *think* that you can emulate some old devices with Lua. I know that there is a gameboy emulator written in Lua, but thats for a PC (its a mod for a game).

Yea, I thought the 2600 was the first. Like I said, emulation with lua would have to be a really simplistic device.

PC lua also has access to more instructions doesn't it? Not to mention a much faster processor.

That being said, I'd love to see proof of concept emulating a really simplistic device in Nspire lua. Smiley It's always cool to see boundaries pushed.
Logged

Projects:
TBA! Coming to an 83+ near you!

NerdTests.com says I'm a Cool Nerd King.  Click here to take the Nerd Test, get nerdy images and jokes, and write on the nerd forum!


BrownyTCat
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: 08 May, 2013, 19:20:38
Date Registered: 15 May, 2009, 22:39:36
Location: {(Y+Z)*W+(X+6)+GDB1}
Posts: 420


Total Post Ratings: +19

View Profile
« Reply #14 on: 11 November, 2011, 20:20:03 »
0

I remember when I suggested this last year and then it turned out it was being done. The result was a genius program resulting in hours upon hours of fun.
Logged

Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.261 seconds with 31 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.