Jump to content
IGNORED

Js99'er


Asmusr

Recommended Posts

I needed a project for learning advanced JavaScript for my work, so here is my proof of concept for a TI-99/4A emulator written in pure JavaScript:

 

http://js99er.net

 

You can run it from the web link or download and expand the zip to your local machine and open the index.html file. All that's required is an up-to-date browser (Google, Firefox, IE 10+).

 

Currently only the CPU, VDP, PSG, RAM and a bit of the keyboard is emulated. There 's no system ROM, GROM, DSRs, disks, i.e. none of the console's 'operating system' (the opening screen is just a VDP dump). So the programs are limited to machine code that doesn't require any console routines. Luckily I had a few of those available ;-)

 

If you want to attempt to load other programs than the bundled examples, take at the software folder and software.js to see how it works, but beware that it will probably not work. The programs are currently provided as JavaScript arrays. I have attached a small Java program (bin2js.jar) to turn binary files into JavaScript arrays.

 

I have put this together in few weeks. This would not be possible without taking advantage other peoples' work. I'm in eternal debt to Tursi, from whom I have borrowed much of the CPU emulation (plus a little from MESS), the sound emulation is using components from TSS Chiptune Sound Library and JavaGear, and the VDP emulation was based on MSX.js but has been substantively rewritten.

 

If anyone is interested in contributing to js99'er I'm thinking about turning it into a GitHub open source project.

 

[EDIT] Joystick 1 is mapped to arrow keys + Tab like in Classic99.

 

Enjoy!

 

-----------------------------------------------------------------------------------------------------------------------------------------

 

Note: This is now a fully working emulator capable of running most programs. Low levels disk access is only partially supported, and speech support is a hack. Apart from that it works, and it's the only emulator that supports most of the functionality of the F18A.

rpk2json.zip

js99er-2.5.zip

  • Like 10
Link to comment
Share on other sites

I needed a project for learning advanced JavaScript for my work, so here is my proof of concept for a TI-99/4A emulator written in pure JavaScript:

 

https://googledrive.com/host/0B68J8LwEkfDyTUdTQWlVN0VPaEU/index.html

 

You can run it from the web link or download and expand the zip to your local machine and open the index.html file.

 

Totally AWESOME!

borat-thumbs-up.jpg

  • Like 3
Link to comment
Share on other sites

Rasmus also number 1 exporter of potassium in Denmark, all other potassium inferior to Rasmus.

 

Yeah, I'm glad I didn't start a HTML5 Canvas shit thread when I looked into it a month ago. I was leaning more toward an XB emulator, with restrictions much like Harry's compiler (no file access etc.), but of course with floating point, and perhaps speech. You'd call the webpage, paste, write or edit the XB program and see it run wild (I would expect extremely fast ?).

 

:)

Edited by sometimes99er
Link to comment
Share on other sites

BTW, could someone try it on a tablet or a phone? I only have a 4 year old Nokia :-).

 

Gonna give it a try on my HP TouchPad later.

 

Looks as if it runs fine on our iPads and Android tablets, sometimes with slower frame rates ...

 

Cool... if it does not work in a native TouchPad browser, then it might work in the ACL Android environment on the same.

Link to comment
Share on other sites

Mee too, I only see a black canvas, start button can be pressed without effect, stop button cannot be pressed, and the load dropdown is empty. My web developer console inside Firefox 28.0 (openSUSE 13.1) says:

 

* Use of getUserData() or setUserData() is deprecated. Use WeakMap or element.dataset instead. (requestNotifier.js:64)

* The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol. (index.html)

* ReferenceError: webkitAudioContext is not defined (AudioLooper.js:27)

 

At the same time, the console where I started Firefox says:

 

JavaScript error: https://googledrive.com/host/0B68J8LwEkfDyTUdTQWlVN0VPaEU/tss/AudioLooper.js

, line 27: webkitAudioContext is not defined

 

JavaScript error: http://atariage.com/forums/public/js/3rd_party/ckeditor /ckeditor.js?nck=fb99e14e49767998a66e3b7a9956074d

, line 145: u.data.html is undefined

 

JavaScript error: http://atariage.com/forums/public/js/3rd_party/ckeditor/ckeditor.js?nck=fb99e14e49767998a66e3b7a9956074d

, line 145: u.data.html is undefined

 

 

GRRRR ... HOW CAN I TELL THIS !"§$/$% EDITOR TO STOP CREATING HYPERLINKS!

Edited by mizapf
  • Like 1
Link to comment
Share on other sites

Have you tried running the app locally?

That was the second thing I did when I couldn't get the website to work.

 

Mee too, I only see a black canvas, start button can be pressed without effect, stop button cannot be pressed, and the load dropdown is empty. My web developer console inside Firefox 28.0 (openSUSE 13.1) says:

 

* Use of getUserData() or setUserData() is deprecated. Use WeakMap or element.dataset instead. (requestNotifier.js:64)

* The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol. (index.html)

* ReferenceError: webkitAudioContext is not defined (AudioLooper.js:27)

 

At the same time, the console where I started Firefox says:

 

JavaScript error: https://googledrive.com/host/0B68J8LwEkfDyTUdTQWlVN0VPaEU/tss/AudioLooper.js

, line 27: webkitAudioContext is not defined

 

JavaScript error: http://atariage.com/forums/public/js/3rd_party/ckeditor /ckeditor.js?nck=fb99e14e49767998a66e3b7a9956074d

, line 145: u.data.html is undefined

 

JavaScript error: http://atariage.com/forums/public/js/3rd_party/ckeditor/ckeditor.js?nck=fb99e14e49767998a66e3b7a9956074d

, line 145: u.data.html is undefined

 

 

GRRRR ... HOW CAN I TELL THIS !"§$/$% EDITOR TO STOP CREATING HYPERLINKS!

Just click the hyperlink off when you go to edit the post (see the third weblink). Well that doesn't work - I would just misspell the link, like using google-com instead of google.com.

Edited by RobertLM78
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...