Newsgroups: comp.sys.apple2 Path: news.weeg.uiowa.edu!news.uiowa.edu!uunet!nevada.edu!jimi!sknkwrks From: sknkwrks@unlv.edu (Scott Alfter) Subject: Re: Last one...for tonight Message-ID: <1992Aug6.064709.16804@unlv.edu> Sender: news@unlv.edu (News User) Organization: Skunk Works Software Co. References: <1992Aug6.045611.5398@ils.nwu.edu> Date: Thu, 6 Aug 92 06:47:09 GMT Lines: 27 In article <1992Aug6.045611.5398@ils.nwu.edu> chauhan@aristotle.ils.nwu.edu (Amrit Chauhan) writes: >I'm back...I need to know where and how I can decompile a BIN file in 6502 >mode...everything I've tried keeps doing it in 65816 mode and I get all sorts >of garbage...heck, if you know how to do it in the monitor, that would help! If you're using a GS, I don't know what would work...if you're on an 8-bit machine, though, and want to dump a Monitor disassembly to disk, you can do something like this (in BASIC): 10 D$=CHR$(4) 20 PRINT D$;"OPEN DISASSEMBLY" 30 PRINT D$;"WRITE DISASSEMBLY" 40 S$="0300LLLL D9C6G" 50 FOR I=1 TO LEN(S$) 60 POKE 511+I,ASC(MID$(S$,I,1))+128 70 NEXT I 80 POKE 72,0 90 CALL -144 100 PRINT D$;"CLOSE DISASSEMBLY" This'll dump 80 lines of disassembled code from page 3; change the address as desired. _/_ Scott Alfter Internet: sknkwrks@cs.unlv.edu / v \ Call the Skunk Works BBS today! Fidonet: 1:209/765 (IIe ( TEMPORARILY OFFLINE Apple II/IBM GEnie: S.ALFTER \_^_/ Ask me about SoftDAC--digital audio for your IIe/IIc! Apple II Forever!