[Coco] (No subject)

Allen Huffman alsplace at pobox.com
Fri Jul 8 09:44:30 EDT 2022


On Jul 8, 2022, at 7:34 AM, rick ulland via Coco <coco at maltedmedia.com> wrote:
> 
> I think you nailed it. We want
> 
> (PEEK(33)*256+PEEK(34))  -  (PEEK(25)*256+PEEK(26))
> 
> the second term is subtracted from the first. But maybe we get
> 
> PEEK(33)*256+PEEK(34)-PEEK(25)*256  +  PEEK(26)
> 
> part of the second term is added

I completely couldn’t see this at all, but the spaces help clarify.

I out parens around everything in C, but never really dealt with anything that required it in BASIC. I’ve completed a lengthy article about the BASIC pointers for variables, arrays, strings, etc. and include a bunch of those as examples… which now have parens around them ;)


More information about the Coco mailing list