Page 1 of 5
JSZeddy
Posted: Thu Sep 04, 2014 11:08 pm
by olofsen
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.]
Re: JSZeddy
Posted: Fri Sep 05, 2014 3:26 am
by David G
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.
Re: JSZeddy
Posted: Fri Sep 05, 2014 8:29 am
by olofsen
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?
Re: JSZeddy
Posted: Fri Sep 05, 2014 9:00 am
by David G
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:
Re: JSZeddy
Posted: Fri Sep 05, 2014 12:55 pm
by 1024MAK
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 (32.34 KiB) Viewed 8992 times

- Screenshot from 2014-09-05 2a.png (41.46 KiB) Viewed 8992 times
Mark
Re: JSZeddy
Posted: Fri Sep 05, 2014 7:56 pm
by olofsen
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.
Re: JSZeddy
Posted: Sat Sep 06, 2014 11:08 pm
by David G
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
Re: JSZeddy
Posted: Sun Sep 07, 2014 8:28 am
by olofsen
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.
Re: JSZeddy
Posted: Tue Sep 09, 2014 8:18 pm
by PokeMon
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 !

Re: JSZeddy
Posted: Tue Sep 09, 2014 8:33 pm
by olofsen
Thank you Pokemon
