Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site watdcsu.UUCP Path: utzoo!watmath!watnot!watdcsu!broehl From: broehl@watdcsu.UUCP (Bernie Roehl) Newsgroups: net.micro.pc Subject: Re: WANTED: simple pixel routines in C for Herc Card Message-ID: <2064@watdcsu.UUCP> Date: Wed, 5-Feb-86 09:54:45 EST Article-I.D.: watdcsu.2064 Posted: Wed Feb 5 09:54:45 1986 Date-Received: Thu, 6-Feb-86 04:46:17 EST References: <466@tekig5.UUCP> Reply-To: broehl@watdcsu.UUCP (Bernie Roehl) Organization: U of Waterloo, Ontario Lines: 23 In article <466@tekig5.UUCP> petel@tekig5.UUCP (Pete Lancashire) writes: > >Looking for a 'collection' of c routines to set/reset pixels >on a Herc Card. And wishing for bit-blt functions. > Setpixel(x, y) int x,y; { char *p; p = 0x2000 * (y & 3) + 90 * (y >> 2) + (x >> 3); _poke(_peek(p, 0xB000) | (0x80 >> (x & 7)), p, 0xB000); } Clearpixel(x, y) { char *p; p = 0x2000 * (y & 3) + 90 * (y >> 2) + (x >> 3); _poke(_peek(p, 0xB000) & (~(0x80 >> (x & 7))), p, 0xB000); } Sorry, no bitblt (yet). If I write one, I'll probably post it...