Assembly or ....

News system news at ism780c.isc.com
Sat Dec 10 10:51:21 AEST 1988


In article <707 at ethz.UUCP> pasche at bernina.UUCP (Stephan Paschedag) writes:
>for example : I don't know a high-level language where you have control of
>             the CPU status flags.

The original FORTRAN language had statements like:

      IF SENSE SWITCH(3) 100,200
      if SENSE LIGHT(1)  500,600   (tests a status flag)

The sense swithes were settable by an operator.  The sense lights were
settable (and testable) under program control and were displayed on the
operators console.  Wonder why these statements were dropped in later
FORTRANs :-).  After all FORTRAN 77 still has:

   HALT 22

In the original FORTRAN the number 22 was displayed and the operator could
resume execution by pressing the start switch.  HALT was use primarly as
a debugging tool.

    Marv Rubinstein



More information about the Comp.lang.c mailing list