DataMuseum.dk

Presents historical artifacts from the history of:

CP/M

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about CP/M

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦0c7e7b69f⟧ TextFile

    Length: 640 (0x280)
    Types: TextFile
    Names: »RNC.SRC«

Derivation

└─⟦c9df7130d⟧ Bits:30005915 Pascal MT+ Release 5.2 (Jet-80)
    └─ ⟦this⟧ »RNC.SRC« 

TextFile

MODULE RDNXCH;

(*$M @RNC*)
(*$M **)

(*$I FIBDEF.LIB*)

VAR
  @LFB:		EXTERNAL ^FIB;

EXTERNAL PROCEDURE GET(VAR F:FIB; SZ:INTEGER);

FUNCTION @RNC:CHAR;
BEGIN
  IF @LFB^.OPTION > FRANDOM THEN  (* DON'T GIVE BUFFER, BUT READ DIRECTLY *)
				  (* IF CONSOLE/TERMINAL FILE		  *)
    BEGIN
      GET(@LFB^,@LFB^.BUFLEN);
      @RNC := @LFB^.FBUFFERÆ0Å
    END
  ELSE
    BEGIN
      @RNC := @LFB^.FBUFFERÆ0Å;		(* @RNC := F^ *)
      GET(@LFB^,@LFB^.BUFLEN);            		(* GET(F)     *)
    END
END;

MODEND.

«eof»