[Coco] CLOAD to LOAD help pls

Arthur Flexser flexser at fiu.edu
Tue Nov 14 00:59:06 EST 2017


I can see no reason why CLOAD followed by SAVE (not using the Ascii save
option) shouldn't transfer that program okay so that it would run from disk.

What sort of error do you see at line 400?

Does running the program from cassette work okay with the disk controller
plugged in?

If you turn off the machine for 30 seconds or so to wipe the contents of
memory, and then load and run this from disk, is the ML code found to have
been moved to high memory successfully?  Can you exec the address (32027,
you said earlier) where it should be and have it execute properly?

Is there a CLEAR statement near the beginning of the program that protects
the area above 32027, like CLEAR 200, &H7D1B?

Art

On Tue, Nov 14, 2017 at 12:32 AM, rietveld rietveld <rietveldh at hotmail.com>
wrote:

> Hi
>
>
> lines read as follows
>
>
>
> 380 ml=763: rem size of ml file
>
> 390 sp=peek(27)*256+peek(28)-ml
>
> 400 exec sp
>
>
>
> ________________________________
> From: Coco <coco-bounces at maltedmedia.com> on behalf of Arthur Flexser <
> flexser at fiu.edu>
> Sent: November 13, 2017 5:15:09 PM
> To: CoCoList for Color Computer Enthusiasts
> Subject: Re: [Coco] CLOAD to LOAD help pls
>
> If you can show the program listing, that would be helpful.
>
> Art
>
> On Mon, Nov 13, 2017 at 3:39 PM, rietveld rietveld <rietveldh at hotmail.com>
> wrote:
>
> > If I understand you correctly then I should change line 400 to read EXEC
> > 32027 to reflect the memory location I am using?
> >
> > Sent from my BlackBerry Passport Red Edition.
> >   Original Message
> > From: Arthur Flexser
> > Sent: Monday, November 13, 2017 3:34 PM
> > To: CoCoList for Color Computer Enthusiasts
> > Reply To: CoCoList for Color Computer Enthusiasts
> > Subject: Re: [Coco] CLOAD to LOAD help pls
> >
> >
> > There are different techniques for end-packing code.  If the exec address
> > SP is specified properly with respect to the end-of-program pointer at
> > $1B-1C so that you are exec'ing to an address that is some specified
> number
> > of bytes below the end of program, it should work okay when loaded from
> > disk.  If the programmer didn't do it that way, but specified the exec
> > address SP as some constant, then it'll be messed up when the program is
> > moved to disk.
> >
> > Art
> >
> > On Mon, Nov 13, 2017 at 3:23 PM, rietveld rietveld <
> rietveldh at hotmail.com>
> > wrote:
> >
> > > I tried just CLOAD and SAVE but when I run the program from disk I get
> an
> > > error in the line 400 EXEC SP.   It works fine when CLOAD ed from tape
> > and
> > > run
> > >
> > > Sent from my BlackBerry Passport Red Edition.
> > >   Original Message
> > > From: Arthur Flexser
> > > Sent: Monday, November 13, 2017 3:15 PM
> > > To: CoCoList for Color Computer Enthusiasts
> > > Reply To: CoCoList for Color Computer Enthusiasts
> > > Subject: Re: [Coco] CLOAD to LOAD help pls
> > >
> > >
> > > I would think all you'd need to do is CLOAD the program and then SAVE
> it
> > to
> > > disk.  If it has end-packed ML code, that should be carried right along
> > and
> > > needn't be saved separately.  Just LOAD the disk program and run it.
> > >
> > > Art
> > >
> > > On Mon, Nov 13, 2017 at 3:04 PM, rietveld rietveld <
> > rietveldh at hotmail.com>
> > > wrote:
> > >
> > > > Hi
> > > >
> > > > I have a BASIC program on tape that has a ML program appended to the
> > end
> > > > of it. When I 'CLOAD' on my 32k coco1 the BASIC and ML program load.
> I
> > > RUN
> > > > the BASIC program and it loads the ML into upper RAM.
> > > > I want to use this program from disk instead of tape for ease of
> > loading
> > > I
> > > > saved the BASIC program with, 'SAVE "PVR25.BAS".    And I since the
> ML
> > > was
> > > > moved to high memory I was able to 'SAVEM
> > "PVR25.bin",32027,32767,32027.
> > > >    I just don't know how to append the two problems together like
> when
> > > they
> > > > load from tape I need to LOAD"PvR25.BAS" and LOADM"PVR25.BIN".   The
> > > BASIC
> > > > program displays the program instructions then loads the ML into high
> > > > memory. If I just LOADM"PVR25.BIN " will it automatically be moved to
> > > 32027
> > > > where I had saved it from?
> > > >
> > > > Sent from my BlackBerry Passport Red Edition.
> > > >
> > > > --
> > > > Coco mailing list
> > > > Coco at maltedmedia.com
> > > > https://pairlist5.pair.net/mailman/listinfo/coco
> > > >
> > >
> > > --
> > > Coco mailing list
> > > Coco at maltedmedia.com
> > > https://pairlist5.pair.net/mailman/listinfo/coco
> > >
> > > --
> > > Coco mailing list
> > > Coco at maltedmedia.com
> > > https://pairlist5.pair.net/mailman/listinfo/coco
> > >
> >
> > --
> > Coco mailing list
> > Coco at maltedmedia.com
> > https://pairlist5.pair.net/mailman/listinfo/coco
> >
> > --
> > Coco mailing list
> > Coco at maltedmedia.com
> > https://pairlist5.pair.net/mailman/listinfo/coco
> >
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco
>


More information about the Coco mailing list