🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: bit.listserv.asm370
Article #1613

Re: FSREAD

#1613
From: KLASSEN
Date: Wed, 19 Feb 1992 01:45
17 lines
1551 bytes
In article <*> Stelios writes:
>
>I have a program that uses FSREAD to simply read a file. I get the LRECL
>etc. etc. and I allocate a buffer using DMSFREE. So I get
> Buf= 001F36A0 Lrecl = 24.
>which is the address in R1 and the LRECL. This is on a 2M virtual machine.
>Why would FSREAD terminate with return code 2 (invalid buffer address) ?
>In general when does FSREAD consider the buffer address to be invalid?
How did you store the buffer address into the parameter list, e.g.
      DMSFREE DWORDS=3
      LA      R5,0(,R1)                       (purify the high-order bits)
      LA      R6,FSCB                         (address of FSCB)
      FSREAD  FSCB=(R6),BUFFER=(R5),FORM=E    (can't use "R1" as an argument)
      ...
An address is invalid if you're running in 24-bit mode,
**and** the top-bit of the address is non-zero, e.g. X'80022222',
or if the address is greater than the VMSIZE full-word value in NUCON.
Technical Details
Message-ID: <9202190145.AA24437@sol.UVic.CA>
Path: arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!auvm!UVSOL.BITNET!KLASSEN

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcdcb,c70f335bcce26e88
X-Google-Attributes: gidfcdcb,public
X-Google-ArrivalTime: 1992-02-19 03:54:14 PST
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
Path: arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!auvm!UVSOL.BITNET!KLASSEN
Organization: University of Victoria, Victoria, B.C. CANADA
Message-ID: <9202190145.AA24437@sol.UVic.CA>
Newsgroups: bit.listserv.asm370
Date:         Tue, 18 Feb 1992 17:45:14 PST
Sender:       IBM 370 Assembly Programming Discussion List <ASM370@UGA.BITNET>
From:         KLASSEN@UVSOL.BITNET
Subject:      Re: FSREAD