diff --git a/asm_makeinsts/asm_insts.cpp b/asm_makeinsts/asm_insts.cpp deleted file mode 100644 index ba3d4d4..0000000 --- a/asm_makeinsts/asm_insts.cpp +++ /dev/null @@ -1,396 +0,0 @@ -// -//This is generated code - do not modify!!!!! -// - -#include "insts.h" - -const Inst *insts={ -"aaa",0,0,0,"\x37", -"aas",0,0,0,"\x3F", -"aad",0,0,0,"\xD5\x0A", -"0",IMM,0,IB,"\xD5", -"aam",0,0,0,"\xD4\x0A", -"0",IMM,0,IB,"\xD4", -"adc",R_M8,REG8,_R,"\x10", -"0",R_M16,REG16,O16|_R,"\x11", -"0",REG8,R_M8,_R,"\x12", -"0",REG16,R_M16,O16|_R,"\x13", -"0",R_M8,IMM8,_2|IB,"\x80", -"0",R_M16,IMM16,O16|_2|IW,"\x81", -"0",R_M16,IMM8,O16|_2|IB,"\x83", -"0",AL,IMM8,IB,"\x14", -"0",AX,IMM16,O16|IW,"\x15", -"add",R_M8,REG8,_R,"\x00", -"0",R_M16,REG16,O16|_R,"\x01", -"0",REG8,R_M8,_R,"\x02", -"0",REG16,R_M16,O16|_R,"\x03", -"0",R_M8,IMM8,_0|IB,"\x80", -"0",R_M16,IMM16,O16|_0|IW,"\x81", -"0",R_M16,IMM8,O16|_0|IB,"\x83", -"0",AL,IMM8,IB,"\x04", -"0",AX,IMM16,O16|IW,"\x05", -"and",R_M8,REG8,_R,"\x20", -"0",R_M16,REG16,O16|_R,"\x21", -"0",REG8,R_M8,_R,"\x22", -"0",REG16,R_M16,O16|_R,"\x23", -"0",R_M8,IMM8,_4|IB,"\x80", -"0",R_M16,IMM16,O16|_4|IW,"\x81", -"0",R_M16,IMM8,O16|_4|IB,"\x83", -"0",AL,IMM8,IB,"\x24", -"0",AX,IMM16,O16|IW,"\x25", -"arpl",R_M16,REG16,_R,"\x63", -"bound",REG16,MEM,O16|_R,"\x62", -"bsf",REG16,R_M16,O16|_R,"\x0F\xBC", -"bsr",REG16,R_M16,O16|_R,"\x0F\xBD", -"bt",R_M16,REG16,O16|_R,"\x0F\xA3", -"0",R_M16,IMM8,O16|_4|IB,"\x0F\xBA", -"btc",R_M16,REG16,O16|_R,"\x0F\xBB", -"0",R_M16,IMM8,O16|_7|IB,"\x0F\xBA", -"btr",R_M16,REG16,O16|_R,"\x0F\xB3", -"0",R_M16,IMM8,O16|_6|IB,"\x0F\xBA", -"bts",R_M16,REG16,O16|_R,"\x0F\xAB", -"0",R_M16,IMM,O16|_5|IB,"\x0F\xBA", -"call",IMM,0,0,"\xE8", -"0",R_M16,0,O16|_2,"\xFF", -"cbw",0,0,O16,"\x98", -"cwd",0,0,O16,"\x99", -"clc",0,0,0,"\xF8", -"cld",0,0,0,"\xFC", -"cli",0,0,0,"\xFA", -"clts",0,0,0,"\x0F\x06", -"cmc",0,0,0,"\xF5", -"cmovcc",REG16,R_M16,O16|PLUSCC|_R,"\x0F\x40", -"cmp",R_M8,REG8,_R,"\x38", -"0",R_M16,REG16,O16|_R,"\x39", -"0",REG8,R_M8,_R,"\x3A", -"0",REG16,R_M16,O16|_R,"\x3B", -"0",R_M8,IMM8,_0|IB,"\x80", -"0",R_M16,IMM16,O16|_0|IW,"\x81", -"0",R_M16,IMM8,O16|_0|IB,"\x83", -"0",AL,IMM8,IB,"\x3C", -"0",AX,IMM16,O16|IW,"\x3D", -"cmpsb",0,0,0,"\xA6", -"cmpsw",0,0,O16,"\xA7", -"cmpxchg",R_M8,REG8,_R,"\x0F\xB0", -"0",R_M16,REG16,O16|_R,"\x0F\xB1", -"cmpxchg486",R_M8,REG8,_R,"\x0F\xA6", -"0",R_M16,REG16,O16|_R,"\x0F\xA7", -"cmpxchg8b",MEM,0,_1,"\x0F\xC7", -"cpuid",0,0,0,"\x0F\xA2", -"daa",0,0,0,"\x27", -"das",0,0,0,"\x2F", -"dec",REG16,0,O16|PLUSREG,"\x48", -"0",R_M8,0,_1,"\xFE", -"0",R_M16,0,O16|_1,"\xFF", -"div",R_M8,0,_6,"\xF6", -"0",R_M16,0,O16|_6,"\xF7", -"emms",0,0,0,"\x0F\x77", -"enter",IMM,IMM,IW|IB,"\xC8", -"f2xm1",0,0,0,"\xD9\xF0", -"fabs",0,0,0,"\xD9\xE1", -"fadd",MEM32,0,_0,"\xD8", -"fchs",0,0,0,"\xD9\xE0", -"fclex",0,0,0,"\x9B\xDB\xE2", -"fnclex",0,0,0,"\xDB\xE2", -"fcom",MEM32,0,_2,"\xD8", -"fcomp",MEM32,0,_3,"\xD8", -"fcompp",0,0,0,"\xDE\xD9", -"fcos",0,0,0,"\xD9\xFF", -"fdecstp",0,0,0,"\xD9\xF6", -"fdisi",0,0,0,"\x9B\xDB\xE1", -"fndisi",0,0,0,"\xDB\xE1", -"feni",0,0,0,"\x9B\xDB\xE0", -"fneni",0,0,0,"\xDB\xE0", -"fdiv",MEM32,0,_6,"\xD8", -"fdivr",MEM32,0,_0,"\xD8", -"fiadd",MEM16,0,_0,"\xDE", -"0",MEM32,0,_0,"\xDA", -"ficom",MEM16,0,_2,"\xDE", -"0",MEM32,0,_2,"\xDA", -"ficomp",MEM16,0,_3,"\xDE", -"0",MEM32,0,_3,"\xDA", -"fidiv",MEM16,0,_6,"\xDE", -"0",MEM32,0,_6,"\xDA", -"fidivr",MEM16,0,_0,"\xDE", -"0",MEM32,0,_0,"\xDA", -"fild",MEM16,0,_0,"\xDF", -"0",MEM32,0,_0,"\xDB", -"fist",MEM16,0,_2,"\xDF", -"0",MEM32,0,_2,"\xDB", -"fistp",MEM16,0,_3,"\xDF", -"0",MEM32,0,_3,"\xDB", -"fimul",MEM16,0,_1,"\xDE", -"0",MEM32,0,_1,"\xDA", -"fincstp",0,0,0,"\xD9\xF7", -"finit",0,0,0,"\x9B\xDB\xE3", -"fninit",0,0,0,"\xDB\xE3", -"fisub",MEM16,0,_4,"\xDE", -"0",MEM32,0,_4,"\xDA", -"fisubr",MEM16,0,_5,"\xDE", -"0",MEM32,0,_5,"\xDA", -"fld",MEM32,0,_0,"\xD9", -"fld1",0,0,0,"\xD9\xE8", -"fldl2e",0,0,0,"\xD9\xEA", -"fldl2t",0,0,0,"\xD9\xE9", -"fldlg2",0,0,0,"\xD9\xEC", -"fldln2",0,0,0,"\xD9\xED", -"fldpi",0,0,0,"\xD9\xEB", -"fldz",0,0,0,"\xD9\xEE", -"fldcw",MEM16,0,_5,"\xD9", -"fldenv",MEM,0,_4,"\xD9", -"fmul",MEM32,0,_1,"\xD8", -"fnop",0,0,0,"\xD9\xD0", -"fpatan",0,0,0,"\xD9\xF3", -"fptan",0,0,0,"\xD9\xF2", -"fprem",0,0,0,"\xD9\xF8", -"fprem1",0,0,0,"\xD9\xF5", -"frndint",0,0,0,"\xD9\xFC", -"fsave",MEM,0,_6,"\x9B\xDD", -"fnsave",MEM,0,_6,"\xDD", -"frstor",MEM,0,_4,"\xDD", -"fscale",0,0,0,"\xD9\xFD", -"fsetpm",0,0,0,"\xDB\xE4", -"fsin",0,0,0,"\xD9\xFE", -"fsincos",0,0,0,"\xD9\xFB", -"fsqrt",0,0,0,"\xD9\xFA", -"fst",MEM32,0,_2,"\xD9", -"fstp",MEM32,0,_3,"\xD9", -"fstcw",MEM16,0,_0,"\x9B\xD9", -"fnstcw",MEM16,0,_0,"\xD9", -"fstenv",MEM,0,_6,"\x9B\xD9", -"fnstenv",MEM,0,_6,"\xD9", -"fstsw",MEM16,0,_0,"\x9B\xDD", -"0",AX,0,0,"\x9B\xDF\xE0", -"fnstsw",MEM16,0,_0,"\xDD", -"0",AX,0,0,"\xDF\xE0", -"fsub",MEM32,0,_4,"\xD8", -"fsubr",MEM32,0,_5,"\xD8", -"ftst",0,0,0,"\xD9\xE4", -"fucompp",0,0,0,"\xDA\xE9", -"fxam",0,0,0,"\xD9\xE5", -"fxch",0,0,0,"\xD9\xC9", -"fxtract",0,0,0,"\xD9\xF4", -"fyl2x",0,0,0,"\xD9\xF1", -"fyl2xp1",0,0,0,"\xD9\xF9", -"hlt",0,0,0,"\xF4", -"ibts",R_M16,REG16,O16|_R,"\x0F\xA7", -"idiv",R_M8,0,_7,"\xF6", -"0",R_M16,0,O16|_7,"\xF7", -"imul",R_M8,0,_5,"\xF6", -"0",R_M16,0,O16|_5,"\xF7", -"0",REG16,R_M16,O16|_R,"\x0F\xAF", -"0",REG16,IMM8,O16|_R|IB,"\x6B", -"0",REG16,IMM16,O16|_R|IW,"\x69", -"in",AL,IMM8,IB,"\xE4", -"0",AX,IMM8,O16|IB,"\xE5", -"inc",REG16,0,O16|PLUSREG,"\x40", -"0",R_M8,0,_0,"\xFE", -"0",R_M16,0,O16|_0,"\xFF", -"insb",0,0,0,"\x6C", -"insw",0,0,O16,"\x6D", -"int",IMM8,0,IB,"\xCD", -"int1",0,0,0,"\xF1", -"icebp",0,0,0,"\xF1", -"int01",0,0,0,"\xF1", -"int3",0,0,0,"\xCC", -"into",0,0,0,"\xCE", -"invd",0,0,0,"\x0F\x08", -"invlpg",MEM,0,_0,"\x0F\x01", -"iret",0,0,0,"\xCF", -"iretw",0,0,O16,"\xCF", -"jcxz",IMM,0,O16,"\xE3", -"jmp",IMM,0,0,"\xE9", -"0",R_M16,0,O16|_4,"\xFF", -"jcc",IMM,0,PLUSCC,"\x70", -"lahf",0,0,0,"\x9F", -"lar",REG16,R_M16,O16|_R,"\x0F\x02", -"lds",REG16,MEM,O16|_R,"\xC5", -"les",REG16,MEM,O16|_R,"\xC4", -"lfs",REG16,MEM,O16|_R,"\x0F\xB4", -"lgs",REG16,MEM,O16|_R,"\x0F\xB5", -"lss",REG16,MEM,O16|_R,"\x0F\xB2", -"lea",REG16,MEM,O16|_R,"\x8D", -"leave",0,0,0,"\xC9", -"lgdt",MEM,0,_2,"\x0F\x01", -"lidt",MEM,0,_3,"\x0F\x01", -"lldt",R_M16,0,_2,"\x0F\x00", -"lmsw",R_M16,0,_6,"\x0F\x01", -"loadall",0,0,0,"\x0F\x07", -"loadall286",0,0,0,"\x0F\x05", -"lodsb",0,0,0,"\xAC", -"lodsw",0,0,O16,"\xAD", -"loop",IMM,0,0,"\xE2", -"0",IMM,CX,0,"\xa1\xE2", -"0",IMM,ECX,0,"\xa3\xE2", -"loope",IMM,0,0,"\xE1", -"0",IMM,CX,0,"\xa1\xE1", -"0",IMM,ECX,0,"\xa3\xE1", -"loopz",IMM,0,0,"\xE1", -"0",IMM,CX,0,"\xa1\xE1", -"0",IMM,ECX,0,"\xa3\xE1", -"loopne",IMM,0,0,"\xE0", -"0",IMM,CX,0,"\xa1\xE0", -"0",IMM,ECX,0,"\xa3\xE0", -"loopnz",IMM,0,0,"\xE0", -"0",IMM,CX,0,"\xa1\xE0", -"0",IMM,ECX,0,"\xa3\xE0", -"lsl",REG16,R_M16,O16|_R,"\x0F\x03", -"ltr",R_M16,0,_3,"\x0F\x00", -"mov",R_M8,REG8,_R,"\x88", -"0",R_M16,REG16,O16|_R,"\x89", -"0",REG8,R_M8,_R,"\x8A", -"0",REG16,R_M16,O16|_R,"\x8B", -"0",REG8,IMM8,PLUSREG|IB,"\xB0", -"0",REG16,IMM16,O16|PLUSREG|IW,"\xB8", -"0",R_M8,IMM8,_0|IB,"\xC6", -"0",R_M16,IMM16,O16|_0|IW,"\xC7", -"movsb",0,0,0,"\xA4", -"movsw",0,0,O16,"\xA5", -"movsx",REG16,R_M8,O16|_R,"\x0F\xBE", -"movzx",REG16,R_M8,O16|_R,"\x0F\xB6", -"mul",R_M8,0,_4,"\xF6", -"0",R_M16,0,O16|_4,"\xF7", -"neg",R_M8,0,_3,"\xF6", -"0",R_M16,0,O16|_3,"\xF7", -"not",R_M8,0,_2,"\xF6", -"0",R_M16,0,O16|_2,"\xF7", -"nop",0,0,0,"\x90", -"or",R_M8,REG8,_R,"\x08", -"0",R_M16,REG16,O16|_R,"\x09", -"0",REG8,R_M8,_R,"\x0A", -"0",REG16,R_M16,O16|_R,"\x0B", -"0",R_M8,IMM8,_1|IB,"\x80", -"0",R_M16,IMM16,O16|_1|IW,"\x81", -"0",R_M16,IMM8,O16|_1|IB,"\x83", -"0",AL,IMM8,IB,"\x0C", -"0",AX,IMM16,O16|IW,"\x0D", -"out",IMM8,AL,IB,"\xE6", -"0",IMM8,AX,O16|IB,"\xE7", -"outsb",0,0,0,"\x6E", -"outsw",0,0,O16,"\x6F", -"pop",REG16,0,O16|PLUSREG,"\x58", -"0",R_M16,0,O16|_0,"\x8F", -"popa",0,0,0,"\x61", -"popaw",0,0,O16,"\x61", -"popf",0,0,0,"\x9D", -"popfw",0,0,O16,"\x9D", -"push",REG16,0,O16|PLUSREG,"\x50", -"0",R_M16,0,O16|_6,"\xFF", -"0",IMM8,0,IB,"\x6A", -"0",IMM16,0,O16|IW,"\x68", -"pusha",0,0,0,"\x60", -"pushaw",0,0,O16,"\x60", -"pushf",0,0,0,"\x9C", -"pushfw",0,0,O16,"\x9C", -"rcl",R_M8,CL,_2,"\xD2", -"0",R_M8,IMM8,_2|IB,"\xC0", -"0",R_M16,CL,O16|_2,"\xD3", -"0",R_M16,IMM8,O16|_2|IB,"\xC1", -"rcr",R_M8,CL,_3,"\xD2", -"0",R_M8,IMM8,_3|IB,"\xC0", -"0",R_M16,CL,O16|_3,"\xD3", -"0",R_M16,IMM8,O16|_3|IB,"\xC1", -"rdmsr",0,0,0,"\x0F\x32", -"rdpmc",0,0,0,"\x0F\x33", -"rdtsc",0,0,0,"\x0F\x31", -"ret",0,0,0,"\xC3", -"0",IMM16,0,IW,"\xC2", -"retf",0,0,0,"\xCB", -"0",IMM16,0,IW,"\xCA", -"retn",0,0,0,"\xC3", -"0",IMM16,0,IW,"\xC2", -"rol",R_M8,CL,_0,"\xD2", -"0",R_M8,IMM8,_0|IB,"\xC0", -"0",R_M16,CL,O16|_0,"\xD3", -"0",R_M16,IMM8,O16|_0|IB,"\xC1", -"ror",R_M8,CL,_1,"\xD2", -"0",R_M8,IMM8,_1|IB,"\xC0", -"0",R_M16,CL,O16|_1,"\xD3", -"0",R_M16,IMM8,O16|_1|IB,"\xC1", -"rsm",0,0,0,"\x0F\xAA", -"sahf",0,0,0,"\x9E", -"sal",R_M8,CL,_4,"\xD2", -"0",R_M8,IMM8,_4|IB,"\xC0", -"0",R_M16,CL,O16|_4,"\xD3", -"0",R_M16,IMM8,O16|_4|IB,"\xC1", -"sar",R_M8,CL,_0,"\xD2", -"0",R_M8,IMM8,_0|IB,"\xC0", -"0",R_M16,CL,O16|_0,"\xD3", -"0",R_M16,IMM8,O16|_0|IB,"\xC1", -"salc",0,0,0,"\xD6", -"sbb",R_M8,REG8,_R,"\x18", -"0",R_M16,REG16,O16|_R,"\x19", -"0",REG8,R_M8,_R,"\x1A", -"0",REG16,R_M16,O16|_R,"\x1B", -"0",R_M8,IMM8,_3|IB,"\x80", -"0",R_M16,IMM16,O16|_3|IW,"\x81", -"0",R_M16,IMM8,O16|_3|IB,"\x83", -"0",AL,IMM8,IB,"\x1C", -"0",AX,IMM16,O16|IW,"\x1D", -"scasb",0,0,0,"\xAE", -"scasw",0,0,O16,"\xAF", -"setcc",R_M8,0,PLUSCC|_2,"\x0F\x90", -"sgdt",MEM,0,_0,"\x0F\x01", -"sidt",MEM,0,_1,"\x0F\x01", -"sldt",R_M16,0,_0,"\x0F\x00", -"shl",R_M8,CL,_4,"\xD2", -"0",R_M8,IMM8,_4|IB,"\xC0", -"0",R_M16,CL,O16|_4,"\xD3", -"0",R_M16,IMM8,O16|_4|IB,"\xC1", -"shr",R_M8,CL,_5,"\xD2", -"0",R_M8,IMM8,_5|IB,"\xC0", -"0",R_M16,CL,O16|_5,"\xD3", -"0",R_M16,IMM8,O16|_5|IB,"\xC1", -"smi",0,0,0,"\xF1", -"smsw",R_M16,0,_4,"\x0F\x01", -"stc",0,0,0,"\xF9", -"std",0,0,0,"\xFD", -"sti",0,0,0,"\xFB", -"stosb",0,0,0,"\xAA", -"stosw",0,0,O16,"\xAB", -"str",R_M16,0,_1,"\x0F\x00", -"sub",R_M8,REG8,_R,"\x28", -"0",R_M16,REG16,O16|_R,"\x29", -"0",REG8,R_M8,_R,"\x2A", -"0",REG16,R_M16,O16|_R,"\x2B", -"0",R_M8,IMM8,_5|IB,"\x80", -"0",R_M16,IMM16,O16|_5|IW,"\x81", -"0",R_M16,IMM8,O16|_5|IB,"\x83", -"0",AL,IMM8,IB,"\x2C", -"0",AX,IMM16,O16|IW,"\x2D", -"test",R_M8,REG8,_R,"\x84", -"0",R_M16,REG16,O16|_R,"\x85", -"0",R_M8,IMM8,_7|IB,"\xF6", -"0",R_M16,IMM16,O16|_7|IW,"\xF7", -"0",AL,IMM8,IB,"\xA8", -"0",AX,IMM16,O16|IW,"\xA9", -"umov",R_M8,REG8,_R,"\x0F\x10", -"0",R_M16,REG16,O16|_R,"\x0F\x11", -"0",REG8,R_M8,_R,"\x0F\x12", -"0",REG16,R_M16,O16|_R,"\x0F\x13", -"verr",R_M16,0,_4,"\x0F\x00", -"verw",R_M16,0,_5,"\x0F\x00", -"wait",0,0,0,"\x9B", -"wbinvd",0,0,0,"\x0F\x09", -"wrmsr",0,0,0,"\x0F\x30", -"xadd",R_M8,REG8,_R,"\x0F\xC0", -"0",R_M16,REG16,O16|_R,"\x0F\xC1", -"xbts",REG16,R_M16,O16|_R,"\x0F\xA6", -"xchg",REG8,R_M8,_R,"\x86", -"0",REG16,R_M8,O16|_R,"\x87", -"0",R_M8,REG8,_R,"\x86", -"0",R_M16,REG16,O16|_R,"\x87", -"0",AX,REG16,O16|PLUSREG,"\x90", -"0",REG16,AX,O16|PLUSREG,"\x90", -"xlatb",0,0,0,"\xD7", -"xor",R_M8,REG8,_R,"\x30", -"0",R_M16,REG16,O16|_R,"\x31", -"0",REG8,R_M8,_R,"\x32", -"0",REG16,R_M16,O16|_R,"\x33", -"0",R_M8,IMM8,_6|IB,"\x80", -"0",R_M16,IMM16,O16|_6|IW,"\x81", -"0",R_M16,IMM8,O16|_6|IB,"\x83", -"0",AL,IMM8,IB,"\x34", -"0",AX,IMM16,O16|IW,"\x35", -0,0,0,0,0 -}; diff --git a/asm_makeinsts/asm_makeinsts.dsp b/asm_makeinsts/asm_makeinsts.dsp deleted file mode 100644 index 6277849..0000000 --- a/asm_makeinsts/asm_makeinsts.dsp +++ /dev/null @@ -1,96 +0,0 @@ -# Microsoft Developer Studio Project File - Name="asm_makeinsts" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=asm_makeinsts - Win32 Debug -!MESSAGE This is not a valid makefile. To build this project using NMAKE, -!MESSAGE use the Export Makefile command and run -!MESSAGE -!MESSAGE NMAKE /f "asm_makeinsts.mak". -!MESSAGE -!MESSAGE You can specify a configuration when running NMAKE -!MESSAGE by defining the macro CFG on the command line. For example: -!MESSAGE -!MESSAGE NMAKE /f "asm_makeinsts.mak" CFG="asm_makeinsts - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "asm_makeinsts - Win32 Release" (based on "Win32 (x86) Console Application") -!MESSAGE "asm_makeinsts - Win32 Debug" (based on "Win32 (x86) Console Application") -!MESSAGE - -# Begin Project -# PROP AllowPerConfigDependencies 0 -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" -CPP=cl.exe -RSC=rc.exe - -!IF "$(CFG)" == "asm_makeinsts - Win32 Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "Release" -# PROP BASE Intermediate_Dir "Release" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "Release" -# PROP Intermediate_Dir "Release" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD CPP /nologo /GB /MT /W3 /GX /Ox /Ow /Og /Oi /Os /Ob2 /Gf /Gy /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# SUBTRACT CPP /Ot -# ADD BASE RSC /l 0x409 /d "NDEBUG" -# ADD RSC /l 0x409 /d "NDEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 -# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 - -!ELSEIF "$(CFG)" == "asm_makeinsts - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "Debug" -# PROP BASE Intermediate_Dir "Debug" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "Debug" -# PROP Intermediate_Dir "Debug" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c -# ADD CPP /nologo /MTd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c -# SUBTRACT CPP /Gy -# ADD BASE RSC /l 0x409 /d "_DEBUG" -# ADD RSC /l 0x409 /d "_DEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept -# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept - -!ENDIF - -# Begin Target - -# Name "asm_makeinsts - Win32 Release" -# Name "asm_makeinsts - Win32 Debug" -# Begin Source File - -SOURCE=.\main.cpp -# End Source File -# Begin Source File - -SOURCE=.\nasm_insts.txt -# End Source File -# End Target -# End Project diff --git a/asm_makeinsts/asm_makeinsts.vcxproj b/asm_makeinsts/asm_makeinsts.vcxproj deleted file mode 100644 index 9147d93..0000000 --- a/asm_makeinsts/asm_makeinsts.vcxproj +++ /dev/null @@ -1,199 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - RelWithDebInfo - Win32 - - - - - - {E85F5BD3-FEA3-4342-885E-2C00AFBFE12E} - 10.0.17763.0 - - - - Application - v140_xp - false - MultiByte - - - Application - v141 - false - MultiByte - true - - - Application - v140_xp - false - MultiByte - - - - - - - - - - - - - - - - - - - ..\#Build\$(ProjectName)\$(Configuration)-$(PlatformTarget)\ - ..\#Intermediate\$(ProjectName)\$(Configuration)-$(PlatformTarget)\ - false - C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\shared;C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\um;$(IncludePath) - C:\Program Files (x86)\Windows Kits\10\Lib\10.0.14393.0\um\x86;$(LibraryPath) - - - ..\#Build\$(ProjectName)\$(Configuration)-$(PlatformTarget)\ - ..\#Intermediate\$(ProjectName)\$(Configuration)-$(PlatformTarget)\ - false - C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\shared;C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\um;$(IncludePath) - C:\Program Files (x86)\Windows Kits\10\Lib\10.0.14393.0\um\x86;$(LibraryPath) - - - ..\#Build\$(ProjectName)\$(Configuration)-$(PlatformTarget)\ - ..\#Intermediate\$(ProjectName)\$(Configuration)-$(PlatformTarget)\ - true - C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\shared;C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\um;$(IncludePath) - C:\Program Files (x86)\Windows Kits\10\Lib\10.0.14393.0\um\x86;$(LibraryPath) - - - - MultiThreadedDLL - false - true - Level3 - _CRT_SECURE_NO_WARNINGS;WIN32;%(PreprocessorDefinitions) - true - false - StdCall - Async - false - Full - AnySuitable - true - Speed - true - true - 4Bytes - false - true - StreamingSIMDExtensions2 - Fast - false - ProgramDatabase - false - - - false - true - - - .\Release\asm_makeinsts.tlb - - - 0x0409 - NDEBUG;%(PreprocessorDefinitions) - - - true - .\Release\asm_makeinsts.bsc - - - true - Console - odbc32.lib;odbccp32.lib;%(AdditionalDependencies) - - - - - MultiThreadedDLL - false - true - Level3 - _CRT_SECURE_NO_WARNINGS;WIN32;%(PreprocessorDefinitions) - true - false - StdCall - Async - false - - - .\Release\asm_makeinsts.tlb - - - 0x0409 - NDEBUG;%(PreprocessorDefinitions) - - - true - .\Release\asm_makeinsts.bsc - - - true - Console - odbc32.lib;odbccp32.lib;%(AdditionalDependencies) - - - - - MultiThreadedDebugDLL - false - true - true - _CRT_SECURE_NO_WARNINGS;WIN32;DEBUG;%(PreprocessorDefinitions) - Default - false - Level3 - StdCall - Async - false - - - .\Debug\asm_makeinsts.tlb - - - 0x0409 - _DEBUG;%(PreprocessorDefinitions) - - - true - .\Debug\asm_makeinsts.bsc - - - true - true - Console - odbc32.lib;odbccp32.lib;%(AdditionalDependencies) - - - - - - - - - - - - \ No newline at end of file diff --git a/asm_makeinsts/main.cpp b/asm_makeinsts/main.cpp deleted file mode 100644 index 24b5ade..0000000 --- a/asm_makeinsts/main.cpp +++ /dev/null @@ -1,139 +0,0 @@ - -/* - - This generates a source code file for x86 instruction formats. - - Thanks NASM! - -*/ - -#include -#include -#include -#include - -using namespace std; - -static const char *optype( const string &s ){ - - if( s=="AL" ) return "AL"; - if( s=="AX" ) return "AX"; - if( s=="EAX" ) return "EAX"; - if( s=="CL" ) return "CL"; - if( s=="CX" ) return "CX"; - if( s=="ECX" ) return "ECX"; - if( s=="imm" ) return "IMM"; - if( s=="imm8" ) return "IMM8"; - if( s=="imm16" ) return "IMM16"; - if( s=="imm32" ) return "IMM32"; - if( s=="reg" ) return "REG"; - if( s=="reg8" ) return "REG8"; - if( s=="reg16" ) return "REG16"; - if( s=="reg32" ) return "REG32"; - if( s=="mem" ) return "MEM"; - if( s=="mem8" ) return "MEM8"; - if( s=="mem16" ) return "MEM16"; - if( s=="mem32" ) return "MEM32"; - if( s=="r/m" ) return "R_M"; - if( s=="r/m8" ) return "R_M8"; - if( s=="r/m16" ) return "R_M16"; - if( s=="r/m32" ) return "R_M32"; - if( s=="fpureg" ) return "FPUREG"; - if( s=="ST0" ) return "ST0"; - return 0; -} - -void __cdecl main() { - - string name,lhs,rhs,byte,bytes,flags,last; - - ifstream in( "nasm_insts.txt" ); - ofstream out( "..\\compiler\\assem_x86\\asm_insts.cpp" ); - - out<<"//\n//This is generated code - do not modify!!!!!\n//\n"; - out<<"\n#include \"..\\std.h\"\n\n"; - out<<"\n#include \"insts.h\"\n\n"; - out<<"Inst insts[]={\n"; - - for( ;!in.eof();in.ignore( INT_MAX,'\n' ) ){ - - name.resize(0); - - in>>name; - if( !name.size() || name[0]=='/' ) continue; - - lhs.resize(0);rhs.resize(0); - const char *lop="NONE",*rop="NONE"; - - while( isspace( in.peek() ) ) in.get(); - getline( in,lhs,';' ); - - if( int i=lhs.size() ){ - while( i && isspace( lhs[i-1] ) ) --i; - if( i ){ - lhs.resize( i ); - i=lhs.find( ',' ); - if( i!=string::npos ){ - rhs=lhs.substr( i+1 ); - lhs=lhs.substr( 0,i ); - } - lop=optype( lhs );if( !lop ) continue; - if( rhs.size() && !(rop=optype( rhs )) ) continue; - } - } - - bytes.resize(0); - - flags='0'; - bool fail=false; - while( !fail ){ - in>>byte; - if( byte[0]=='[' ) break; - if( byte=="/r" ) flags+="|_R"; - else if( byte=="/0" ) flags+="|_0"; - else if( byte=="/1" ) flags+="|_1"; - else if( byte=="/2" ) flags+="|_2"; - else if( byte=="/3" ) flags+="|_3"; - else if( byte=="/4" ) flags+="|_4"; - else if( byte=="/5" ) flags+="|_5"; - else if( byte=="/6" ) flags+="|_6"; - else if( byte=="/7" ) flags+="|_7"; - else if( byte=="o16" ) flags+="|O16"; - else if( byte=="o32" ) flags+="|O32"; - else if( byte=="ow/od" ) flags+="|OW_OD"; - else if( byte=="ib" ) flags+="|IB"; - else if( byte=="iw" ) flags+="|IW"; - else if( byte=="id" ) flags+="|ID"; - else if( byte=="rw/rd" ) flags+="|RW_RD"; - else if( isxdigit( byte[0] ) ){ - string sub=byte.substr( 2 ); - if( sub.size() ){ - if( sub=="+r" ) flags+="|PLUSREG"; - else if( sub=="+cc" ) flags+="|PLUSCC"; - else fail=true; - } - bytes=bytes+"\\x"+byte[0]+byte[1]; - }else fail=true; - } - if( fail ) continue; - - if( flags.find( "0|" )==0 ) flags=flags.substr( 2 ); - for( size_t k=0;k