11-23-2012, 11:41 PM,
|
|
Dean_P
Private First Class
|
Posts: 141
Threads: 6
Joined: Jun 2012
|
|
RE: Editing icons on posts
(11-22-2012, 02:51 AM)Michael Murphy Wrote: (11-22-2012, 01:48 AM)campsawyer Wrote: Here is the scarier part, does anyone remember the code in the description?
I used punch cards for my FORTRAN class back in 1982.
I was the last class to use punch cards at our college. the quarter after I took FORTRAN, they ripped the card punch machines out and put in VAX terminals.
By the way, that looks like Basic... FORTRAN code starts in column 7 and that card started in column 1 (with what looks like a line number). Columns 1-5 were reserved for line numbers, 6 for a continuation marker...
|
|
11-24-2012, 04:33 PM,
(This post was last modified: 11-24-2012, 04:34 PM by tlangston28.)
|
|
tlangston28
Staff Sergeant
|
Posts: 272
Threads: 27
Joined: Jun 2012
|
|
RE: Editing icons on posts
Holy crap! that is BASIC - truly old school basic with line numbers and everything
That card is still in pretty good shape.
It looks like a loop initializing different two-dimensional array variables to zero
(The colons are code separators denoting the "end of the line" or concatenating code lines.) .
In a "modern" dev environment, the code would look like this:
(the previous card must have had a "FOR J = 1 to something" line)
407 M(1,J) = M(2,2*J-1)
410 NEXT J
420 FOR J = 1 TO 100
425 T(2,J) = 0
426 S(2,J) = 0
427 M(2,J) = 0
Yeah, I am a geek, but it ended up turning into a fairly well-paying gig...
|
|
11-25-2012, 02:11 AM,
|
|
campsawyer
First Lieutenant
|
Posts: 1,023
Threads: 34
Joined: May 2012
|
|
RE: Editing icons on posts
(11-24-2012, 04:33 PM)tlangston28 Wrote: Holy crap! that is BASIC - truly old school basic with line numbers and everything
That card is still in pretty good shape.
It looks like a loop initializing different two-dimensional array variables to zero
(The colons are code separators denoting the "end of the line" or concatenating code lines.) .
In a "modern" dev environment, the code would look like this:
(the previous card must have had a "FOR J = 1 to something" line)
407 M(1,J) = M(2,2*J-1)
410 NEXT J
420 FOR J = 1 TO 100
425 T(2,J) = 0
426 S(2,J) = 0
427 M(2,J) = 0
Yeah, I am a geek, but it ended up turning into a fairly well-paying gig...
Good job Tony. Yes it is doing some sort of initialization.
|
|
|