1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-11-05 06:04:36 +00:00
6502bench/Asm65
Andy McFadden b43fd07688 Split 2002x-operand-formats test
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.
2020-06-08 17:47:26 -07:00
..
Properties
Address.cs
Asm65.csproj
CharEncoding.cs
CpuDef.cs Fix display of instruction attributes 2019-10-22 10:48:02 -07:00
Formatter.cs Split 2002x-operand-formats test 2020-06-08 17:47:26 -07:00
Helper.cs
Label.cs Label rework, part 1 2019-11-08 21:02:15 -08:00
Number.cs Add file slicer tool 2019-12-29 17:59:35 -08:00
OpDef.cs Show "idx" for indexed accesses in References window 2020-05-02 14:09:53 -07:00
OpDescription.cs Clarify BRK explanation 2019-10-29 10:18:48 -07:00
OpName.cs
StatusFlags.cs
StringOpFormatter.cs
TriState16.cs