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