fachat / a65k

Assembler for 6502 and relatives, esp. the 65k family
GNU General Public License v2.0
6 stars 0 forks source link

Feature: parse hex address and data from printer output before label/opcode #9

Open fachat opened 7 years ago

fachat commented 7 years ago

e.g. F42C 8D 00 D6 STA UART+DLL

fachat commented 7 years ago

How to distinguish between a label "F42C" and the hex address value "F42C"? Define that if this switch is set, there must be a hex address before anything that could be interpreted as a label or operation?

fachat commented 7 years ago

Example with label: F056 AD 02 D6 CHECKINT LDA UART+IIR

fachat commented 7 years ago

There may still be ambiguities if two-char labels are used that could be interpreted as hex byte values. In principle we could only decide after pass1 when we know whether the operation is one, two or three bytes. It probably is a guessing game...

fachat commented 7 years ago

Maybe use a positional filter, like all above column X is label, before is hex data?