jsbeeb - a Javascript emulator

want to talk about MESS/model b/beebem/b-em/electrem/elkulator? do it here!
User avatar
Matt Godbolt
Posts: 163
Joined: Mon Jul 31, 2006 10:02 am
Location: Chicago
Contact:

Re: jsbeeb - a Javascript emulator

Postby Matt Godbolt » Tue Jul 21, 2015 9:51 pm

Could be; though I'd expect more to be broken if that were the case. I'm fairly certain jsbeeb's CPU emulation is correct after all the tortures I've put it through, at least!

More likely the information being passed to the ACIA from the tape emulation layer isn't quite right on one or other side. There's a lot of funky stuff going on there. There's also a lot of extra cool stuff (frequency stuff, stop bit encoding) that happens in the UEF format that doesn't matter in the "Tapefile" format (that I implemented first).

I'll definitely have a poke (though any bystanders' thoughts are very much welcomed!)

User avatar
tricky
Posts: 1918
Joined: Tue Jun 21, 2011 8:25 am
Contact:

Re: jsbeeb - a Javascript emulator

Postby tricky » Wed Sep 21, 2016 8:04 pm

Sorry Matt, having GitHub login issues.
I just tried jsbeeb on Chrome Canary and it is very slow, probably something I haven't ticked or just that it is beta, but I thought I would mention it.

User avatar
Matt Godbolt
Posts: 163
Joined: Mon Jul 31, 2006 10:02 am
Location: Chicago
Contact:

Re: jsbeeb - a Javascript emulator

Postby Matt Godbolt » Wed Sep 21, 2016 8:07 pm

Interesting...is there anything in the Javascript console? (hit ctrl-HOME to stop jsbeeb, then ctrl-shift J)

User avatar
tricky
Posts: 1918
Joined: Tue Jun 21, 2011 8:25 am
Contact:

Re: jsbeeb - a Javascript emulator

Postby tricky » Wed Sep 21, 2016 10:26 pm

Looks OK (to me ;) ).
It probably just defaults some js optimisation off, but I thought it was worth mentioning.
Attachments
Canary.png

User avatar
Matt Godbolt
Posts: 163
Joined: Mon Jul 31, 2006 10:02 am
Location: Chicago
Contact:

Re: jsbeeb - a Javascript emulator

Postby Matt Godbolt » Wed Sep 21, 2016 11:24 pm

Thanks! Looks like all the things I'd expect to initialise have done so OK: and there's no errors. I'll take a look!

dp11
Posts: 708
Joined: Sun Aug 12, 2012 8:47 pm

Re: jsbeeb - a Javascript emulator

Postby dp11 » Thu Sep 22, 2016 5:24 am

I'm doing a bit of development and I keep on updating my ssd . It there a away to force jsbeeb to always reread the ssd instead of using the cached version?

User avatar
Matt Godbolt
Posts: 163
Joined: Mon Jul 31, 2006 10:02 am
Location: Chicago
Contact:

Re: jsbeeb - a Javascript emulator

Postby Matt Godbolt » Thu Sep 22, 2016 11:29 am

Hmm that's odd; how are you loading the ssd? Caching is app done in the browser not in jsbeeb itself; but there will be away to do this:)

dp11
Posts: 708
Joined: Sun Aug 12, 2012 8:47 pm

Re: jsbeeb - a Javascript emulator

Postby dp11 » Thu Sep 22, 2016 2:04 pm

Just using the Disc menu. It appears I need to change to another ssd then back again to make it reload the ssd that is changed externally.

User avatar
Matt Godbolt
Posts: 163
Joined: Mon Jul 31, 2006 10:02 am
Location: Chicago
Contact:

Re: jsbeeb - a Javascript emulator

Postby Matt Godbolt » Thu Sep 22, 2016 2:08 pm

Are you loading a local file? If so, I can only read the file when you actually pick it from the menu. Javascript security settings is to only allow temporary file system access when the user uses the file picker.

When I do local development, I put the disc image somewhere I can read from (usually in the 'discs/' subdirectory of jsbeeb itself), then hack the url to be "disc=myssd.ssd", then just a reload gets the changes.

dp11
Posts: 708
Joined: Sun Aug 12, 2012 8:47 pm

Re: jsbeeb - a Javascript emulator

Postby dp11 » Thu Sep 22, 2016 2:11 pm

Yes local storage.

I'll give that ago.

User avatar
Matt Godbolt
Posts: 163
Joined: Mon Jul 31, 2006 10:02 am
Location: Chicago
Contact:

Re: jsbeeb - a Javascript emulator

Postby Matt Godbolt » Thu Sep 22, 2016 2:12 pm

(Also re: Chrome Canary: "Get on the bleeding edge of the web | Chrome Canary is currently not available on the linux platform." -- argh!)

dp11
Posts: 708
Joined: Sun Aug 12, 2012 8:47 pm

Re: jsbeeb - a Javascript emulator

Postby dp11 » Sat Sep 24, 2016 7:46 pm

A very small bug. I think. In mode 7 if you set R9 of the 6845 to 31 and display an "A". You get the full "A" but then the top of "B" where are it should I think be the top of "A" . The SAA5050 should should count hsync pulses to work out which row of a character to display and not sneak a look at the 6845 :)

User avatar
Matt Godbolt
Posts: 163
Joined: Mon Jul 31, 2006 10:02 am
Location: Chicago
Contact:

Re: jsbeeb - a Javascript emulator

Postby Matt Godbolt » Sun Sep 25, 2016 12:20 am

Thanks for the report! I've added to the list on GitHub and hope that Rich TW has some clues!

User avatar
tricky
Posts: 1918
Joined: Tue Jun 21, 2011 8:25 am
Contact:

Re: jsbeeb - a Javascript emulator

Postby tricky » Sun Sep 25, 2016 10:13 am

Is there any joystick / analogue support in jsbeeb?
If not, would it be possible to use the mouse position for channels 0 and 1 and the mouse buttons for fire 0 and 1?
I would like to be able to play Circus.

User avatar
Matt Godbolt
Posts: 163
Joined: Mon Jul 31, 2006 10:02 am
Location: Chicago
Contact:

Re: jsbeeb - a Javascript emulator

Postby Matt Godbolt » Sun Sep 25, 2016 12:24 pm

No joystick or mouse support: I'm not quite sure how I'd do it to be honest. I think the mouse movements are relative for those peripherals and of course the real mouse pointer is absolute. I'm sure something can be done; I've added it to the feature request list.

User avatar
tricky
Posts: 1918
Joined: Tue Jun 21, 2011 8:25 am
Contact:

Re: jsbeeb - a Javascript emulator

Postby tricky » Sun Sep 25, 2016 2:03 pm

Analogue channel 0 = mouse x, 1 = y, scaled 0 to &ffff

User avatar
Matt Godbolt
Posts: 163
Joined: Mon Jul 31, 2006 10:02 am
Location: Chicago
Contact:

Re: jsbeeb - a Javascript emulator

Postby Matt Godbolt » Sun Sep 25, 2016 4:04 pm

Wow that sounds be pretty straightforward then! Thanks.

Howe on earth did the hardware work?

User avatar
Matt Godbolt
Posts: 163
Joined: Mon Jul 31, 2006 10:02 am
Location: Chicago
Contact:

Re: jsbeeb - a Javascript emulator

Postby Matt Godbolt » Sun Sep 25, 2016 4:05 pm

Ah! You mean use the mouse to emulate the joystick! Yes; can do...

User avatar
vanekp
Posts: 343
Joined: Thu Nov 30, 2000 7:09 am
Location: The Netherlands

Re: jsbeeb - a Javascript emulator

Postby vanekp » Sat Nov 25, 2017 2:13 pm

JsBeeb crashes out in a spectacular way while loading the tape version of Fortress :)
JsBeebFortressTape.png

But has come a long way works very well with most titles even ones like Joust :)
Peter.

User avatar
lurkio
Posts: 1292
Joined: Tue Apr 09, 2013 11:30 pm
Location: Doomawangara
Contact:

Re: jsbeeb - a Javascript emulator

Postby lurkio » Sat Nov 25, 2017 2:30 pm

vanekp wrote:JsBeeb crashes out in a spectacular way while loading the tape version of Fortress

Do you want to report the bug?:

:?:

User avatar
vanekp
Posts: 343
Joined: Thu Nov 30, 2000 7:09 am
Location: The Netherlands

Re: jsbeeb - a Javascript emulator

Postby vanekp » Sat Nov 25, 2017 2:38 pm

done, thanks.
Peter.

Hmmmm...
just tried it with the STH copy https://bbc.godbolt.org/?tape=sth%3APace%2FFortress_B.zip# and it works fine how odd.

User avatar
Matt Godbolt
Posts: 163
Joined: Mon Jul 31, 2006 10:02 am
Location: Chicago
Contact:

Re: jsbeeb - a Javascript emulator

Postby Matt Godbolt » Sat Nov 25, 2017 9:17 pm

Thanks all! Noted, and...subject to finding some time...I'll see what I can do!


Return to “emulators”

Who is online

Users browsing this forum: No registered users and 2 guests