* Need Help with reading PDP-11 (DEC) binary files w/ Visual
@ 1995-11-03 5:00 Steve Lutes
1995-11-04 5:00 ` Rob W. Smetana
1995-11-04 5:00 ` John M. Miano
0 siblings, 2 replies; 5+ messages in thread
From: Steve Lutes @ 1995-11-03 5:00 UTC (permalink / raw)
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?
Thank you very much!
Steve Lutes
Center for Balance Disorders NA315
Department of Otorhinolaryngology
Baylor College of Medicine
One Baylor Plaza
Houston, TX 77030
Voice: 713-798-6336
Fax: 713-798-8658
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Need Help with reading PDP-11 (DEC) binary files w/ Visual 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 1 sibling, 0 replies; 5+ messages in thread From: Rob W. Smetana @ 1995-11-04 5:00 UTC (permalink / raw) >I'm trying to read a PDP-11 binary file using Visual Basic in Excel >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? > Have you determined what format they're stored in???? You might want to visit a Simtel/Garbo side (binedit, dbase, or database directories) and grab a copy of PDT (Pro~Formance Data Tool). Look for PDT_32.Zip (or later). PDT lets you view/edit any file -- up to 2 gigabytes. And you can "point" at fields and "define" their TYPE: integer, long, BCD, char., IEEE single/double, MS single/double, Binary, etc. Once you "define" fields, PDT lets you view/edit them in **normal decimal form!** (PDT saves edited fields back to disk in their native format). And once you define fields and save a file's "structure" to a file, PDT will **automatically** format your view of it whenever you open that file. PDT is ideal for viewing, editing, exploring, figuring out, merging, etc. files which other programs can't touch. It even lets you view/edit EBCDIC files downloaded from IBM mainframes. PDT may give you some clues as to why Excel can't handle it::: Microsoft switched from MS-coded to IEEE-coded numerics a few years back. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Need Help with reading PDP-11 (DEC) binary files w/ Visual 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 1 sibling, 1 reply; 5+ messages in thread From: John M. Miano @ 1995-11-04 5:00 UTC (permalink / raw) 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 ------------------------------------------------ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Need Help with reading PDP-11 (DEC) binary files w/ Visual 1995-11-04 5:00 ` John M. Miano @ 1995-11-06 5:00 ` Ron Natalie 1995-11-07 5:00 ` Rod Lilak 0 siblings, 1 reply; 5+ messages in thread From: Ron Natalie @ 1995-11-06 5:00 UTC (permalink / raw) 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Need Help with reading PDP-11 (DEC) binary files w/ Visual 1995-11-06 5:00 ` Ron Natalie @ 1995-11-07 5:00 ` Rod Lilak 0 siblings, 0 replies; 5+ messages in thread From: Rod Lilak @ 1995-11-07 5:00 UTC (permalink / raw) 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 ! ---------------------------------------------------------------- ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1995-11-07 5:00 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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 is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox