On Wed, Mar 25, 2020 at 1:11 AM Tom Wilson <[email protected]> wrote:

>
>> I guess the question becomes, what do you want it to do?
>>
>> What does the Model 100 ROM do when you save that program as ASCII?
>>
>> If it keeps those bytes as binary for VT to do the same behavior it would
>> have to understand whether it's detokenizing a token, a string, the
>> contents of a REM statement or possibly even hidden machine language packed
>> into hidden program lines.
>>
>> -- John.
>>
>
> The 100 ROM definitely keeps the character values as their ASCII binaries
> when you save with ,A.
>
> I tried it with:
> 10 PRINT "▒█▒█▒"
> SAVE "TEST",A
>
> and TEST.DO had exactly the text above.
>
>
Seems complicated.

Maybe the right thing to do is just have VirtualT create a temporary
instance of the Model 100 (or whatever machine is being emulated) to do the
work. Then it could produce the same ASCII output as SAVE"FOO",A.

Without actually having to reproduce the detokenizer logic for each laptop.

I doubt it would even be slow in VT.

-- John

Reply via email to