[Coco] Vcc - Drivewire4 How to??

Robert Gault robert.gault at att.net
Fri Jul 6 16:17:15 EDT 2018



coco at jechar.ca wrote:
>
>   If addresses $D938-$D93A is where the offset is stored then why after setting the offset to
>   when I type PRINT PEEK(2360) do I get zero and also get zero for
>   PRINT PEEK(2361)  and  PRINT PEEK(2362)
>   If I have done my Hex conversion right $0938=2360.
>   It seems to me rather then get 0,0,0 I should be getting 5,160,0
>   which is the decmal equivalent of 05,A0,00 hex.
>
>


Well, $D938 = 55608 dec so that is why your PEEK can't work.

Also, you could use the following syntax where you don't need to convert between dec and hex. Just 
let Basic do it for you.
10 MN=&HD938: FOR M=MN TO MN+2 : PRINT HEX$( PEEK (MN));" ";:NEXT

Robert


More information about the Coco mailing list