Path: utzoo!attcan!uunet!husc6!mailrus!uwmcsd1!nic.MR.NET!umn-cs!crayview!imp From: imp@crayview.msi.umn.edu (Chuck Lukaszewski) Newsgroups: comp.sys.mac.programmer Subject: Re: Core Dump Summary: Macsbug 6.0 Message-ID: <6722@umn-cs.cs.umn.edu> Date: 16 Aug 88 21:50:45 GMT References: <136@lloyd.camex.uucp> <6860019@vx2.GBA.NYU.EDU> Sender: news@umn-cs.cs.umn.edu Lines: 45 Macsbug 6.0 also permits dumping to a file. It seems to me that you could also write a given segment of memory off to disk manually so long as the unit table was still intact. You would essentially want to do two calls. You would want to make a control call to the Sony driver to eject the current disk (do this instead of the paper clip as a cross-check that you are able to talk to the sony driver). Put $000003A4 in A0 (address of system parameter block) and store these values: Offset from $3A4 Value ================ ===== $16 $0001 Drive number $18 $FFFB Driver refnum $1A $0007 Eject code Then invoke a control call. If the disk ejects, then you can put a new one in (the disk driver doesn't have to have the thing mounted in order to write to it). Now put these values in following offsets: Offset from $3A4 Value ================ ===== $20 Source Address $24 Count $2C $0001 Absolute positioning $2E $00000000 From sector zero And invoke the write trap This will write the range to the disk starting at sector zero. At this point you can reboot the machine and recover the hex with Fedit or write a small program to read it back (you could use the same idea here but use a read trap and be sure to use _NewPtr or _NewHandle to allocate enough space for a buffer first. You can also use MacZap Tools to disassemble the stuff without taking it off of the disk. Never tried it, but I think it will work. ---===---===---===---===--/* Chuck Lukaszewski */--===---===---===---===--- ARPAnet/NSFnet/MRnet: AppleLink: SnailMail: Ma Bell: imp@crayview.msi.umn.edu UG0138 Minneapolis MN 55418 612/789-0931 ---===---===---===---===--/* Chuck Lukaszewski */--===---===---===---===--- ARPAnet/NSFnet/MRnet: AppleLink: SnailMail: Ma Bell: imp@crayview.msi.umn.edu UG0138 Minneapolis MN 55418 612/789-0931