I was getting this a lot myself doing the same thing.  I saw it when it was
trying to return from
ON COM GOSUB xxx
COM ON
...

I don't remember the exact sequence that fixed it, but here's the LD
"kernel" that i've been using to talk with my player:

https://github.com/BleuLlama/LlamaLlaser/blob/master/BASIC/mind.bas

Look at lines 1-200.  You may also need to have set maxfiles to 2 or more
to get it to work.

The basic idea is that there's a few calls implemented here, that could be
swapped out for when this is ported to other BASIC implementations.

To start up:
1000 GOSUB 100

To transmit a command (and wait for a response):
1010 TX$="FR2000PL" : GOSUB 130
1020 PRINT "Response was "; RX$


On Sun, Dec 9, 2018 at 9:19 PM Peter Vollan <[email protected]> wrote:

> Running the code to send commands to a laserdisk player, I got a
> "return without gosub" error. It seems that a limitation of the model
> 100 is that if you gosub to a subroutine, and then gosub again, it
> will forget that it is it in a subroutine, and not understand the
> retrurn statement. This is obviously a mistake, but it could be put to
> good use. If I am correct about this that is.
>


-- 
Scott Lawrence
[email protected]

Reply via email to