Make some fixes for 6800.

This commit is contained in:
Jeff Tranter 2018-09-09 13:04:13 -04:00
parent 5346757385
commit 26a09de5ec

57
6800.py
View File

@ -47,7 +47,6 @@ opcodeTable = {
0x10 : [ 1, "sba", "implied" ],
0x11 : [ 1, "cba", "implied" ],
0x14 : [ 1, "nba", "implied" ],
0x16 : [ 1, "tab", "implied" ],
0x17 : [ 1, "tba", "implied" ],
0x19 : [ 1, "daa", "implied" ],
@ -83,7 +82,7 @@ opcodeTable = {
0x3f : [ 1, "swi", "implied" ],
0x40 : [ 1, "nega", "implied" ],
0x43 : [ 1, "com", "implied" ],
0x43 : [ 1, "coma", "implied" ],
0x44 : [ 1, "lsra", "implied" ],
0x46 : [ 1, "rora", "implied" ],
0x47 : [ 1, "asra", "implied" ],
@ -94,7 +93,7 @@ opcodeTable = {
0x4d : [ 1, "tsta", "implied" ],
0x4f : [ 1, "clra", "implied" ],
0x50 : [ 1, "neg", "implied" ],
0x50 : [ 1, "negb", "implied" ],
0x53 : [ 1, "comb", "implied" ],
0x54 : [ 1, "lsrb", "implied" ],
0x56 : [ 1, "rorb", "implied" ],
@ -132,40 +131,40 @@ opcodeTable = {
0x7e : [ 3, "jmp", "extended" ],
0x7f : [ 3, "clr", "extended" ],
0x80 : [ 2, "sub", "immediate" ],
0x81 : [ 2, "cmp", "immediate" ],
0x82 : [ 2, "sbc", "immediate" ],
0x84 : [ 2, "and", "immediate" ],
0x85 : [ 2, "bit", "immediate" ],
0x86 : [ 2, "lda", "immediate" ],
0x88 : [ 2, "eor", "immediate" ],
0x89 : [ 2, "adc", "immediate" ],
0x8a : [ 2, "ora", "immediate" ],
0x8b : [ 2, "add", "immediate" ],
0x80 : [ 2, "suba", "immediate" ],
0x81 : [ 2, "cmpa", "immediate" ],
0x82 : [ 2, "sbca", "immediate" ],
0x84 : [ 2, "anda", "immediate" ],
0x85 : [ 2, "bita", "immediate" ],
0x86 : [ 2, "ldaa", "immediate" ],
0x88 : [ 2, "eora", "immediate" ],
0x89 : [ 2, "adca", "immediate" ],
0x8a : [ 2, "oraa", "immediate" ],
0x8b : [ 2, "adda", "immediate" ],
0x8c : [ 3, "cpx", "immediatex" ],
0x8d : [ 2, "bsr", "relative", pcr ],
0x8e : [ 3, "lds", "immediatex" ],
0x90 : [ 2, "sub", "direct" ],
0x91 : [ 2, "cmp", "direct" ],
0x92 : [ 2, "sbc", "direct" ],
0x94 : [ 2, "and", "direct" ],
0x95 : [ 2, "bit", "direct" ],
0x96 : [ 2, "lda", "direct" ],
0x97 : [ 2, "sta", "direct" ],
0x98 : [ 2, "eor", "direct" ],
0x99 : [ 2, "adc", "direct" ],
0x9a : [ 2, "ora", "direct" ],
0x9b : [ 2, "add", "direct" ],
0x90 : [ 2, "suba", "direct" ],
0x91 : [ 2, "cmpa", "direct" ],
0x92 : [ 2, "sbca", "direct" ],
0x94 : [ 2, "anda", "direct" ],
0x95 : [ 2, "bita", "direct" ],
0x96 : [ 2, "ldaa", "direct" ],
0x97 : [ 2, "staa", "direct" ],
0x98 : [ 2, "eora", "direct" ],
0x99 : [ 2, "adca", "direct" ],
0x9a : [ 2, "oraa", "direct" ],
0x9b : [ 2, "adda", "direct" ],
0x9c : [ 2, "cpx", "direct" ],
0x9e : [ 2, "lds", "direct" ],
0x9f : [ 2, "sts", "direct" ],
0xa0 : [ 2, "sub", "indexed" ],
0xa1 : [ 2, "cmp", "indexed" ],
0xa2 : [ 2, "sbc", "indexed" ],
0xa4 : [ 2, "and", "indexed" ],
0xa5 : [ 2, "bit", "indexed" ],
0xa0 : [ 2, "suba", "indexed" ],
0xa1 : [ 2, "cmpa", "indexed" ],
0xa2 : [ 2, "sbca", "indexed" ],
0xa4 : [ 2, "anda", "indexed" ],
0xa5 : [ 2, "bita", "indexed" ],
0xa6 : [ 2, "ldaa", "indexed" ],
0xa7 : [ 2, "staa", "indexed" ],
0xa8 : [ 2, "eora", "indexed" ],