Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: rkl@mooseware.com (Rod Lilak)
Subject: Re: Need Help with reading PDP-11 (DEC) binary files w/ Visual
Date: 1995/11/07	[thread overview]
Message-ID: <47nv70$rmr@natasha.rmii.com> (raw)
In-Reply-To: 47lcaj$rbq@topaz.sensor.com

In article <47lcaj$rbq@topaz.sensor.com>, ron@topaz.sensor.com (Ron Natalie) says:
>
>John M. Miano (visualware@interramp.com) wrote:
>: If I remember correctly PDPs often stored as:
>
>: 1 0 3 2
>
>Yes, this is a side effect in that the PDP-11's didn't really have
>a 32 bit integral type.  It was LS word first, and LS byte within
>that word.
>
>Oddly enough, the UNIX kernel back in the V6 days didn't even have the
>compiler generating the long int calculations.  Everywhere there was a 32
>bit (or in the case of file lengths, but not offsets, 24 bit) quantity, it
>was stored as two ints and the code to do the math did each half
>individually.
>
>That and casts were not well defined back then.  Anybody remember the
>PS->integ paradigm?
>
>_Ron
>


The PDP floating point form is 3 words long.
As mentioned in previous posts, data is stored LSB first, 
byte addressable.

word 0			word 1	(+2)		word 2 (+4)

low order fraction	high order fraction	exponent.

The exponent is signed, 15 bits.

For a complete description, see Eckhouse, Minicomputer systems (1975)
ISBN   0-13-583906-8


Rod, who cut his programming teeth on the PDP-11, back in those 
wonderful days when computers had lights and switch registers - and
GUI described the potting material that liquified when a power transformer
shorted out. 

----------------------------------------------------------------
Rod Lilak		|  MooseWare Personal Computer Solutions
Voice (719) 685-9174    |  Custom Software for Vertical  Markets
                        |
================================================================
It's not just Software - It's MOOSEWARE !
----------------------------------------------------------------



      reply	other threads:[~1995-11-07  5:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-11-03  5:00 Need Help with reading PDP-11 (DEC) binary files w/ Visual Steve Lutes
1995-11-04  5:00 ` Rob W. Smetana 
1995-11-04  5:00 ` John M. Miano
1995-11-06  5:00   ` Ron Natalie
1995-11-07  5:00     ` Rod Lilak [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox