[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CP/M disk format question



In article <916eae14-3083-4ff3-9eb8-0130f7a1a75d@b1g2000hsg.googlegroups.com>,
jonnosan  <jonnosan@gmail.com> wrote:
>On Jul 12, 6:42=A0pm, pau...@saaf.se (Paul Schlyter) wrote:
>>
>> The GW-BASIC-tokens.html web page stated that GW-BASIC never stored
>> the line addresses, only the line numbers, when a GW-BASIC program
>> was SAVE'd in tokenized format. =A0Here MBASIC behaved differently:
>> if the program in memory had line addresses instead of line numbers,
>> the SAVE'd program would also contain line addresses, if it was saved
>> in tokenized format. =A0Back when I still wrote some programs in
>> MBASIC, I therefore used to execute the program first, thoroughly enough
>> to make sure all GOTO's/GOSUB's had been executed, before I SAVE'd
>> the program in tokenized format - then it would execute slightly faster
>> the next time I LOAD'ed and RUN'ned it. =A0If the program was to be saved=
> in
>> ASCII format, this didn't matter of course.
>>
>Any chance you could send me some disk images with files that contain
>line addresses instead of line numbers? I haven't come across this yet
>in any of the (quite limited) images I've tested my code against.

You should be able to create such images yourself easily.  Write a short
MBASIC programs which contains GOTO statements.  SAVE it in tokenized format
before running your program for the first time.  Next, run your program,
and afterwards SAVE it again to a new file.  Exit MBASIC and DUMP the two
tokenized files and check the differences.

If you don't have access to an Apple CP/M computer, then the Apple Oasis
emulator should serve fine.

-- 
----------------------------------------------------------------
Paul Schlyter,  Grev Turegatan 40,  SE-114 38 Stockholm,  SWEDEN
e-mail:  pausch at stjarnhimlen dot se
WWW:     http://stjarnhimlen.se/