|
|
|
Re: ]LOAD and RUN ??? [message #352439 is a reply to message #352428] |
Thu, 14 September 2017 17:07 |
Michael J. Mahon
Messages: 1767 Registered: October 2012
Karma: 0
|
Senior Member |
|
|
Jorge <jorge@jorgechamorro.com> wrote:
> On Thursday, September 14, 2017 at 8:44:47 PM UTC+2, schmidtd wrote:
>> On 9/14/2017 2:00 PM, Jorge wrote:
>>> 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.p df
>
> 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
|
|
|
|
|
|
Re: ]LOAD and RUN ??? [message #352514 is a reply to message #352497] |
Fri, 15 September 2017 16:59 |
Steve Nickolas
Messages: 2036 Registered: October 2012
Karma: 0
|
Senior Member |
|
|
On Fri, 15 Sep 2017, Michael J. Mahon wrote:
> Jorge <jorge@jorgechamorro.com> wrote:
>>>
>>> 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?
>>
>> 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
>>
>> ?
>>
>
> 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.
|
|
|
Re: ]LOAD and RUN ??? [message #352515 is a reply to message #352514] |
Fri, 15 September 2017 17:29 |
|
Originally posted by: Jorge
On Friday, September 15, 2017 at 11:00:01 PM UTC+2, Steve Nickolas wrote:
> On Fri, 15 Sep 2017, Michael J. Mahon wrote:
>
>> Jorge wrote:
>>> 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
>>>
>>> ?
>>>
>>
>> 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
|
|
|