home *** CD-ROM | disk | FTP | other *** search
- From: medli@hpcuhe.cup.hp.com (Dave Medlicott)
- Date: Wed, 29 Jul 1992 14:54:02 GMT
- Subject: Re: Question on HP1000
- Message-ID: <31480208@hpcuhe.cup.hp.com>
- Organization: Hewlett Packard, Cupertino
- Path: sparky!uunet!darwin.sura.net!mips!sdd.hp.com!hpscdc!cupnews0.cup.hp.com!hppad.waterloo.hp.com!hppad!hpfcso!hpcuhb!hpcuhe!medli
- Newsgroups: comp.sys.hp
- References: <1992Jul29.002337.2465@CSD-NewsHost.Stanford.EDU>
- Lines: 84
-
- > I need some pointers on a HP1000.
- > How does one go about producing a hex dump of a binary program in the
- > system?
-
- From the way you have phrased the question, I can't really tell
- what you are trying to do. However, I'll take my best guess. I assume
- that you have a program that is in memory and that you would like to
- dump a memory image of it to a file. If that is correct, then I don't
- know of any utility to do this. If you want to debug the program,
- you can get the symbolic debugger DEBUG/1000 (part# 92860A). If you
- really want to dump to a file, you can halt the system and use VCP
- to dump from memory to a magtape or to a CTD. However, this will start
- at word 0 of memory and continue for the number of words of memory
- that you specify. Once you have dumped memory to tape, you can copy it
- back to disk using the CO command from CI if it is a magtape, however,
- you will need to use the utility DCOPY if it is a CTD. Once you have
- it on disk, you can use the ACDA dump analyzer to look at the dump.
- Both DCOPY and ACDA are available from INTEREX. Here's the blurb from
- the ACDA help file telling you how to copy from memory to tape:
-
- To dump memory of a crashed system to Magtape perform the following
-
- - Hit Break (if the computer isn't halted already)
- - Copy down all registers (typically A,B,X,Y,RW,P all of Map set 0,2,3
- are the most vital)
- - set RW to 0
- - set M to 0
- !! WARNING !! This is the M contents 0 and not the A register as you
- might think !!!
- - set T to the number of 32K WORD chunks of memory in OCTAL
- (for example, if the CPU contains 512K BYTES of memory, you
- convert to words - 256K WORDS - then divide by 32 yielding
- 8 and convert to octal yielding 10 so set T to 10)
- - set M to 1
- - set T to 0
- - enter the VCP command %WMTnnnn ( where nnnn is the command string
- that would have been used if you had booted from the magtape -
- except that you replace the B with a W, for example
- %WMT27 instead of %BMT27 )
- - the dumped memory will be copied to tape (you typically will
- need a very large tape for most average size memory dumps).
-
- To dump memory of a crashed system to CTD perform the following
-
- - Hit Break (if the computer isn't halted already)
- - Copy down all registers (typically A,B,X,Y,RW,P all of Map set 0,2,3
- are the most vital)
- - set RW to 0
- - set M to 0
- !! WARNING !! This is the M contents 0 and not the A register as you
- might think !!!
- - set T to the number of 32K WORD chunks of memory in OCTAL
- (for example, if the CPU contains 512K BYTES of memory, you
- convert to words - 256K WORDS - then divide by 32 yielding
- 8 and convert to octal yielding 10 so set T to 10)
- - set M to 1
- - set T to 0
- - enter the VCP command %WDCnnnn (where nnnn is the command string that
- would have been used if you had booted from the CTD - except that
- you replace the B with a W, for example,
- %WMT27 instead of %BMT27)
- - the dumped memory will be copied to CTD
- - take the CTD to the system you're running ACDA on and run
- DCOPY to copy the contents of the CTD to file (you can't just do a
- CO or ST command because of the CTD format).
-
- I will issue another warning if dumping to a CTD - be VERY careful about the
- %WDC command. I have seen experienced users write right over their systems
- when they thought they were dumping to a CTD, but they accidentally gave
- the address of the disk.
-
- If you have any other questions, feel free to ask here or to email to me
- directly.
-
- Regards,
-
- Dave
-
- ------------------------------------------------------------------------
- Dave Medlicott | Hewlett-Packard Co.
- MCSY Support | 11000 Wolfe Rd.
- medli@cup.hp.com | MS 42UN
- (408) 447-5288 | Cupertino, CA 95014
- ------------------------------------------------------------------------
-