Login [Register]
Don't have an account? Register now to chat, post, use our tools, and much more.
[InDev] jsTIfied, a Javascript TI-83+ Emulator
Published by KermMartian on January 24, 2012 at 3:31:54 PM CST | Discuss this article (46)

For many years, perhaps since I first designed the fledgling version of SourceCoder 2.5, I have wanted to make a Javascript graphing calculator emulator. SourceCoder has a keypad that lets you enter tokens and symbols into its editor, but imagine if you could have a real calculator emulator right on the page to test your programs! Imagine if you could do BASIC development and testing online without having to touch an offline emulator or real calculator! This was my dream, but a combination of limited technology, limited experience, and legal hurdles restricted me from following through.

No longer.

First, the legal hurdles. It is illegal to distribute ROM images, so I couldn't make an emulator with a ROM image hosted on Cemetech. I couldn't even let people upload their own ROM images, or in any way let ROM images touch the Cemetech server. HTML 5 offers a solution to this conundrum in the form of what is called DOM Storage. Cemetech gives the javascript for my z80 core to clients, and they load their (legal, I hope) ROM image from their own personal calculator into their browser, but still entirely client-side. No ROMs are distributed in any form.

Second, the technical hurdles. The canvas element of HTML4/5 is powerful and fast enough to be manipulated and display a smooth image of a calculator screen in real-time. Modern computers and modern Javascript implementations are fast enough to run the massive code required for an emulated 6MHz CPU at faster than realtime. In addition, tools such as Google's Closure Compiler exist to optimize and compress Javascript for speed and size.

In a total of about four days separated by two months, I have put together jsTIfied, pronounced "justified", a Javasdript TI-83+ emulator. It is not ready for any public testing or release, and thus is sitting happily offline and not anywhere on Cemetech, but I'm proud to announce that it is fully-functional. As you can see from the screenshots below, I can do math, run applications, and I assure you, almost everything else an emulator such as PindurTI can do. Indeed, I owe a debt of thanks to Gergely Patai (or Patai Gergely), the author of the original PindurTI, for swathes of C code that I studied for jsTIfied, and for the key layout that I used for jsTIfied. In homage to PindurTI, I made the appearance resemble that much-loved emulator. I also owe thanks to JSSpeccy, a Javascript ZX Spectrum emulator that heavily contributed to my understanding of emulating a z80 processor, and some segments of code from which found their way into jsTIfied, especially in helping me to wrap my head around emulating interrupts.

I have great plans for jsTIfied, including letting you somehow test programs from the archives, run SourceCoder projects, and much more straight from your browser. Before that can happen, there are plenty of tweaks and changes for smoothness to be made and features to be added, so for now, enjoy the screenshots below!



Permalink
News Archives Index
2003 2003 [View All]

» January (1)
» March (5)
» April (3)
» May (3)
» June (4)
» July (2)
» August (1)
» September (4)
» December (1)
2004 2004 [View All]

» January (3)
» February (4)
» March (4)
» April (3)
» May (5)
» June (9)
» July (5)
» August (2)
» September (7)
» October (5)
» November (2)
» December (3)
2005 2005 [View All]

» January (8)
» February (4)
» March (4)
» April (15)
» May (21)
» June (20)
» July (6)
» August (8)
» September (10)
» October (12)
» November (12)
» December (8)
2006 2006 [View All]

» January (7)
» February (4)
» March (5)
» April (3)
» May (4)
» June (4)
» July (13)
» August (6)
» September (7)
» October (10)
» November (6)
» December (9)
2007 2007 [View All]

» January (5)
» February (6)
» March (6)
» April (5)
» May (2)
» June (8)
» September (5)
» October (1)
» November (1)
2008 2008 [View All]

» January (2)
» March (3)
» April (2)
» May (3)
» June (3)
» July (1)
» September (1)
» November (1)
2009 2009 [View All]

» January (3)
» February (2)
» March (2)
» April (3)
» May (2)
» June (1)
» July (3)
» August (1)
» September (4)
» October (2)
» December (2)
2010 2010 [View All]

» January (6)
» February (2)
» March (1)
» April (4)
» May (6)
» June (7)
» July (6)
» August (8)
» September (6)
» October (3)
» November (4)
» December (3)
2011 2011 [View All]

» January (7)
» February (5)
» March (8)
» April (3)
» May (4)
» June (4)
» July (1)
» August (6)
» September (3)
» October (4)
» November (7)
» December (6)
2012 2012 [View All]

» January (4)
» February (5)
» March (2)
» April (4)
» May (4)
» June (3)
» July (2)
» August (3)
» September (9)
» October (6)
» November (8)
» December (3)
2013 2013 [View All]

» January (8)
» February (8)
» March (14)
» April (6)
» May (4)
» June (7)
» July (6)
» August (9)
» September (5)
» October (6)
» November (7)
» December (7)
2014 2014 [View All]

» January (3)
» February (4)
» March (10)
» April (2)
» May (4)
» June (5)
» July (4)
» August (7)
» September (7)
» October (5)
» November (4)
» December (5)
2015 2015 [View All]

» January (8)
» February (5)
» March (6)
» April (5)
» May (5)
» June (1)
» July (6)
» August (5)
» September (3)
» October (4)
» November (3)
» December (9)
2016 2016 [View All]

» January (9)
» February (10)
» March (7)
» April (4)
» May (4)
» June (4)
» July (4)
» August (8)
» September (3)
» October (2)
» November (2)
» December (5)
2017 2017 [View All]

» January (4)
» March (6)
» April (4)
» May (3)
» June (3)
» July (2)
» August (3)
» September (3)
» October (3)

Advertisement