From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10c949,3fc781faf7dda498 X-Google-Attributes: gid10c949,public X-Google-Thread: 101ec9,3fc781faf7dda498 X-Google-Attributes: gid101ec9,public X-Google-Thread: 110e3b,3fc781faf7dda498 X-Google-Attributes: gid110e3b,public X-Google-Thread: 1164f8,3fc781faf7dda498 X-Google-Attributes: gid1164f8,public From: rkl@mooseware.com (Rod Lilak) Subject: Re: Need Help with reading PDP-11 (DEC) binary files w/ Visual Date: 1995/11/07 Message-ID: <47nv70$rmr@natasha.rmii.com>#1/1 X-Deja-AN: 118855251 references: <47e1qe$jm7@gazette.bcm.tmc.edu> <47g4od$7e7@usenet1.interramp.com> <47lcaj$rbq@topaz.sensor.com> organization: MooseWare Inc. newsgroups: comp.sys.dec,comp.sys.mac.programmer.help,comp.lang.basic.misc,comp.lang.basic.visual.misc 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 ! ----------------------------------------------------------------