From 474d9bb318bee21ac52e23a53cd4ec4f7a18f965 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Fri, 25 Mar 2011 19:02:52 -0700 Subject: [opcodes] fixed up instruction table --- parse-opcodes | 404 ++++++++++++++++++++++++++++------------------------------ 1 file changed, 197 insertions(+), 207 deletions(-) (limited to 'parse-opcodes') diff --git a/parse-opcodes b/parse-opcodes index ad07965..78ff655 100755 --- a/parse-opcodes +++ b/parse-opcodes @@ -42,12 +42,18 @@ typelut[0x2F] = 4 typelut[0x77] = 4 typelut[0x07] = 3 typelut[0x27] = 10 -typelut[0x53] = 4 -typelut[0x43] = 5 -typelut[0x47] = 5 -typelut[0x4B] = 5 -typelut[0x4F] = 5 +typelut[0x53] = 9 +typelut[0x43] = 8 +typelut[0x47] = 8 +typelut[0x4B] = 8 +typelut[0x4F] = 8 typelut[0x7B] = 4 +typelut[0x2B] = 4 + +opcode_base = 0 +opcode_size = 7 +funct_base = 7 +funct_size = 3 def binary(n, digits=0): rep = bin(n)[2:] @@ -61,11 +67,6 @@ def make_disasm_table(match,mask): print '#define MASK_%s %s' % (name2, hex(mask[name])) def make_switch(match,mask): - opcode_base = 0 - opcode_size = 7 - funct_base = 7 - funct_size = 3 - opcode_mask = ((1<<(opcode_base+opcode_size))-(1<