[Coco] I fixed the goddamn PCLEAR 0 bug.

Allen Huffman alsplace at pobox.com
Sat Aug 2 14:46:30 EDT 2025


> On Aug 2, 2025, at 2:47 AM, Ciaran Anscomb via Coco <coco at maltedmedia.com> wrote:
> 
> FWIW this is the bodge I have saved out for doing PCLEAR0 without such
> ROM patching:
> 
> POKE183,PEEK(183)-6:POKE188,PEEK(188)-6:PCLEAR1:POKE183,PEEK(183)+6:POKE188,PEEK(188)+6
> 
> Annoyingly verbose, but should account for DOS, and works on the
> Dragon too.

WITCHCRAFT!

I just tried this in Xroar … and it works.  Wow.

I think this would be easier to type in than what I use:

10 CLS:FORA=0TO8:READA$:POKE1024+A,VAL("&H"+A$):NEXTA:EXEC1024:DATAC6,1,96,BC,1F,2,7E,96,A3

And maybe easier to remember…  183 -6, 188 -6, PCLEAR 1, then reverse 183 +6, 188 +6.

But …

WHY does it work???
--
Allen Huffman - PO Box 7634 - Urbandale IA 50323 - 515-999-0227 (vmail/TXT only)
http://www.subethasoftware.com - https://www.facebook.com/subethasoftware




More information about the Coco mailing list