petel@tekig5.UUCP (Pete Lancashire) (02/03/86)
Looking for a 'collection' of c routines to set/reset pixels on a Herc Card. And wishing for bit-blt functions. Pete Lancashire ...!tektronix!tekig5!petel (503)627-2566
broehl@watdcsu.UUCP (Bernie Roehl) (02/05/86)
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...