Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Small PCX Viewer (Users)

posted by Paul(R), 19.07.2010, 20:03

> I'll give you an example: Years ago I came across an excellent 128 byte
> program for displaying a 320x200 PCX file (this was after I'd coded a
> slightly larger program in TP to do the same). So I already knew when I
> saw this little program that the header for a PCX file was 128 bytes, the
> same length as this program (obviously done on purpose). Like most people
> I suspect who knew this I also immediately realized that the code could be
> easily combined with a 320x200 PCX file to make a self displaying graphics
> file. However when I stepped back I also realized that since the program
> included file handling code that if there was no separate file that the
> file handling code wasn't needed thus a combined file could be smaller.
> That is to say if there was no file then no file handling was required.
> I'm sure the author of the 128 byte program realized this hence 128 bytes
> in size to make that point even though from memory he never actually stated
> it in his source.

Digressing, but I found a PCX viewer that's only 56 bytes! The author also has a PCX-to-EXE utility. Actually quite relevant to this example, anyway.
http://agrgic.tripod.com/dl/

 

Complete thread:

Back to the forum
Board view  Mix view
15112 Postings in 1359 Threads, 247 registered users, 15 users online (0 registered, 15 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum