mirror of
https://github.com/fadden/6502bench.git
synced 2026-04-27 03:17:45 +00:00
SourceGen puts a lot of effort into connecting address operands to internal offsets and external symbols. Sometimes this is undesirable. For example, a BIT or conditional branch instruction is sometimes used as a dummy when there are multiple entry points that vary only in a status flag or register value. The address in the BIT or branch is either irrelevant or never actually referenced, so auto-generating a label for it is annoying. Having a way to tell the disassembler to disregard an address operand, so that it won't generate an auto-label or be included in the list of cross-references, provides a simple solution to this. The operand's file offset is determined during the code analysis pass. Setting it to -1 makes the operand look like an external address. If we disable the project/platform symbol lookup for that instruction as well, we can avoid label generation and cross-references. We also need to prevent the 65816 data bank fixup code from restoring it, and the relocation data code from doing its thing. The flag is implemented as a new "misc flags" table, which holds a set of bit flags for every file offset. The "disregard operand address" flag is set on the opcode byte of instructions. The flags are expected to be used infrequently, so they're currently output as a list of (offset, integer) pairs. The flag is set in the Edit Instruction Operand dialog, which has a new checkbox. The checkbox is disabled for immediate operands. (issue #174)
This is the project web site, served through GitHub Pages. The URL https://6502bench.com/ is mapped here. Any change checked in to this part of the tree is (almost) immediately visible on the web.
Many of the pages share common elements: masthead, top nav bar, side nav bar, and footer. These are inserted by a Python script (block-repl.py) that must be run whenever one of the "-incl" files changes.