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,149 of 56,720    |
|    fadden to ero...@gmail.com    |
|    Re: 6502bench SourceGen disassembler upd    |
|    15 Nov 21 08:32:55    |
   
   From: thefadden@gmail.com   
      
   On Monday, November 15, 2021 at 5:16:26 AM UTC-8, ero...@gmail.com wrote:   
   > 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.   
      
   SourceGen is generating a binary as if the IIgs were loading it into memory,   
   rewriting operands and stripping OMF headers. You can't reliably re-do it   
   without working from the original.   
       
   > 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.   
      
   Seems reasonable. Most of what SourceGen does is anchored by file offset, not   
   address, so things should work out so long as everything ends up in the same   
   place in the file. One note:   
      
   > 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!)   
      
   The Value field is redundant for UserLabels. Simple demonstration: go into a   
   data file, trash a few Value fields, and then edit the project. You'll find   
   that the Values get reset when the file is saved. The labels are associated   
   with a file offset,    
   not an address.   
      
   ("Value" is stored in the project file because the serialization code uses the   
   same function for everything that uses a Symbol. For project symbols, which   
   have addresses and constants, the Value field is relevant.)   
      
   --- 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