[Simh] Fwd: HP2100 Fortran problem

Carl Lowenstein carl.lowenstein at gmail.com
Thu May 17 12:39:10 EDT 2007


oops.

---------- Forwarded message ----------
From: J. David Bryan <jdbryan at acm.org>
Date: May 17, 2007 9:28 AM
Subject: Re: [Simh] HP2100 Fortran problem
To: Carl Lowenstein <carl.lowenstein at gmail.com>


Carl,

    Did you mean to send this to the list or to me privately?


On 17 May 2007 at 9:08, Carl Lowenstein wrote:

> If this Fortran is anything like the classic stuff that I learned on
> in the early 1960's, the only valid characters in the first column of
> printer output were blank, 0, 1.

On HP systems, carriage control (the first character) was implemented by
the line printer driver.  Most, if not all, drivers interpreted anything
other than 0 (double space), 1 (top of form), and * (suppress line feed) as
a blank (single space).  So the OP should have seen "IAO" on the printer.


> But my instinctive reaction is:
> 99     FORMAT(1H ,4HCIAO)

Or "FORMAT(5H CIAO)".


> Somewhat later Fortran had an X specification to indicate blank
> output, so you could have
> 99     FORMAT(X,4HCIAO)

Indeed.

                                      -- Dave



-- 
    carl lowenstein         marine physical lab     u.c. san diego
                                                 clowenstein at ucsd.edu



More information about the Simh mailing list