[Coco] "Reading" non-readable bytes with PEEK vs ZBUG

Robert Gault robert.gault at worldnet.att.net
Sat Jan 26 08:31:22 EST 2008


Roger Taylor wrote:
> At 07:38 AM 1/25/2008, you wrote:
> 
>> There is another approach which will be independent of memory but not 
>> relocated DOS code. Write a Basic program as a LOADM routine for your 
>> binary program.
>> 10 A=PEEK(&HC003)
>> 20 IF A=8 THEN POKE&HD008,&H21 ELSE POKE&HCF2C,&H21
>> 30 LOADM"ROGER.BIN"
> 
> 
> 
> I now see that you're checking a byte first.  I didn't notice that 
> earlier, sorry.
> 
> 

Also I goofed when writing this short piece of code. I intended a BRA to 
replace the BEQ but used the value for BRN, duh.

The POKE value should be &H20 to get the BRA.



More information about the Coco mailing list