|
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 |
Heathkit H-100 DeSmet C program to display a graphics bitmap fileMy ".ZED" graphics file format is something like a device-dependent bitmap for the Heathkit H-100 computer. It saves the contents of the three color plane video RAM banks to a disk file. This program loads a .ZED and displays it to the screen. It's very fast. There used to be more to this program, but all of its guts were moved into the zedload() function, which this now calls. The \033 octal escape sequences are Heath H-19 terminal codes for the functions described in the comments. \033 is the octal equivalent of Chr$(27): ASCII ESC (escape). |
/* dispsing.c 4-20-93 4-30-93
Copyright (C)1993 Steven Whitney.
Initially published by http://25yearsofprogramming.com.
Published under GNU GPL (General Public License) Version 3, with ABSOLUTELY NO WARRANTY.
DISPLAYS A SINGLE .ZIC OR .ZED FILE TO THE H100 SCREEN.
SUPPLY INPUT FILE NAME ON COMMAND LINE.
4-30-93 MISC. SMALL CHANGES
5-23-93 NOW JUST USES ZEDLOAD()
*/
#include "stdio.h"
main(argc,argv)
int argc;
char **argv;
{
puts("\033z"); /* reset terminal */
puts("\033x<"); /* disable keyboard auto-repeat */
puts("\033y@"); /* disable event mode */
puts("\nDuring image display, press any key to exit.\n");
puts("\033E"); /* clear screen */
zedload(argv[1]);
locate(25,1); /* rest cursor at bottom */
puts("\033x5"); /* and turn it off */
puts(argv[1]); /* display input file name */
getchar(); /* wait for a character to quit */
puts("\033z"); /* restore normal screen */
exit(0);
}
|
|
|
|
|
|
Copyright ©2011 Steven Whitney. Last modified Tue 05/24/2011 12:28:19 -0700. |
||