JSZeddy

Emulator and emulator development specific topics
sirmorris
Posts: 2811
Joined: Thu May 08, 2008 5:45 pm

Re: JSZeddy

Post by sirmorris »

Nice!

W7 x64/Chrome
User avatar
PokeMon
Posts: 2253
Joined: Sat Sep 17, 2011 6:48 pm

Re: JSZeddy

Post by PokeMon »

I tested it some more time now and found some (minor) problems.
Both, keyboard and mouse (clicking on the keyboard picture) work from start but when try to load a .p file from disk only the mouse functions (no more reaction from keyboard presses). The loader interface seems to have some minor problems which can be fixed more or less easy I think.

By the way the button RESET does not a complete RESET because the keyboard does work again only after a browser reload (CTRL-F5).

I could play the program slotmachines.p but the system seems to get a bit more slow.
Clipboard02.jpg
Clipboard02.jpg (53.02 KiB) Viewed 4560 times
olofsen
Posts: 177
Joined: Wed Jan 08, 2014 12:29 pm

Re: JSZeddy

Post by olofsen »

Thank you Sir Morris and Pokemon for having a look. On my machine Firefox sometimes moves to 100% core usage, while Chromium is at 85%. At 100%, it may start to run more slowly. Btw, I need to start Chromium with "--allow-file-access-from-files" for the "Choose File" option to work. At keys input, the only test is if the textarea with the hex codes has the focus (with LOAD "" this code may be loaded); the Reset sets the focus to the canvas. I've added a re-init of keyboard variables. Which other problems did you find with the loader?
User avatar
PokeMon
Posts: 2253
Joined: Sat Sep 17, 2011 6:48 pm

Re: JSZeddy

Post by PokeMon »

So looks much better now - loaded different games and focus of keyboard is no more lost and reacts good with keyboard.
Maybe games a little bit harder to play as keyboard reaction not fast enough but maybe my skills are quite bad. :mrgreen:
What about implementing the cursor area of the keyboard while remapping to WASD ?
And RUBOUT with the special key over the ENTER key would be fine (SHIFT-0).

I tried some HRG programs which partly ran but have some problems, some are not running at all.
Is it HRG proof ?
Clipboard03.jpg
Clipboard03.jpg (38.17 KiB) Viewed 4545 times
olofsen
Posts: 177
Joined: Wed Jan 08, 2014 12:29 pm

Re: JSZeddy

Post by olofsen »

It could also be that the reponse to the keys is not as good as the real thing ;) I've attached the arrow keys to WASD and Del to Rubout (Backspace has another function in Chromium); which special key did you mean? The "Choose File" has a cold and warm version, depending if the ZX has booted or not. With "Choose File" the HRG programs can be loaded to the virtual cassette. If for example "pipes' is present, Reset, loading the HRG driver and then LOAD "PIPES" works, so I think the warm version will be fixed soon!
David G
Posts: 90
Joined: Thu Jul 17, 2014 7:58 am
Location: 20 North

Re: JSZeddy

Post by David G »

Progress on IE8 -- it now shows a keyboard and buttons for start, stop, reset, etc.

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 doesn't support this property or method
Line: 145
Char: 2
Code: 0
URI: http://rullf2.xs4all.nl/jszeddy/zeddy.js


Message: Object doesn't support this action
Line: 368
Char: 1
Code: 0
URI: http://rullf2.xs4all.nl/jszeddy/jszeddy.html


Message: Object doesn't support this action
Line: 368
Char: 1
Code: 0
URI: http://rullf2.xs4all.nl/jszeddy/jszeddy.html
David G
Posts: 90
Joined: Thu Jul 17, 2014 7:58 am
Location: 20 North

Re: JSZeddy

Post by David G »

Works well on Chrome 37

I noticed:
* it loads with a black screen. The Reset button starts the ZX81
* the keyboard backspace key is not mapped to the Rubout key
* the edit line moves to the top of the screen at times, but seems to recover by itself
olofsen
Posts: 177
Joined: Wed Jan 08, 2014 12:29 pm

Re: JSZeddy

Post by olofsen »

I've added some features to JSZeddy, including support for Chroma Interface-like character code colour mapping :)

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

Start with 56k memory by pressing the "24k" button; first load Mazogs with "Choose file" and next "MazogsColour.P" from

http://www.fruitcake.plus.com/Sinclair/ ... Colour.htm
Fruitcake
Posts: 198
Joined: Wed Sep 01, 2010 10:53 pm

Re: JSZeddy

Post by Fruitcake »

olofsen wrote:I've added some features to JSZeddy, including support for Chroma Interface-like character code colour mapping :)
The emulator is looking really good and pleasantly surprised to see Chroma colour emulation included so quickly!
olofsen wrote:first load Mazogs with "Choose file" and next "MazogsColour.P"
This should be load "MazogsColour.P" first and then "Mazogs.P".
olofsen
Posts: 177
Joined: Wed Jan 08, 2014 12:29 pm

Re: JSZeddy

Post by olofsen »

Thanks! Do you have a "attributes file colour mode" demo? Then I'll implement that as well.

Normally, if JSZeddy needs a second part, it will try to load it from the virtual cassette, and it will only be there if it that part has been loaded before. But you're right, in this case the "normal" order works too!
Post Reply