PETZOLD BOOK BLOG

Charles Petzold on writing books, reading books, and exercising the internal UTM


Recent Entries
< PreviousBrowse the ArchivesNext >
Subscribe to the RSS Feed

600 Lines is a Luxury

January 25, 2008
Roscoe, N.Y.

Jeff Atwood asks What Can You Build in 600 Lines of Code? As someone whose entire career is based on writing the shortest programs I can, let me take a little obnoxious trip down memory lane.

In the mid 80's, Paul Somerson was Executive Editor of PC Magazine and ran the "back of the book" where all the programming stuff appeared. The Programming column featured mostly handy command-line DOS utilities, and the criterion was 500 bytes of machine code in a .COM file — up to 1K if the program was "really cool." We wrote them in 8086 assembly language, of course, so perhaps the actual line count exceeded 600 lines, but the byte count is easily calculable if you have the old issues.

Here are my PC Magazine utilities from a three-month period back when I was Jeff Atwood's age:

By this era, the actual assembly language listings were not printed in the magazine. Instead, PC Magazine had an Interactive Reader Service accessible by modem and a phone number in the 212 area code. Be sure to use the XMODEM protocol to download the files!

Instead of assembly language listings, the articles included a listing of a BASIC program with multiple DATA statements (8 numbers per line with a checksum) that generated the .COM file for you. That's how I was able to determine the byte count of these old utilties so easily.

Where are the actual assembly language listings now that the PC Magazine Interactive Reader Service is no more? I would say that they are pretty much gone into that great bit bucket in the sky. (Too bad they weren't printed in the magazine, because as we all know, paper is forever.)


Comments:

It's okay, Charlie. CNET yanked 12 years of my Hard Edge column off the web. While they may still exist on a strip of tape somewhere, the 144 issues of Computer Shopper in which they appeared have long since gone to kindling. The world is beset with transmogrification, no matter what the original format was. :-)

Bill O'Brien, Sat, 26 Jan 2008 07:36:31 -0500 (EST)

Hey, Bill, it looks like the NYPL has Computer Shopper from 1989 on (but missing the first 8 years): http://catnyp.nypl.org/record=b2279559 — Charles

Y'know... You always did provoke me into doing more work than I wanted to... :-) Didn't start writing with Shopper until PCM gave me the boot in '91 or '92 so it's a good range of years. Thanks for the link!

Bill O'Brien, Mon, 28 Jan 2008 20:13:20 -0500 (EST)

You can always disassemble those and print them in a book.

Igor, Tue, 29 Jan 2008 18:08:34 -0500 (EST)

Brought back memories: about 45 years ago I wrote a short utility for the IBM 1401 to duplicate a deck of punched cards = fitting on one card, written directly at the keypunch! The 1401 had a human-readable machine language.

Mayson Lancaster, Sat, 26 Apr 2008 14:33:01 -0400 (EDT)


Recent Entries
< PreviousBrowse the ArchivesNext >
Subscribe to the RSS Feed

(c) Copyright Charles Petzold
www.charlespetzold.com