home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.sys.apple2      Discussion about Apple II micros      56,720 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 55,148 of 56,720   
   Enrico to All   
   Re: 6502bench SourceGen disassembler upd   
   15 Nov 21 05:16:24   
   
   From: erolfi@gmail.com   
      
   When generating a SourceGen project using the OMF File Viewer there's an   
   option to "Offset segment start by $0100". I thought that it was a good idea   
   at first, but in the end I decided that I wanted to revert back to a zero   
   offset situation, because I    
   was going crazy while comparing SourceGen code with GsBug listings.   
   Unfortunately this isn't possible in SourceGen, therefore I figured out a way   
   to convert the project to a zero offset situation. Manually.   
   I hope that the procedure is correct.  Everything seems to be working fine, so   
   far. So I decided to post it here in case anyone needs it or wants to point   
   out any error in my procedure.   
      
      
   Conversion from $0100 relocated disassembly to $000 offset:   
      
   - Open the OMF File Viewer again and generate another project from the same   
   program, but without the relocation offset option checked. Then, replace the   
   .ld file from the original project with the .ld file from the new project   
       
   - Manually change the .dis65 file from the original project:   
      
   1. Replace the "FileDataCrc32" from the original .dis65 file with the Crc from   
   the new .dis65 file   
      
   2. Replace the whole "AddressMap" section from the original .dis65 file with   
   the same section taken from the new project    
      
   3. In the "UserLabels" section of the original project, change all of the   
   "Value:" tags by subtracting 256 to their original value   
    (I created an Excel sheet just for doing that!)   
      
   4. Replace the whole "RelocList" section from the original file with the same   
   section taken from the new .dis65 file   
      
   5. Modify any relevant Text description at the beginning of code blocks (Well,   
   actually this can be done in the SourceGen app, too)   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca