JSZeddy

Emulator and emulator development specific topics
olofsen
Posts: 177
Joined: Wed Jan 08, 2014 12:29 pm

JSZeddy

Post 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.]
David G
Posts: 90
Joined: Thu Jul 17, 2014 7:58 am
Location: 20 North

Re: JSZeddy

Post 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.
olofsen
Posts: 177
Joined: Wed Jan 08, 2014 12:29 pm

Re: JSZeddy

Post 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?
David G
Posts: 90
Joined: Thu Jul 17, 2014 7:58 am
Location: 20 North

Re: JSZeddy

Post 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:
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: 3469
Joined: Mon Sep 26, 2011 10:56 am
Location: Looking forward to summer in Somerset, UK...

Re: JSZeddy

Post 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
Screenshot from 2014-09-05 1a.png (32.34 KiB) Viewed 4511 times
Screenshot from 2014-09-05 2a.png
Screenshot from 2014-09-05 2a.png (41.46 KiB) Viewed 4511 times
Mark
olofsen
Posts: 177
Joined: Wed Jan 08, 2014 12:29 pm

Re: JSZeddy

Post 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.
David G
Posts: 90
Joined: Thu Jul 17, 2014 7:58 am
Location: 20 North

Re: JSZeddy

Post 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
olofsen
Posts: 177
Joined: Wed Jan 08, 2014 12:29 pm

Re: JSZeddy

Post 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.
User avatar
PokeMon
Posts: 2253
Joined: Sat Sep 17, 2011 6:48 pm

Re: JSZeddy

Post 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 ! 8-)
olofsen
Posts: 177
Joined: Wed Jan 08, 2014 12:29 pm

Re: JSZeddy

Post by olofsen »

Thank you Pokemon :)
Post Reply