Omnimaga

Calculator Community => TI Calculators => General Calculator Help => Topic started by: SirCmpwn on April 28, 2010, 08:51:34 am

Title: Writing an Emulator
Post by: SirCmpwn on April 28, 2010, 08:51:34 am
Hello,
So, not to start another project, but I've been thinking about having this one on the (very far) side.  I want to write an 83+ emulator for my Zune.  Where can I find information about all of the hardware on a TI-83+?  In detail?  Also, all of the opcodes and thier descriptions, including undocumented ones?
Title: Re: Writing an Emulator
Post by: Galandros on April 28, 2010, 09:00:04 am
First the z80 processor:
See the z80 documentation from zilog. (search it)
An instruction set, like calcmaniac84 one: http://www.ticalc.org/archives/files/fileinfo/427/42722.html
(it has all opcodes, flags and what it does)


For the TI-83+ hardware:
See in WikiTI general information about TIOS memory layout and ports:
http://wikiti.brandonw.net/index.php?title=Calculator_Documentation

I saw a post in Maxcoderz from benryves saying the minimal ram, rom and ports behaviour to boot the TI-83+ OS. Maybe in a help thread or PindurTI thread.

You can always see the Wabbitemu, PindurTI and other emulators source code.

Good luck.
Title: Re: Writing an Emulator
Post by: willrandship on April 28, 2010, 09:08:51 am
If you're good at reading source code, you might want to check out the source code of one. I don't know if your zune will be powerful enough, though, how much power does it have?
Title: Re: Writing an Emulator
Post by: DJ Omnimaga on April 28, 2010, 10:21:21 am
WabbitEmu and PTI source code is available?
Title: Re: Writing an Emulator
Post by: calc84maniac on April 28, 2010, 10:43:28 am
WabbitEmu and PTI source code is available?
I know WabbitEmu is open source, not sure about PTI though (I doubt it). Though Revsoft is currently down, so you can't get Wabbit's source that way right now.
Title: Re: Writing an Emulator
Post by: DJ Omnimaga on April 28, 2010, 10:45:45 am
Aaaah ok

I hope RS gets back up x.x
Title: Re: Writing an Emulator
Post by: Galandros on April 28, 2010, 03:16:19 pm
Tilem is another open source.

Yes, PindurTI is open source. You can find here: http://sgate.emt.bme.hu/patai/programs/pindurti/

Aaaah ok

I hope RS gets back up x.x
Madskillz is working on it. I hope it gets up too.
Title: Re: Writing an Emulator
Post by: SirCmpwn on April 28, 2010, 04:44:56 pm
I don't know if your zune will be powerful enough, though, how much power does it have?

To emulate an 8-bit, 8Mgz proccessor?  It uses a 32 bit 399Mgz ARM proccessor with 16 MB of RAM available to my emulator, along with up to 4 GB of storage for anything else I might need.  It has a 320x240 full color LCD screen and runs windows binaries that are coded under XNA.  It can handle a TI-83+.
Title: Re: Writing an Emulator
Post by: calc84maniac on April 28, 2010, 04:46:18 pm
You might want to port WabbitDS, it was written for an ARM processor and it's fairly simple.
Title: Re: Writing an Emulator
Post by: SirCmpwn on April 28, 2010, 04:52:19 pm
Well, it needs to be in .NET, because that is the only code that the Zune will accept.  I'm thinking of using Ben Ryves Stetson emulator, which I belive is in .NET.
Title: Re: Writing an Emulator
Post by: DJ Omnimaga on April 28, 2010, 05:40:57 pm
I don't know if your zune will be powerful enough, though, how much power does it have?

To emulate an 8-bit, 8Mgz proccessor?  It uses a 32 bit 399Mgz ARM proccessor with 16 MB of RAM available to my emulator, along with up to 4 GB of storage for anything else I might need.  It has a 320x240 full color LCD screen and runs windows binaries that are coded under XNA.  It can handle a TI-83+.
Oh not to nitpick on spelling too much, but I wanted to point it out in case you would post it on a place like Cemetech where they're uptight about grammar, but assuming you mean megahertz, it's MHz, not Mgz. :P (just saying as you used Mgz yesterday on IRC)
Title: Re: Writing an Emulator
Post by: SirCmpwn on April 28, 2010, 05:42:03 pm
Woops, I misspelled it this morning and have not been able to spell it right all day.  MHz, MHz, MHz, Mgz, MHz... wait, dammit!
Title: Re: Writing an Emulator
Post by: DJ Omnimaga on April 28, 2010, 05:43:31 pm
lol ok :P

just wanted to point it out :P

I also noticed several people uses nSpire, while in fact it's Nspire :P
Title: Re: Writing an Emulator
Post by: willrandship on April 28, 2010, 09:16:11 pm
I've never really been sure. Thanks for pointing it out!
Title: Re: Writing an Emulator
Post by: SirCmpwn on April 28, 2010, 09:29:32 pm
So, writing an emulator has become porting an emulator.  I got ahold of the source code for Ben Ryves Stetson, a C# based emulator for the TI-83+.  I'm porting it to my Zune as soon as I get the time.
Title: Re: Writing an Emulator
Post by: DJ Omnimaga on April 28, 2010, 10:16:21 pm
Port sounds much easier to me (minus of course the hardware differences. Remember how a 83 ASM source wouldn't work on 83+ without small modifications, for example)
Title: Re: Writing an Emulator
Post by: SirCmpwn on April 28, 2010, 10:17:12 pm
Yeah, but I looked through the code and only found about 5 incompatibilities.  Shouldn't be too hard.
Title: Re: Writing an Emulator
Post by: DJ Omnimaga on April 28, 2010, 10:28:41 pm
aah good to hear :)
Title: Re: Writing an Emulator
Post by: TIfanx1999 on April 30, 2010, 10:12:03 am
Is your's a Zune HD? That's what I have, and it' be pretty badass to run a Ti83+ emulator on my Zune.
Title: Re: Writing an Emulator
Post by: DJ Omnimaga on April 30, 2010, 04:12:28 pm
if it's HD, it might be best to still keep the calc screen big enough, else it would be kinda hard to see if not scaled up enough x.x
Title: Re: Writing an Emulator
Post by: TIfanx1999 on April 30, 2010, 08:24:09 pm
Resolution on The Zune isn't actually HD, but it can output HD to a TV.
Title: Re: Writing an Emulator
Post by: DJ Omnimaga on April 30, 2010, 08:51:20 pm
Aaaah I see ^^
Title: Re: Writing an Emulator
Post by: SirCmpwn on May 04, 2010, 06:33:06 pm
It will definately run on a Zune HD, even though I have a Zune SD.
Title: Re: Writing an Emulator
Post by: TIfanx1999 on May 09, 2010, 04:28:30 pm
I somehow missed this post, but that's good to know! ^^
Title: Re: Writing an Emulator
Post by: Stephan on May 10, 2010, 12:06:12 pm
I am thinking of porting something like WabbitEmu to iPhone/iPod touch.
Title: Re: Writing an Emulator
Post by: Goplat on May 10, 2010, 01:23:46 pm
I am thinking of porting something like WabbitEmu to iPhone/iPod touch.
Apple will just reject it. They don't allow any app that might enable its users to write and run their own programs without buying the $100/year SDK - they refused a Commodore 64 emulator until it was changed to prevent people from entering Commodore BASIC.
Title: Re: Writing an Emulator
Post by: DJ Omnimaga on May 10, 2010, 01:27:41 pm
I guess then people will just go the jailbreaking way :P
Title: Re: Writing an Emulator
Post by: Eeems on May 10, 2010, 07:26:57 pm
I am thinking of porting something like WabbitEmu to iPhone/iPod touch.
actually it's already being done :P
and yes it's only for jailbreakers