[Coco] Help with BASIC

Darren A mechacoco at gmail.com
Fri Nov 21 10:39:53 EST 2014


On Fri, Nov 21, 2014 at 5:13 AM, Brett Gordon wrote:

> from the docs:
>
> " You are not allowed to erase any part of the active bank (the one
> from which SDC-DOS is running)."
>
> Does this mean if we try to over-write our active bank, bad things
> happen, or it fails peacefully, if not quietly ?
>
> I don't want the proglet I wrote to brick anyones SDC!
>

The KILL MEM and WRITE MEM statements will produce an ?AO ERROR if the
active bank is specified.

If you want to do a pre-flight check on the value provided by the user you
can obtain the active bank number using PEEK(&HFF43) AND 7.

Darren


More information about the Coco mailing list