]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Assembler ADDQ/SUBQ.B/.W support, ADDAQ/SUBAQ .W support.
authorToni Wilen <twilen@winuae.net>
Thu, 2 Jan 2020 18:53:18 +0000 (20:53 +0200)
committerToni Wilen <twilen@winuae.net>
Thu, 2 Jan 2020 18:53:18 +0000 (20:53 +0200)
disasm.cpp

index 8055ab062fffafb722153093ae192da1ff6857a4..b69b5448724aeef6f45e76d09d5fe4e716bee50d 100644 (file)
@@ -1251,10 +1251,13 @@ int m68k_asm(TCHAR *sline, uae_u16 *out, uaecptr pc)
        }
 
        bool fp = ins[0] == 'F';
+       int tsize = size;
 
        if (ins[_tcslen(ins) - 1] == 'Q' && _tcslen(ins) > 3 && !fp) {
                quick = 1;
                ins[_tcslen(ins) - 1] = 0;
+               if (inssize < 0)
+                       tsize = 2;
        }
 
        struct mnemolookup *lookup;
@@ -1300,7 +1303,6 @@ int m68k_asm(TCHAR *sline, uae_u16 *out, uaecptr pc)
 
        int found = 0;
        int sizemask = 0;
-       int tsize = size;
        int unsized = 0;
 
        for (int round = 0; round < 9; round++) {
@@ -1309,10 +1311,6 @@ int m68k_asm(TCHAR *sline, uae_u16 *out, uaecptr pc)
                        return 0;
 
                if (round == 3) {
-                       // Q is always LONG sized
-                       if (quick == 1) {
-                               tsize = 2;
-                       }
                        bool isimm = srcea[0] == '#';
                        if (immrelpc && !isimm) {
                                TCHAR tmp[256];