Problemette with JSBEEB

feedback, questions and discussion relating to the Complete BBC Games Archive (beta site now open!)
Commie_User
Posts: 863
Joined: Wed Jan 27, 2016 12:50 am

Problemette with JSBEEB

Postby Commie_User » Wed Aug 24, 2016 7:02 pm

What a superb idea to have a playable emulator run games in the browser window. So very convenient, especially if you're an octopus to finger all these game controls in funny places comfortably. I mean, come on 80s programmers, WTF?

So can we have a joystick mode please? I know there's Beeb-Em but we might as well go all the way.


Especially, also, as a bit of BASIC is as slow as all hell.

jsbeeb.png

User avatar
pau1ie
Posts: 269
Joined: Thu May 10, 2012 9:48 pm
Location: Bedford

Re: Problemette with JSBEEB

Postby pau1ie » Sun Aug 28, 2016 9:42 pm

I downloaded jsbeeb from https://github.com/mattgodbolt/jsbeeb. Its main site is http://bbc.godbolt.org
I'm working on http://bbcmicro.co.uk

joachim
Posts: 95
Joined: Wed Jun 21, 2006 1:20 am

Re: Problemette with JSBEEB

Postby joachim » Sun Aug 28, 2016 9:55 pm

This isn't what you posted to ask about, but there's a bug in your program. After some seconds the sound buffer for channel 3 fills up, the SOUND command in line 30 starts to block, and thenceforward all three channels only progress at the speed of the slowest channel.

To get three independent channels to continue indefinitely the simplest solution is to skip the SOUND command whenever the corresponding buffer is full:

10IF ADVAL(-6) SOUND1,-15,RND(100),3
20IF ADVAL(-7) SOUND2,-15,RND(500),5
30IF ADVAL(-8) SOUND3,-15,RND(800),6
40RUN

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

Re: Problemette with JSBEEB

Postby Matt Godbolt » Mon Aug 29, 2016 12:56 am

Better support for saving disc images in jsbeeb is on my TODO list. For now you can have browser-local discs and if you have a Google account you can store disc images on Google Drive (Discs->From Google Drive).

Feel free to look through the bug list/feature requests at https://github.com/mattgodbolt/jsbeeb/issues and either add your ideas or raise new feature requests there.

Commie_User
Posts: 863
Joined: Wed Jan 27, 2016 12:50 am

Re: Problemette with JSBEEB

Postby Commie_User » Mon Aug 29, 2016 12:50 pm

joachim wrote:This isn't what you posted to ask about, but there's a bug in your program. After some seconds the sound buffer for channel 3 fills up, the SOUND command in line 30 starts to block, and thenceforward all three channels only progress at the speed of the slowest channel.


What a wonderful listing and I'll certainly keep that handy. Thank you. I liked it buggy though, as all three notes are still their different lengths. I'm even accompanying it with an instrument as it trots along: viewtopic.php?f=41&t=11492


Return to “bbcmicro.co.uk”

Who is online

Users browsing this forum: No registered users and 1 guest