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: 1164f8,3fc781faf7dda498 X-Google-Attributes: gid1164f8,public X-Google-Thread: 110e3b,3fc781faf7dda498 X-Google-Attributes: gid110e3b,public From: visualware@interramp.com (John M. Miano) Subject: Re: Need Help with reading PDP-11 (DEC) binary files w/ Visual Date: 1995/11/04 Message-ID: <47g4od$7e7@usenet1.interramp.com>#1/1 X-Deja-AN: 118651772 references: <47e1qe$jm7@gazette.bcm.tmc.edu> organization: VisualWare, Inc. newsgroups: comp.sys.dec,comp.sys.mac.programmer.help,comp.lang.basic.misc,comp.lang.basic.visual.misc In article <47e1qe$jm7@gazette.bcm.tmc.edu>, slutes@bcm.tmc.edu (Steve Lutes) says: > >I'm trying to read a PDP-11 binary file using Visual Basic in Excel 5.0 >on a Power PC 8500. I can read strings and integers fine, but long >integers and floating point numbers go haywire. Can someone tell me >what to do? For Integers it's not too hard On the PC long integers bytes are stored 3 2 1 0 If I remember correctly PDPs often stored as: 1 0 3 2 Note that this is not a big/little endian shift. A 68000 would store the bytes 0 1 2 3 For floating point you have some hard work ahead of you. The PDP does not use a standard floating point format. You are going to need to get a copy of the PDP architecture manual (The bit layout is really screwy.) and move the bits around yourself. John ------------------------------------------------------------ OVERTHROW THE AMERICAN LEGAL SYSTEM -- DON'T SERVE ON JURIES Use any excuse to get out. Tell them you advocate violent overthrow of the government...whatever it takes. If we can stop them from getting jurors then we can do to the lawyers what they've been doing to us. The American Legal System: Of the lawyers, by the lawyers, for the lawyers ------------------------------------------------