Voting

Category

real language

Bookmarking

Del.icio.us Digg Diigo DZone Earthlink Google Kick.ie
Windows Live LookLater Ma.gnolia Reddit Rojo StumbleUpon Technorati

Language Michigan Algorithm Decoder

Date:04/20/05
Author:Eric S. Raymond
URL:n/a
Comments:2
Info:n/a
Score: (3.25 in 4 votes)
By: Eric S. Raymond (http://www.catb.org/~esr/)

	THROUGH TAKEN,FOR I=100,-1,I.GE.2
	PRINT FORMAT WALL,I,I
	PRINT FORMAT DOWN
TAKEN	PRINT FORMAT LEFT,I
	PRINT FORMAT WALL1
	PRINT FORMAT DOWN
	PRINT FORMAT LEFT0
	VECTOR VALUES WALL=$1H0,I2,30H BOTTLES OF BEER ON THE WALL, ,I2,
      1 17H BOTTLES OF BEER,*$
	VECTOR VALUES DOWN=$34H0TAKE ONE DOWN AND PASS IT AROUND,*$
	VECTOR VALUES LEFT=$1H0,I2,17H BOTTLES OF BEER./*$
	VECTOR VALUES WALL1=$33H01 BOTTLE OF BEER ON THE WALL,, 1
      1 15H BOTTLE OF BEER*$
	VECTOR VALUES LEFT0=$19H00 BOTTLES OF BEER.*$
	END OF PROGRAM

This is Michigan Algorithm Decoder, commonly known as MAD, an Algol 58
variant dating from 1962 on the IBM 709 and now long extinct.  I'm
working on a retrocompiler for it, and this code has been tested and
works.

Download Source | Write Comment

Alternative Versions

Comments

>>  L. S. Hicks said on 04/13/06 22:25:18

L. S. Hicks Thanks for the memories -- wrote some MAD code in 1965 at the Yale University Computer Center when I first learned programming. They had an IBM 7090/7040 -- a super-fast setup capable of something like 0.05 MFLOPS! If a job ABENDed, the programmer got the card deck back wrapped in a 14x17 printout having a banner that said "WHAT, ME WORRY?" under a portrait of Alfred E. Newman.

I still sometimes use the THROUGH-loop box when I'm flowcharting.

>>  Pete Anderson said on 07/20/09 21:45:04

Pete Anderson Yes, many thanks for the memories. I wrote many MAD programs while studying for my BSE Che from 1962 to 1965 at Michigan. You would submit your punched cards, get a job number, and come back in a few days to see if it had run. If it had, more likely it had crashed and you got back a listing which was mostly a core dump, and useless to the ordinary student. There were gurus at the computing center who could read the dump and tell you where you goofed up.

Download Source | Write Comment

Add Comment

Please provide a value for the fields Name, Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.

Please don't post large portions of code here! Use the form to submit new examples or updates instead!

Name:

eMail:

URL:

Security Code:
  
Comment: