Discussion:
]LOAD and RUN ???
(too old to reply)
Jorge
2017-09-14 18:00:52 UTC
Permalink
Raw Message
How does http://asciiexpress.net/diskserver/ do it that a LOAD also RUNs it without having to type RUN ?
David Schmidt
2017-09-14 18:44:46 UTC
Permalink
Raw Message
Post by Jorge
How does http://asciiexpress.net/diskserver/ do it that a LOAD also RUNs it without having to type RUN ?
FP BASIC RUN bit. Please review:
https://github.com/datajerk/c2t/raw/master/article/article.pdf
Jorge
2017-09-14 18:51:46 UTC
Permalink
Raw Message
Post by David Schmidt
Post by Jorge
How does http://asciiexpress.net/diskserver/ do it that a LOAD also RUNs it without having to type RUN ?
https://github.com/datajerk/c2t/raw/master/article/article.pdf
Yep, thanks!

"The next byte is always $55 (FP BASIC only). However, if the most significant bit is set high (e.g. $D5), then after the program loads it will automatically RUN—this is an awesome must have feature that c2t uses to improve the end user experience—thanks Woz!"
Michael J. Mahon
2017-09-14 21:07:21 UTC
Permalink
Raw Message
Post by Jorge
Post by David Schmidt
Post by Jorge
How does http://asciiexpress.net/diskserver/ do it that a LOAD also
RUNs it without having to type RUN ?
https://github.com/datajerk/c2t/raw/master/article/article.pdf
Yep, thanks!
"The next byte is always $55 (FP BASIC only). However, if the most
significant bit is set high (e.g. $D5), then after the program loads it
will automatically RUN—this is an awesome must have feature that c2t uses
to improve the end user experience—thanks Woz!"
I've always wondered whether this was more a handy "autorun" feature or a
tool to discourage prying eyes... ;-)

Given its Micro-soft parentage, I suspect the latter.
--
-michael - NadaNet 3.1 and AppleCrate II: http://michaeljmahon.com
Jorge
2017-09-15 13:56:21 UTC
Permalink
Raw Message
Post by Jorge
Post by David Schmidt
https://github.com/datajerk/c2t/raw/master/article/article.pdf
Yep, thanks!
"The next byte is always $55 (FP BASIC only). However, if the most
significant bit is set high (e.g. $D5), then after the program loads it
will automatically RUN—this is an awesome must have feature that c2t uses
to improve the end user experience—thanks Woz!"
Lookig at:

http://www.txbobsc.com/scsc/scdocumentor/D766.html

and

http://www.txbobsc.com/scsc/scdocumentor/definitions.html

it seems that the first 3 bytes written to the tape are $50..52 and $52 is LOCK, the interesting one. Yes? So, if I do:

POKE 82,128+PEEK(82)
SAVE

Will that make it to auto-run on LOAD?
--
Jorge.
Jorge
2017-09-15 14:10:46 UTC
Permalink
Raw Message
Post by Jorge
http://www.txbobsc.com/scsc/scdocumentor/D766.html
and
http://www.txbobsc.com/scsc/scdocumentor/definitions.html
POKE 82,128+PEEK(82)
SAVE
Will that make it to auto-run on LOAD?
And the first line of the program should perhaps better be a POKE($D6),0 to turn off the LOCK flag? What else than the auto-run happens, exactly, when the LOCK flag is set?

LOCK appears in all these pages:

http://www.txbobsc.com/scsc/scdocumentor/definitions.html
http://www.txbobsc.com/scsc/scdocumentor/D52C.html
http://www.txbobsc.com/scsc/scdocumentor/D766.html
http://www.txbobsc.com/scsc/scdocumentor/EFEA.html

?
--
Jorge.
Michael J. Mahon
2017-09-15 18:14:26 UTC
Permalink
Raw Message
Post by Jorge
Post by Jorge
http://www.txbobsc.com/scsc/scdocumentor/D766.html
and
http://www.txbobsc.com/scsc/scdocumentor/definitions.html
it seems that the first 3 bytes written to the tape are $50..52 and $52
POKE 82,128+PEEK(82)
SAVE
Will that make it to auto-run on LOAD?
And the first line of the program should perhaps better be a POKE($D6),0
to turn off the LOCK flag? What else than the auto-run happens, exactly,
when the LOCK flag is set?
http://www.txbobsc.com/scsc/scdocumentor/definitions.html
http://www.txbobsc.com/scsc/scdocumentor/D52C.html
http://www.txbobsc.com/scsc/scdocumentor/D766.html
http://www.txbobsc.com/scsc/scdocumentor/EFEA.html
?
AFAIK, that's all it does.
--
-michael - NadaNet 3.1 and AppleCrate II: http://michaeljmahon.com
Steve Nickolas
2017-09-15 20:59:59 UTC
Permalink
Raw Message
Post by Michael J. Mahon
Post by Jorge
Post by Jorge
http://www.txbobsc.com/scsc/scdocumentor/D766.html
and
http://www.txbobsc.com/scsc/scdocumentor/definitions.html
it seems that the first 3 bytes written to the tape are $50..52 and $52
POKE 82,128+PEEK(82)
SAVE
Will that make it to auto-run on LOAD?
And the first line of the program should perhaps better be a POKE($D6),0
to turn off the LOCK flag? What else than the auto-run happens, exactly,
when the LOCK flag is set?
http://www.txbobsc.com/scsc/scdocumentor/definitions.html
http://www.txbobsc.com/scsc/scdocumentor/D52C.html
http://www.txbobsc.com/scsc/scdocumentor/D766.html
http://www.txbobsc.com/scsc/scdocumentor/EFEA.html
?
AFAIK, that's all it does.
Unlike some MS dialects where setting protect makes it ?ILLEGAL QUANTITY
ERROR when executing the "LIST" or "SAVE" commands... (e.g., GW-BASIC)

-uso.
Jorge
2017-09-15 21:29:31 UTC
Permalink
Raw Message
Post by Steve Nickolas
Post by Michael J. Mahon
Post by Jorge
What else than the auto-run happens, exactly,
when the LOCK flag is set?
http://www.txbobsc.com/scsc/scdocumentor/definitions.html
http://www.txbobsc.com/scsc/scdocumentor/D52C.html
http://www.txbobsc.com/scsc/scdocumentor/D766.html
http://www.txbobsc.com/scsc/scdocumentor/EFEA.html
?
AFAIK, that's all it does.
Unlike some MS dialects where setting protect makes it ?ILLEGAL QUANTITY
ERROR when executing the "LIST" or "SAVE" commands... (e.g., GW-BASIC)
] POKE (214),128

LOL. Try that. It's nasty... (214 is $D6 ( LOCK ( lots of brackets )))
--
Jorge
Loading...