Implement more of 6811.

This commit is contained in:
Jeff Tranter 2015-06-18 23:18:48 -04:00
parent 0f7cbf2f5d
commit 2e30dabe8f

39
6811.py
View File

@ -121,7 +121,44 @@ opcodeTable = {
0x1f : [ 4, "brclr", "indexedx3", ],
0x181f : [ 5, "brclr", "indexedy3", ],
0x21 : [ 2, "brn", "relative", pcr ],
0x12 : [ 4, "brset", "direct3", ],
0x1e : [ 4, "brset", "indexedx3", ],
0x181e : [ 5, "brset", "indexedy3", ],
0x14 : [ 3, "bset", "direct2", ],
0x1c : [ 3, "bset", "indexedx2", ],
0x181c : [ 4, "bset", "indexedy2", ],
0x8d : [ 2, "bsr", "relative", pcr ],
0x28 : [ 2, "bvc", "relative", pcr ],
0x29 : [ 2, "bvs", "relative", pcr ],
0x11 : [ 1, "cba", "inherent" ],
0x0c : [ 1, "clc", "inherent" ],
0x0e : [ 1, "cli", "inherent" ],
0x7f : [ 3, "clr", "extended" ],
0x6f : [ 2, "clr", "indexedx" ],
0x187f : [ 3, "clr", "indexedy" ],
0x4f : [ 1, "clra", "inherent" ],
0x5f : [ 1, "clrb", "inherent" ],
0x0a : [ 1, "clv", "inherent" ],
0x81 : [ 2, "cmpa", "immediate" ],
0x91 : [ 2, "cmpa", "direct" ],
0xb1 : [ 3, "cmpa", "extended" ],
0xa1 : [ 2, "cmpa", "indexedx" ],
0x18a1 : [ 3, "cmpa", "indexedy" ],
0xc1 : [ 2, "cmpb", "immediate" ],
0xd1 : [ 2, "cmpb", "direct" ],
0xf1 : [ 3, "cmpb", "extended" ],
0xe1 : [ 2, "cmpb", "indexedx" ],
0x18e1 : [ 3, "cmpb", "indexedy" ],
0x73 : [ 3, "com", "extended" ],
0x63 : [ 2, "com", "indexedx" ],
0x1863 : [ 3, "com", "indexedy" ],
0x43 : [ 1, "coma", "inherent" ],
0x53 : [ 1, "comb", "inherent" ],
0x1a83 : [ 4, "cpd", "immediatex" ],
0x1a93 : [ 3, "cpd", "direct" ],
0x1ab3 : [ 4, "cpd", "extended" ],
0x1aa3 : [ 3, "cpd", "indexedx" ],
0xcda3 : [ 3, "cpd", "indexedy" ],
0x00 : [ 1, "test", "inherent" ],