1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-05-31 22:41:37 +00:00

Update 64tass code gen

64tass v1.55.2176 added a missing undocumented op, so we can remove
the workaround unless we're configured for an older version.
This commit is contained in:
Andy McFadden 2021-08-09 14:26:25 -07:00
parent 478afa542e
commit 3a02132694
5 changed files with 14 additions and 8 deletions

View File

@ -127,6 +127,8 @@ namespace SourceGen.AsmGen {
// Version we're coded against.
private static CommonUtil.Version V1_53 = new CommonUtil.Version(1, 53, 1515);
private static CommonUtil.Version V1_54 = new CommonUtil.Version(1, 54, 1900);
private static CommonUtil.Version V1_55 = new CommonUtil.Version(1, 55, 2176);
private static CommonUtil.Version V1_56 = new CommonUtil.Version(1, 56, 2625);
// Pseudo-op string constants.
@ -410,11 +412,15 @@ namespace SourceGen.AsmGen {
return null;
} else if (op == OpDef.OpSHA_DPIndIndexY) {
// not recognized ($93)
return null;
if (mAsmVersion < V1_55) {
return null;
}
}
}
if (op == OpDef.OpWDM_WDM) {
// 64tass v1.54 doesn't like this to have an operand. Output as hex.
// 64tass v1.53 doesn't know what this is.
// 64tass v1.55 doesn't like this to have an operand.
// Output as hex.
return null;
}
return string.Empty; // indicate original is fine

View File

@ -166,15 +166,15 @@ code, but also needs to know how to handle the corner cases.</p>
<h3><a name="64tass">64tass</a></h3>
<p>Tested versions: v1.53.1515, v1.54.1900, v1.56.2625
<p>Tested versions: v1.53.1515, v1.54.1900, v1.55.2176, v1.56.2625
<a href="https://sourceforge.net/projects/tass64/">[web site]</a></p>
<p>Bugs:</p>
<ul>
<li>[Fixed in v1.54.2176?]
<li>[Fixed in v1.55.2176]
Undocumented opcode <code>SHA (ZP),Y</code> ($93) is not supported;
the assembler appears to be expecting <code>SHA ABS,X</code> instead.</li>
<li>[Fixed in v1.54.2176?] WDM is not supported.</li>
<li>[Fixed in v1.55.2176] WDM is not supported.</li>
</ul>
<p>Quirks:</p>

View File

@ -182,7 +182,7 @@ L1124 rra ($ff),y
_L1166 sta ($ff),y
.byte $92
L1169 .byte $93,$ff
L1169 sha ($ff),y
sty $ff,x
sta $ff,x
stx $ff,y

View File

@ -182,7 +182,7 @@ L1124 rra ($00),y
_L1166 sta ($00),y
.byte $92
L1169 .byte $93,$00
L1169 sha ($00),y
sty $00,x
sta $00,x
stx $00,y

View File

@ -182,7 +182,7 @@ L1124 rra (L0080),y
_L1166 sta (L0080),y
.byte $92
L1169 .byte $93,$80
L1169 sha (L0080),y
sty L0080,x
sta L0080,x
stx L0080,y