From 6273d1cdc05eafa1d319fb630488c794e8896e65 Mon Sep 17 00:00:00 2001 From: mrdudz Date: Thu, 20 Nov 2014 02:47:33 +0100 Subject: [PATCH] actually make TAS work :) --- src/ca65/instr.c | 2 +- testcode/assembler/all.s | 2 +- testcode/assembler/illegal.s | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ca65/instr.c b/src/ca65/instr.c index c29ff7446..6acf8c94f 100644 --- a/src/ca65/instr.c +++ b/src/ca65/instr.c @@ -280,7 +280,6 @@ static const struct { { "SED", 0x0000001, 0xf8, 0, PutAll }, { "SEI", 0x0000001, 0x78, 0, PutAll }, { "SHA", 0x0002200, 0x93, 1, PutAll }, /* X */ - { "TAS", 0x0000200, 0x9b, 0, PutAll }, /* X */ { "SHX", 0x0000200, 0x9e, 1, PutAll }, /* X */ { "SHY", 0x0000040, 0x9c, 1, PutAll }, /* X */ { "SLO", 0x000A26C, 0x03, 0, PutAll }, /* X */ @@ -288,6 +287,7 @@ static const struct { { "STA", 0x000A26C, 0x80, 0, PutAll }, { "STX", 0x000010c, 0x82, 1, PutAll }, { "STY", 0x000002c, 0x80, 1, PutAll }, + { "TAS", 0x0000200, 0x9b, 0, PutAll }, /* X */ { "TAX", 0x0000001, 0xaa, 0, PutAll }, { "TAY", 0x0000001, 0xa8, 0, PutAll }, { "TSX", 0x0000001, 0xba, 0, PutAll }, diff --git a/testcode/assembler/all.s b/testcode/assembler/all.s index b1795f99b..2e8f55ec7 100644 --- a/testcode/assembler/all.s +++ b/testcode/assembler/all.s @@ -158,7 +158,7 @@ tya ; 98 sta $1234,y ; 99 34 12 txs ; 9a - shs $1234,y ; 9b 34 12 + tas $1234,y ; 9b 34 12 shy $1234,x ; 9c 34 12 sta $1234,x ; 9d 34 12 shx $1234,y ; 9e 34 12 diff --git a/testcode/assembler/illegal.s b/testcode/assembler/illegal.s index c73e2eba3..b49b88761 100644 --- a/testcode/assembler/illegal.s +++ b/testcode/assembler/illegal.s @@ -125,7 +125,7 @@ shx $1234,y ; 9e 34 12 shy $1234,x ; 9c 34 12 - shs $1234,y ; 9b 34 12 + tas $1234,y ; 9b 34 12 las $1234,y ; bb 34 12 ; the two so-called "highly unstable" ones: -- 2.39.2