[Coco] A question about the BASIC statement CLEAR

Arthur Flexser flexser at fiu.edu
Sun Nov 3 00:39:00 EDT 2024


You don't need to allow an extra byte.  CLEAR 200, &H7000 means your ML routine can safely start at $7000.  Below that will be 200 bytes allotted to string space and below that is the stack.

Art
________________________________
From: Coco <coco-bounces at maltedmedia.com> on behalf of Sean Conner via Coco <coco at maltedmedia.com>
Sent: Saturday, November 2, 2024 11:34 PM
To: coco at maltedmedia.com <coco at maltedmedia.com>
Cc: Sean Conner <sean at conman.org>
Subject: [Coco] A question about the BASIC statement CLEAR

Note: This message originated from outside the FIU Faculty/Staff email system.


  I'm working on some assembly code that interfaces with BASIC (as part of a
larger project), but the documentation I have for CLEAR isn't clear.  The
quick reference card states:

        CLEAR n,h
        ... h specifies highest BASIC address.

_Getting Started with Color BASIC_ states:

        CLEAR

        ... If you are loading a machine language program, you can use a
        second number to specify the highest address BASIC can use.

but it isn't clear to me if BASIC will use memory UPTO this address, or use
THIS address.  Do I need to set it one lower than the address I'm using?
Or to mark the start of memory I'm using.

  -spc


--
Coco mailing list
Coco at maltedmedia.com
https://urldefense.com/v3/__https://pairlist5.pair.net/mailman/listinfo/coco__;!!FjuHKAHQs5udqho!P-THbtmGBrYkFKGLo3aix3f1rJg6z1FyJS99eilN3hCapn0GJbwYGwpr3ikR3wGYbXYZLpUdJAzymVQ$


More information about the Coco mailing list