mirror of
https://github.com/fadden/6502bench.git
synced 2024-08-17 07:29:01 +00:00
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.
142 lines
2.1 KiB
Plaintext
142 lines
2.1 KiB
Plaintext
### 6502bench SourceGen dis65 v1.0 ###
|
|
{
|
|
"_ContentVersion":3,
|
|
"FileDataLength":62,
|
|
"FileDataCrc32":946946401,
|
|
"ProjectProps":{
|
|
"CpuName":"65816",
|
|
"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":{
|
|
},
|
|
|
|
"OperandFormats":{
|
|
"7":{
|
|
"Length":3,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Decimal",
|
|
"SymbolRef":null},
|
|
|
|
"10":{
|
|
"Length":3,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Decimal",
|
|
"SymbolRef":null},
|
|
|
|
"13":{
|
|
"Length":3,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Binary",
|
|
"SymbolRef":null},
|
|
|
|
"19":{
|
|
"Length":3,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Decimal",
|
|
"SymbolRef":null},
|
|
|
|
"22":{
|
|
"Length":3,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Decimal",
|
|
"SymbolRef":null},
|
|
|
|
"25":{
|
|
"Length":3,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Binary",
|
|
"SymbolRef":null},
|
|
|
|
"32":{
|
|
"Length":4,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Decimal",
|
|
"SymbolRef":null},
|
|
|
|
"36":{
|
|
"Length":4,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Decimal",
|
|
"SymbolRef":null},
|
|
|
|
"40":{
|
|
"Length":4,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Binary",
|
|
"SymbolRef":null},
|
|
|
|
"44":{
|
|
"Length":3,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Ascii",
|
|
"SymbolRef":null},
|
|
|
|
"47":{
|
|
"Length":3,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"HighAscii",
|
|
"SymbolRef":null},
|
|
|
|
"50":{
|
|
"Length":3,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Ascii",
|
|
"SymbolRef":null},
|
|
|
|
"53":{
|
|
"Length":4,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"Ascii",
|
|
"SymbolRef":null},
|
|
|
|
"57":{
|
|
"Length":4,
|
|
"Format":"NumericLE",
|
|
"SubFormat":"HighAscii",
|
|
"SymbolRef":null}},
|
|
|
|
"LvTables":{
|
|
},
|
|
|
|
"Visualizations":[],
|
|
"VisualizationAnimations":[],
|
|
"VisualizationSets":{
|
|
}}
|