[Coco] Returning a string to basic ?

Bob Devries devries.bob at gmail.com
Tue Sep 20 17:41:49 EDT 2011


thinking more on that....

You could have the user create a suitable sized string variable, then use 
VARPTR to find out where it is, and using INTCNV to pass the address to your 
code. Your code can then write to the string memory, and perhaps signal the 
user programme by sending a value using GIVABF.

Sorry, my BASIC/assembler is a bit rusty, since I'm almost totally OS9 now.

Another $0.02 + GST

Regards, Bob Devries
Dalby, QLD, Australia

----- Original Message ----- 
From: "Phill Harvey-Smith" <afra at aurigae.demon.co.uk>
To: "CoCoList for Color Computer Enthusiasts" <coco at maltedmedia.com>
Sent: Wednesday, September 21, 2011 7:08 AM
Subject: [Coco] Returning a string to basic ?

> Hi all,
> I'm developing a SD/MMC interface for the Dragon and CoCo, and need a 
> method of returning a string to basic so that I can add a function to (for 
> example) return the current working directory on the card.
> How would I go about this ?
> Cheers.
> Phill.
> -- 
> Phill Harvey-Smith, Programmer, Hardware hacker, and general eccentric !
> "You can twist perceptions, but reality won't budge" -- Rush.
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco 

More information about the Coco mailing list