[Coco] BASIC09 problem
embsys dev
embsysdev at gmail.com
Tue Feb 24 22:37:36 EST 2015
Actually, no.
I was saying the 8-bit expression in the previous line was the problem,
which is wrong:
lof = sector(1)*256+sector(2)
^^^^^^^^^^^^^ I said the problem was here...BZZZT!
The I got to rethinking, no that can't be right, so I looked it up in the
BASIC09 manual and sure enough that should get promoted to INTEGER due to
lof on left side. So I was on the right track but the wrong foot, or
something like that.
SEEK #path, (lof-1)*256 (* should go to the start of the last sector *)
(* 2880 - 1 = 2879. 2879 * 256 = 737024 *)
^^^^^^^ you found the
problem here, DING!
Anyway, glad my comment helped. :-)
More information about the Coco
mailing list