|
25 Years of Programming
An open source source for C, C++, OWL, BASIC, MDB, XLS, DOT, and more... |
Home Projects Up Sitemap Search Blog Forum+Chat About Us Privacy Terms of Use Feedback FAQ Images Services Payments Humor Music |
Display a single device independent bitmap .PIC file, DeSmet C, Heathkit H-100 computerI created three graphic file formats for the Heathkit H-100 computer. This program uses the picload() function to display one image in the device-independent .PIC format. |
/* dispic.c 9-17-94
Copyright (C)1994 Steven Whitney. Published under the
GNU GPL (General Public License) Version 3, with ABSOLUTELY NO WARRANTY.
Initially published by http://25yearsofprogramming.com.
DISPLAYS A SINGLE ==>.PIC<== (NOT .ZIC OR .ZED) FILE TO THE H100 SCREEN
*/
#include "stdio.h"
main(argc,argv)
int argc;
char **argv;
{
puts("\033z"); /* reset terminal */
puts("\033x<"); /* disable key auto-repeat */
puts("\033x1"); /* enable 25th line */
_outb(0x78,0xD8); /* enable all planes */
locate(24,1);
puts("While drawing, press ^C to abort,");
locate(25,1);
puts("After completion, press any key to exit.");
picload(argv[1]);
locate(25,1);
puts(argv[1]);
locate(25,1); /* rest cursor at bottom */
puts("\033x5"); /* and turn it off */
ci();
puts("\033z"); /* restore normal screen */
exit(0);
}
|
|
|
|
|
|
|
Copyright ©2011 Steven Whitney. Last modified Tue 05/24/2011 12:28:16 -0700. |
||