JSZeddy

Emulator and emulator development specific topics
olofsen
Posts: 123
Joined: Wed Jan 08, 2014 11:29 am

JSZeddy

Post by olofsen » Thu Sep 04, 2014 10:08 pm

Based on JSSpeccy, with so far only FAST mode:

http://rullf2.xs4all.nl/jszeddy/jszeddy.html

[Using a <canvas> and tested using a recent Firefox under Linux.]

David G
Posts: 44
Joined: Thu Jul 17, 2014 6:58 am

Re: JSZeddy

Post by David G » Fri Sep 05, 2014 2:26 am

Is it a ZX81 emulator that runs in JavaScript?

With Android Browser I see some register boxes flashing, and eventually a K prompt, but there does not appear any way to enter commands.
With IE 8, I see only the register boxes and a script error.

olofsen
Posts: 123
Joined: Wed Jan 08, 2014 11:29 am

Re: JSZeddy

Post by olofsen » Fri Sep 05, 2014 7:29 am

Thanks for having a look! In JavaScript indeed, so perhaps it runs too slowly under Android for the "debounce" routine, or the keys give different codes. (For Android there is a native version.) What is the error with the Explorer?

David G
Posts: 44
Joined: Thu Jul 17, 2014 6:58 am

Re: JSZeddy

Post by David G » Fri Sep 05, 2014 8:00 am

I wonder if the problem with Android Browser is that the soft keyboard by design does not appear unless focus is set to an input element.

In Internet Explorer 8 the error is:
Message: Object doesn't support this property or method
Line: 18
Char: 2
Code: 0
URI: http://rullf2.xs4all.nl/jszeddy/zeddy.js

User avatar
1024MAK
Posts: 1771
Joined: Mon Sep 26, 2011 9:56 am
Location: Looking forward to summer in Somerset, UK...

Re: JSZeddy

Post by 1024MAK » Fri Sep 05, 2014 11:55 am

Using Firefox 31.0 on Ubuntu 12.04 (on a overworked busy AMD Athlon 64 3000+ CPU where there were other applications working in the background) I find that I have to hold each key down for a while before the emulator registers it. So I find myself holding the key until I see a change on screen.

Here are two screen shots. The first one shows how far I got before it stopped responding (as I was attempting to edit the P so that I could get a " ).
Screenshot from 2014-09-05 1a.png
Screenshot from 2014-09-05 1a.png (32.34 KiB) Viewed 782 times
Screenshot from 2014-09-05 2a.png
Screenshot from 2014-09-05 2a.png (41.46 KiB) Viewed 782 times
Mark

olofsen
Posts: 123
Joined: Wed Jan 08, 2014 11:29 am

Re: JSZeddy

Post by olofsen » Fri Sep 05, 2014 6:56 pm

Included is now an NMI generator and the possibility of loading a file! It is indeed quite CPU intensive. The IE8 scripting error is moved forward to keyCodes and on Android the canvas can get the focus but I'm not sure yet how to get keyCodes.

David G
Posts: 44
Joined: Thu Jul 17, 2014 6:58 am

Re: JSZeddy

Post by David G » Sat Sep 06, 2014 10:08 pm

With IE 8 I know see a ZX keyboard!


But only briefly before

Message: Object doesn't support this property or method
Line: 12
Char: 2
Code: 0
URI: http://rullf2.xs4all.nl/jszeddy/canvas2image.js

Message: Object required
Line: 157
Char: 5
Code: 0
URI: http://rullf2.xs4all.nl/jszeddy/jszeddy.html

olofsen
Posts: 123
Joined: Wed Jan 08, 2014 11:29 am

Re: JSZeddy

Post by olofsen » Sun Sep 07, 2014 7:28 am

Yes, I played with canvas2image for the COPY command to get a .png of the screen; good to know that IE8 gives this message. But I also haven't solved the keyCodes for IE yet, in the meantime tried various hires programs under Firefox and Chromium, some WRX based ones now seem to work.

User avatar
PokeMon
Posts: 2137
Joined: Sat Sep 17, 2011 5:48 pm

Re: JSZeddy

Post by PokeMon » Tue Sep 09, 2014 7:18 pm

It works quite good under WIN7 und latest Firefox.
I did use the mouse only as keyboard while clicking on the graphics file with the keys.
I wrote a small program which did run properly and in original speed.
Congratulations ! 8-)

olofsen
Posts: 123
Joined: Wed Jan 08, 2014 11:29 am

Re: JSZeddy

Post by olofsen » Tue Sep 09, 2014 7:33 pm

Thank you Pokemon :)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest