[Color Computer] [coco] Learning MW C

Christopher Hawks chawks at dls.net
Fri Aug 11 20:57:53 EDT 2006

George's Coco Address wrote:
>  For several years, I've been wanting to learn "C" .. the one that comes 
> with OS-9.
>  The hang up is peeks and pokes. I can't find a way to do this with "C".
>  Can anyone help with this?

	It's been a while, but, something like:

(POKE &HFF7f, &H22)

unsigned char* poke = (unsigned char*)0xFF7F;
*poke = 0x22;

unsigned char peek;
peek = *poke;

Christopher R. Hawks
By golly, I'm beginning to think Linux really *is* the best thing since
sliced bread.
	-- Vance Petree, Virginia Power

More information about the Coco mailing list