mirror of
https://github.com/fadden/6502bench.git
synced 2024-11-11 14:05:12 +00:00
b43fd07688
My original goal was to add a sign-extended decimal format, but that turned out to be awkward. It works for data items and instructions with immediate operands (e.g. "LDA #-1"), but is either wrong or useless for address operands, since most assemblers treat integers as 32-bit values. (LDA -1 is not LDA $FFFF, it's LDA $FFFFFFFF, which is not useful unless your asm is doing an implicit mod.) There's also a bit of variability in how assemblers treat negative values, so I'm shelving the idea for now. I'm keeping the updated tests, which are now split into 6502 / 65816 parts. Also, updated the formatter to output all decimal values as unsigned. Most assemblers were fine with negative values, but 64tass .dword insists on positive. Rather than make the opcode conditional on the value's range, we now just always output unsigned decimal, which all current assemblers accept.
488 lines
6.9 KiB
Plaintext
488 lines
6.9 KiB
Plaintext
### 6502bench SourceGen dis65 v1.0 ###
|
|
{
|
|
"_ContentVersion":3,
|
|
"FileDataLength":165,
|
|
"FileDataCrc32":-689690654,
|
|
"ProjectProps":{
|
|
"CpuName":"6502",
|
|
"IncludeUndocumentedInstr":false,
|
|
"TwoByteBrk":false,
|
|
"EntryFlags":32702671,
|
|
"AutoLabelStyle":"Simple",
|
|
"AnalysisParams":{
|
|
"AnalyzeUncategorizedData":true,
|
|
"DefaultTextScanMode":"LowHighAscii",
|
|
"MinCharsForString":4,
|
|
"SeekNearbyTargets":true,
|
|
"SmartPlpHandling":true},
|
|
|
|
"PlatformSymbolFileIdentifiers":[],
|
|
"ExtensionScriptFileIdentifiers":[],
|
|
"ProjectSyms":{
|
|
}},
|
|
|
|
"AddressMap":[{
|
|
"Offset":0,
|
|
"Addr":4096}],
|
|
"TypeHints":[{
|
|
"Low":0,
|
|
"High":0,
|
|
"Hint":"Code"}],
|
|
"StatusFlagOverrides":{
|
|
},
|
|
|
|
"Comments":{
|
|
},
|
|
|
|
"LongComments":{
|
|
"-2147483647":{
|
|
"Text":"Project file was edited to force ASCII formatting for some operands.",
|
|
"BoxMode":false,
|
|
"MaxWidth":80,
|
|
"BackgroundColor":0}},
|
|
|
|
"Notes":{
|
|
},
|
|
|
|
"UserLabels":{
|
|
"129":{
|
|
"Label":"more_ascii",
|
|
"Value":4225,
|
|
"Source":"User",
|
|
"Type":"GlobalAddr",
|
|
"LabelAnno":"None"},
|
|
|
|
"93":{
|
|
"Label":"skipdata",
|
|
"Value":4189,
|
|
"Source":"User",
|
|
"Type":"GlobalAddr",
|
|
"LabelAnno":"None"}},
|
|
|
|
"OperandFormats":{
|
|
"10":{
|
|
"Length":2,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Decimal",
|
|
"SymbolRef":null},
|
|
|
|
"12":{
|
|
"Length":3,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Decimal",
|
|
"SymbolRef":null},
|
|
|
|
"15":{
|
|
"Length":2,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Decimal",
|
|
"SymbolRef":null},
|
|
|
|
"17":{
|
|
"Length":3,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Decimal",
|
|
"SymbolRef":null},
|
|
|
|
"20":{
|
|
"Length":2,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Decimal",
|
|
"SymbolRef":null},
|
|
|
|
"22":{
|
|
"Length":3,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Decimal",
|
|
"SymbolRef":null},
|
|
|
|
"25":{
|
|
"Length":2,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Decimal",
|
|
"SymbolRef":null},
|
|
|
|
"27":{
|
|
"Length":3,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Decimal",
|
|
"SymbolRef":null},
|
|
|
|
"30":{
|
|
"Length":2,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Binary",
|
|
"SymbolRef":null},
|
|
|
|
"32":{
|
|
"Length":3,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Binary",
|
|
"SymbolRef":null},
|
|
|
|
"35":{
|
|
"Length":2,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Binary",
|
|
"SymbolRef":null},
|
|
|
|
"37":{
|
|
"Length":3,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Binary",
|
|
"SymbolRef":null},
|
|
|
|
"43":{
|
|
"Length":1,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Hex",
|
|
"SymbolRef":null},
|
|
|
|
"44":{
|
|
"Length":2,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Hex",
|
|
"SymbolRef":null},
|
|
|
|
"46":{
|
|
"Length":3,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Hex",
|
|
"SymbolRef":null},
|
|
|
|
"49":{
|
|
"Length":4,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Hex",
|
|
"SymbolRef":null},
|
|
|
|
"53":{
|
|
"Length":1,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Decimal",
|
|
"SymbolRef":null},
|
|
|
|
"54":{
|
|
"Length":2,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Decimal",
|
|
"SymbolRef":null},
|
|
|
|
"56":{
|
|
"Length":3,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Decimal",
|
|
"SymbolRef":null},
|
|
|
|
"59":{
|
|
"Length":4,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Decimal",
|
|
"SymbolRef":null},
|
|
|
|
"63":{
|
|
"Length":1,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Decimal",
|
|
"SymbolRef":null},
|
|
|
|
"64":{
|
|
"Length":2,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Decimal",
|
|
"SymbolRef":null},
|
|
|
|
"66":{
|
|
"Length":3,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Decimal",
|
|
"SymbolRef":null},
|
|
|
|
"69":{
|
|
"Length":4,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Decimal",
|
|
"SymbolRef":null},
|
|
|
|
"73":{
|
|
"Length":1,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Binary",
|
|
"SymbolRef":null},
|
|
|
|
"74":{
|
|
"Length":2,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Binary",
|
|
"SymbolRef":null},
|
|
|
|
"76":{
|
|
"Length":3,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Binary",
|
|
"SymbolRef":null},
|
|
|
|
"79":{
|
|
"Length":4,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Binary",
|
|
"SymbolRef":null},
|
|
|
|
"83":{
|
|
"Length":1,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Decimal",
|
|
"SymbolRef":null},
|
|
|
|
"84":{
|
|
"Length":2,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Decimal",
|
|
"SymbolRef":null},
|
|
|
|
"86":{
|
|
"Length":3,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Decimal",
|
|
"SymbolRef":null},
|
|
|
|
"89":{
|
|
"Length":4,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Decimal",
|
|
"SymbolRef":null},
|
|
|
|
"93":{
|
|
"Length":2,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Ascii",
|
|
"SymbolRef":null},
|
|
|
|
"95":{
|
|
"Length":2,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Ascii",
|
|
"SymbolRef":null},
|
|
|
|
"97":{
|
|
"Length":3,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Ascii",
|
|
"SymbolRef":null},
|
|
|
|
"100":{
|
|
"Length":2,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Ascii",
|
|
"SymbolRef":null},
|
|
|
|
"102":{
|
|
"Length":2,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Ascii",
|
|
"SymbolRef":null},
|
|
|
|
"104":{
|
|
"Length":2,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Ascii",
|
|
"SymbolRef":null},
|
|
|
|
"106":{
|
|
"Length":2,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Ascii",
|
|
"SymbolRef":null},
|
|
|
|
"108":{
|
|
"Length":2,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Ascii",
|
|
"SymbolRef":null},
|
|
|
|
"110":{
|
|
"Length":2,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Ascii",
|
|
"SymbolRef":null},
|
|
|
|
"112":{
|
|
"Length":2,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Ascii",
|
|
"SymbolRef":null},
|
|
|
|
"114":{
|
|
"Length":2,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Ascii",
|
|
"SymbolRef":null},
|
|
|
|
"116":{
|
|
"Length":2,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"HighAscii",
|
|
"SymbolRef":null},
|
|
|
|
"118":{
|
|
"Length":2,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"HighAscii",
|
|
"SymbolRef":null},
|
|
|
|
"120":{
|
|
"Length":2,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"HighAscii",
|
|
"SymbolRef":null},
|
|
|
|
"122":{
|
|
"Length":2,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"HighAscii",
|
|
"SymbolRef":null},
|
|
|
|
"124":{
|
|
"Length":2,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"HighAscii",
|
|
"SymbolRef":null},
|
|
|
|
"129":{
|
|
"Length":1,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Ascii",
|
|
"SymbolRef":null},
|
|
|
|
"131":{
|
|
"Length":2,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Hex",
|
|
"SymbolRef":null},
|
|
|
|
"134":{
|
|
"Length":2,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Address",
|
|
"SymbolRef":null},
|
|
|
|
"136":{
|
|
"Length":3,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Address",
|
|
"SymbolRef":null},
|
|
|
|
"139":{
|
|
"Length":2,
|
|
"Format":"NumericBE",
|
|
"SubFormat":"Address",
|
|
"SymbolRef":null},
|
|
|
|
"141":{
|
|
"Length":1,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Symbol",
|
|
"SymbolRef":{
|
|
"Label":"more_ascii",
|
|
"Part":"Low"}},
|
|
|
|
"142":{
|
|
"Length":1,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Symbol",
|
|
"SymbolRef":{
|
|
"Label":"more_ascii",
|
|
"Part":"High"}},
|
|
|
|
"143":{
|
|
"Length":2,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Address",
|
|
"SymbolRef":null},
|
|
|
|
"145":{
|
|
"Length":3,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Address",
|
|
"SymbolRef":null},
|
|
|
|
"148":{
|
|
"Length":4,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Address",
|
|
"SymbolRef":null},
|
|
|
|
"152":{
|
|
"Length":2,
|
|
"Format":"NumericBE",
|
|
"SubFormat":"Address",
|
|
"SymbolRef":null},
|
|
|
|
"154":{
|
|
"Length":1,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Ascii",
|
|
"SymbolRef":null},
|
|
|
|
"155":{
|
|
"Length":1,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Ascii",
|
|
"SymbolRef":null},
|
|
|
|
"156":{
|
|
"Length":1,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Ascii",
|
|
"SymbolRef":null},
|
|
|
|
"157":{
|
|
"Length":1,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Ascii",
|
|
"SymbolRef":null},
|
|
|
|
"158":{
|
|
"Length":1,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Ascii",
|
|
"SymbolRef":null},
|
|
|
|
"159":{
|
|
"Length":1,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"HighAscii",
|
|
"SymbolRef":null},
|
|
|
|
"160":{
|
|
"Length":1,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"HighAscii",
|
|
"SymbolRef":null},
|
|
|
|
"161":{
|
|
"Length":1,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"HighAscii",
|
|
"SymbolRef":null},
|
|
|
|
"162":{
|
|
"Length":1,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"HighAscii",
|
|
"SymbolRef":null},
|
|
|
|
"163":{
|
|
"Length":1,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"HighAscii",
|
|
"SymbolRef":null}},
|
|
|
|
"LvTables":{
|
|
},
|
|
|
|
"Visualizations":[],
|
|
"VisualizationAnimations":[],
|
|
"VisualizationSets":{
|
|
}}
|