⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gencode.c

📁 这个是LINUX下的GDB调度工具的源码
💻 C
📖 第 1 页 / 共 5 页
字号:
  { "adcb", "(x),b->b", "adc8",	     2, 0xe9,  4,  4, CHG_HNZVC },  { "orab", "(x),b->b", "or8",	     2, 0xea,  4,  4, CLR_V_CHG_NZ },  { "addb", "(x),b->b", "add8",	     2, 0xeb,  4,  4, CHG_HNZVC },  { "ldd",  "(x)->d",	"movtst16",  2, 0xec,  5,  5, CLR_V_CHG_NZ },  { "std",  "d->(x)",	"movtst16",  2, 0xed,  5,  5, CLR_V_CHG_NZ },  { "ldx",  "(x)->x",	"movtst16",  2, 0xee,  5,  5, CLR_V_CHG_NZ },  { "stx",  "x->(x)",	"movtst16",  2, 0xef,  5,  5, CLR_V_CHG_NZ },  { "subb", "(),b->b",	"sub8",	     3, 0xf0,  4,  4, CHG_NZVC },  { "cmpb", "(),b",	"sub8",	     3, 0xf1,  4,  4, CHG_NZVC },  { "sbcb", "(),b->b",	"sbc8",	     3, 0xf2,  4,  4, CHG_NZVC },  { "addd", "(),d->d",	"add16",     3, 0xf3,  6,  6, CHG_NZVC },  { "andb", "(),b->b",	"and8",	     3, 0xf4,  4,  4, CLR_V_CHG_NZ },  { "bitb", "(),b",	"and8",	     3, 0xf5,  4,  4, CLR_V_CHG_NZ },  { "ldab", "()->b",	"movtst8",   3, 0xf6,  4,  4, CLR_V_CHG_NZ },  { "stab", "b->()",	"movtst8",   3, 0xf7,  4,  4, CLR_V_CHG_NZ },  { "eorb", "(),b->b",	"eor8",	     3, 0xf8,  4,  4, CLR_V_CHG_NZ },  { "adcb", "(),b->b",	"eor8",	     3, 0xf9,  4,  4, CHG_HNZVC },  { "orab", "(),b->b",	"or8",	     3, 0xfa,  4,  4, CLR_V_CHG_NZ },  { "addb", "(),b->b",	"add8",	     3, 0xfb,  4,  4, CHG_HNZVC },  { "ldd",  "()->d",	"movtst16",  3, 0xfc,  5,  5, CLR_V_CHG_NZ },  { "std",  "d->()",	"movtst16",  3, 0xfd,  5,  5, CLR_V_CHG_NZ },  { "ldx",  "()->x",	"movtst16",  3, 0xfe,  5,  5, CLR_V_CHG_NZ },  { "stx",  "x->()",	"movtst16",  3, 0xff,  5,  5, CLR_V_CHG_NZ }};/* Page 2 opcodes *//* *  { "dex", "x->x", "dec16", 1, 0x00, 5, _M,  CHG_NONE }, * Name -+					 +----- Insn CCR changes * Operands  ---+			  +------------ Max # cycles * Pattern   -----------+	       +--------------- Min # cycles * Size	     -----------------+	  +-------------------- Opcode */struct m6811_opcode_def m6811_page2_opcodes[] = {  { "iny",  "y->y",	"inc16",     2, 0x08, 4, 4, CHG_Z },  { "dey",  "y->y",	"dec16",     2, 0x09, 4, 4, CHG_Z },  { "bset", "(y),#->(y)","or8",	     4, 0x1c, 8, 8, CLR_V_CHG_NZ },  { "bclr", "(y),#->(y)","bclr8",    4, 0x1d, 8, 8, CLR_V_CHG_NZ },  { "brset","(y),#,r",	 "brset8",   5, 0x1e, 8, 8, CHG_NONE },  { "brclr","(y),#,r",	"brclr8",    5, 0x1f, 8, 8, CHG_NONE },  { "tsy",  "sp->y",	"tsxy16",    2, 0x30, 4, 4, CHG_NONE },  { "tys",  "y->sp",	"txys16",    2, 0x35, 4, 4, CHG_NONE },  { "puly", "(sp)->y",	"mov16",     2, 0x38, 6, 6, CHG_NONE },  { "aby",  "b,y->y",	"abxy16",    2, 0x3a, 4, 4, CHG_NONE },  { "pshy", "y->(sp)",	"mov16",     2, 0x3c, 5, 5, CHG_NONE },  { "neg",  "(y)->(y)", "neg8",	     3, 0x60, 7, 7, CHG_NZVC },  { "com",  "(y)->(y)", "com8",	     3, 0x63, 7, 7, SET_C_CLR_V_CHG_NZ},  { "lsr",  "(y)->(y)", "lsr8",	     3, 0x64, 7, 7, CLR_V_CHG_ZVC },  { "ror",  "(y)->(y)", "ror8",	     3, 0x66, 7, 7, CHG_NZVC },  { "asr",  "(y)->(y)", "asr8",	     3, 0x67, 7, 7, CHG_NZVC },  { "asl",  "(y)->(y)", "lsl8",	     3, 0x68, 7, 7, CHG_NZVC },  { "rol",  "(y)->(y)", "rol8",	     3, 0x69, 7, 7, CHG_NZVC },  { "dec",  "(y)->(y)", "dec8",	     3, 0x6a, 7, 7, CHG_NZV },  { "inc",  "(y)->(y)", "inc8",	     3, 0x6c, 7, 7, CHG_NZV },  { "tst",  "(y)",	"tst8",	     3, 0x6d, 7, 7, CLR_V_CHG_NZ },  { "jmp",  "&(y)",	"bra",	     3, 0x6e, 4, 4, CHG_NONE },  { "clr",  "->(y)",	"clr8",	     3, 0x6f, 7, 7, SET_Z_CLR_NVC },  { "cmpy", "#,y",	"sub16",     4, 0x8c, 5, 5, CHG_NZVC },  { "xgdy", "y->y",	"xgdxy16",   2, 0x8f, 4, 4, CHG_NONE },  { "cmpy", "*,y",	"sub16",     3, 0x9c, 6, 6, CHG_NZVC },  { "suba", "(y),a->a", "sub8",	     3, 0xa0, 5, 5, CHG_NZVC },  { "cmpa", "(y),a",	"sub8",	     3, 0xa1, 5, 5, CHG_NZVC },  { "sbca", "(y),a->a", "sbc8",	     3, 0xa2, 5, 5, CHG_NZVC },  { "subd", "(y),d->d", "sub16",     3, 0xa3, 7, 7, CHG_NZVC },  { "anda", "(y),a->a", "and8",	     3, 0xa4, 5, 5, CLR_V_CHG_NZ },  { "bita", "(y),a",	"and8",	     3, 0xa5, 5, 5, CLR_V_CHG_NZ },  { "ldaa", "(y)->a",	"movtst8",   3, 0xa6, 5, 5, CLR_V_CHG_NZ },  { "staa", "a->(y)",	"movtst8",   3, 0xa7, 5, 5, CLR_V_CHG_NZ },  { "eora", "(y),a->a", "eor8",	     3, 0xa8, 5, 5, CLR_V_CHG_NZ },  { "adca", "(y),a->a", "adc8",	     3, 0xa9, 5, 5, CHG_HNZVC },  { "oraa", "(y),a->a", "or8",	     3, 0xaa, 5, 5, CLR_V_CHG_NZ },  { "adda", "(y),a->a", "add8",	     3, 0xab, 5, 5, CHG_HNZVC },  { "cmpy", "(y),y",	"sub16",     3, 0xac, 7, 7, CHG_NZVC },  { "jsr",  "&(y)",	"jsr_11_16", 3, 0xad, 6, 6, CHG_NONE },  { "lds",  "(y)->sp",	"movtst16",  3, 0xae, 6, 6, CLR_V_CHG_NZ },  { "sts",  "sp->(y)",	"movtst16",  3, 0xaf, 6, 6, CLR_V_CHG_NZ },  { "cmpy", "(),y",	"sub16",     4, 0xbc, 7, 7, CHG_NZVC },  { "ldy",  "#->y",	"movtst16",  4, 0xce, 4, 4, CLR_V_CHG_NZ },  { "ldy",  "*->y",	"movtst16",  3, 0xde, 5, 5, CLR_V_CHG_NZ },  { "sty",  "y->*",	"movtst16",  3, 0xdf, 5, 5, CLR_V_CHG_NZ },  { "subb", "(y),b->b", "sub8",	     3, 0xe0, 5, 5, CHG_NZVC },  { "cmpb", "(y),b",	"sub8",	     3, 0xe1, 5, 5, CHG_NZVC },  { "sbcb", "(y),b->b", "sbc8",	     3, 0xe2, 5, 5, CHG_NZVC },  { "addd", "(y),d->d", "add16",     3, 0xe3, 7, 7, CHG_NZVC },  { "andb", "(y),b->b", "and8",	     3, 0xe4, 5, 5, CLR_V_CHG_NZ },  { "bitb", "(y),b",	"and8",	     3, 0xe5, 5, 5, CLR_V_CHG_NZ },  { "ldab", "(y)->b",	"movtst8",   3, 0xe6, 5, 5, CLR_V_CHG_NZ },  { "stab", "b->(y)",	"movtst8",   3, 0xe7, 5, 5, CLR_V_CHG_NZ },  { "eorb", "(y),b->b", "eor8",	     3, 0xe8, 5, 5, CLR_V_CHG_NZ },  { "adcb", "(y),b->b", "adc8",	     3, 0xe9, 5, 5, CHG_HNZVC },  { "orab", "(y),b->b", "or8",	     3, 0xea, 5, 5, CLR_V_CHG_NZ },  { "addb", "(y),b->b", "add8",	     3, 0xeb, 5, 5, CHG_HNZVC },  { "ldd",  "(y)->d",	"movtst16",  3, 0xec, 6, 6, CLR_V_CHG_NZ },  { "std",  "d->(y)",	"movtst16",  3, 0xed, 6, 6, CLR_V_CHG_NZ },  { "ldy",  "(y)->y",	"movtst16",  3, 0xee, 6, 6, CLR_V_CHG_NZ },  { "sty",  "y->(y)",	"movtst16",  3, 0xef, 6, 6, CLR_V_CHG_NZ },  { "ldy",  "()->y",	"movtst16",  4, 0xfe, 6, 6, CLR_V_CHG_NZ },  { "sty",  "y->()",	"movtst16",  4, 0xff, 6, 6, CLR_V_CHG_NZ }};/* Page 3 opcodes *//* *  { "dex", "x->x", "dec16", 1, 0x00, 5, _M,  CHG_NONE }, * Name -+					 +----- Insn CCR changes * Operands  ---+			  +------------ Max # cycles * Pattern   -----------+	       +--------------- Min # cycles * Size	     -----------------+	  +-------------------- Opcode */struct m6811_opcode_def m6811_page3_opcodes[] = {  { "cmpd", "#,d",	"sub16",     4, 0x83, 5, 5, CHG_NZVC },  { "cmpd", "*,d",	"sub16",     3, 0x93, 6, 6, CHG_NZVC },  { "cmpd", "(x),d",	"sub16",     3, 0xa3, 7, 7, CHG_NZVC },  { "cmpy", "(x),y",	"sub16",     3, 0xac, 7, 7, CHG_NZVC },  { "cmpd", "(),d",	"sub16",     4, 0xb3, 7, 7, CHG_NZVC },  { "ldy",  "(x)->y",	"movtst16",  3, 0xee, 6, 6, CLR_V_CHG_NZ },  { "sty",  "y->(x)",	"movtst16",  3, 0xef, 6, 6, CLR_V_CHG_NZ }};/* Page 4 opcodes *//* *  { "dex", "x->x", "dec16", 1, 0x00, 5, _M,  CHG_NONE }, * Name -+					 +----- Insn CCR changes * Operands  ---+			  +------------ Max # cycles * Pattern   -----------+	       +--------------- Min # cycles * Size	     -----------------+	  +-------------------- Opcode */struct m6811_opcode_def m6811_page4_opcodes[] = {  { "syscall", "",	"syscall",   2, 0x03, 6, 6, CHG_NONE },  { "cmpd", "(y),d",	"sub16",     3, 0xa3, 7, 7, CHG_NZVC },  { "cmpx", "(y),x",	"sub16",     3, 0xac, 7, 7, CHG_NZVC },  { "ldx",  "(y)->x",	"movtst16",  3, 0xee, 6, 6, CLR_V_CHG_NZ },  { "stx",  "x->(y)",	"movtst16",  3, 0xef, 6, 6, CLR_V_CHG_NZ }};/* 68HC12 opcodes *//* *  { "dex", "x->x", "dec16", 1, 0x00, 5, _M,  CHG_NONE }, * Name -+					 +----- Insn CCR changes * Operands  ---+			  +------------ Max # cycles * Pattern   -----------+	       +--------------- Min # cycles * Size	     -----------------+	  +-------------------- Opcode */struct m6811_opcode_def m6812_page1_opcodes[] = {  { "adca", "#,a->a",    "adc8",     2, 0x89,  1,  1,  CHG_HNZVC },  { "adca", "*,a->a",    "adc8",     2, 0x99,  3,  3,  CHG_HNZVC },  { "adca", "(),a->a",   "adc8",     3, 0xb9,  3,  3,  CHG_HNZVC },  { "adca", "[],a->a",   "adc8",     2, 0xa9,  3,  3,  CHG_HNZVC },  { "adcb", "#,b->b",    "adc8",     2, 0xc9,  1,  1,  CHG_HNZVC },  { "adcb", "*,b->b",    "adc8",     3, 0xd9,  3,  3,  CHG_HNZVC },  { "adcb", "(),b->b",   "adc8",     3, 0xf9,  3,  3,  CHG_HNZVC },  { "adcb", "[],b->b",   "adc8",     2, 0xe9,  3,  3,  CHG_HNZVC },  { "adda", "#,a->a",    "add8",     2, 0x8b,  1,  1,  CHG_HNZVC },  { "adda", "*,a->a",    "add8",     3, 0x9b,  3,  3,  CHG_HNZVC },  { "adda", "(),a->a",   "add8",     3, 0xbb,  3,  3,  CHG_HNZVC },  { "adda", "[],a->a",   "add8",     2, 0xab,  3,  3,  CHG_HNZVC },  { "addb", "#,b->b",    "add8",     2, 0xcb,  1,  1,  CHG_HNZVC },  { "addb", "*,b->b",    "add8",     3, 0xdb,  3,  3,  CHG_HNZVC },  { "addb", "(),b->b",   "add8",     3, 0xfb,  3,  3,  CHG_HNZVC },  { "addb", "[],b->b",   "add8",     2, 0xeb,  3,  3,  CHG_HNZVC },  { "addd", "#,d->d",    "add16",    3, 0xc3,  2,  2,  CHG_NZVC },  { "addd", "*,d->d",    "add16",    2, 0xd3,  3,  3,  CHG_NZVC },  { "addd", "(),d->d",   "add16",    3, 0xf3,  3,  3,  CHG_NZVC },  { "addd", "[],d->d",   "add16",    2, 0xe3,  3,  3,  CHG_NZVC },  { "anda", "#,a->a",    "and8",     2, 0x84,  1,  1,  CLR_V_CHG_NZ },  { "anda", "*,a->a",    "and8",     2, 0x94,  3,  3,  CLR_V_CHG_NZ },  { "anda", "(),a->a",   "and8",     3, 0xb4,  3,  3,  CLR_V_CHG_NZ },  { "anda", "[],a->a",   "and8",     2, 0xa4,  3,  3,  CLR_V_CHG_NZ },  { "andb", "#,b->b",    "and8",     2, 0xc4,  1,  1,  CLR_V_CHG_NZ },  { "andb", "*,b->b",    "and8",     2, 0xd4,  3,  3,  CLR_V_CHG_NZ },  { "andb", "(),b->b",   "and8",     3, 0xf4,  3,  3,  CLR_V_CHG_NZ },  { "andb", "[],b->b",   "and8",     2, 0xe4,  3,  3,  CLR_V_CHG_NZ },  { "andcc", "#,ccr->ccr", "and8",   2, 0x10,  1,  1,  CHG_ALL },  { "asl",  "()->()",    "lsl8",     3, 0x78,  4,  4,  CHG_NZVC },  { "asl",  "[]->[]",    "lsl8",     2, 0x68,  3,  3,  CHG_NZVC },  { "asla", "a->a",      "lsl8",     1, 0x48,  1,  1,  CHG_NZVC },  { "aslb", "b->b",      "lsl8",     1, 0x58,  1,  1,  CHG_NZVC },  { "asld", "d->d",      "lsl16",    1, 0x59,  1,  1,  CHG_NZVC },  { "asr",  "()->()",    "asr8",     3, 0x77,  4,  4,  CHG_NZVC },  { "asr",  "[]->[]",    "asr8",     2, 0x67,  3,  3,  CHG_NZVC },  { "asra", "a->a",      "asr8",     1, 0x47,  1,  1,  CHG_NZVC },  { "asrb", "b->b",      "asr8",     1, 0x57,  1,  1,  CHG_NZVC },  { "bcc",  "r",         0,          2, 0x24,  1,  3,  CHG_NONE },  { "bclr", "*,#->*",    "bclr8",    3, 0x4d,  4,  4,  CLR_V_CHG_NZ },  { "bclr", "(),#->()",  "bclr8",    4, 0x1d,  4,  4,  CLR_V_CHG_NZ },  { "bclr", "[],#->[]",  "bclr8",    3, 0x0d,  4,  4,  CLR_V_CHG_NZ },  { "bcs",  "r",         0,          2, 0x25,  1,  3, CHG_NONE },  { "beq",  "r",         0,          2, 0x27,  1,  3, CHG_NONE },  { "bge",  "r",         0,          2, 0x2c,  1,  3, CHG_NONE },  { "bgnd",  0,          0,          1, 0x00,  5,  5, CHG_NONE },  { "bgt",  "r",         0,          2, 0x2e,  1,  3, CHG_NONE },  { "bhi",  "r",         0,          2, 0x22,  1,  3, CHG_NONE },    { "bita", "#,a",       "and8",     2, 0x85,  1,  1, CLR_V_CHG_NZ },  { "bita", "*,a",       "and8",     2, 0x95,  3,  3, CLR_V_CHG_NZ },  { "bita", "(),a",      "and8",     3, 0xb5,  3,  3, CLR_V_CHG_NZ },  { "bita", "[],a",      "and8",     2, 0xa5,  3,  3,  CLR_V_CHG_NZ },  { "bitb", "#,b",       "and8",     2, 0xc5,  1,  1, CLR_V_CHG_NZ },  { "bitb", "*,b",       "and8",     2, 0xd5,  3,  3, CLR_V_CHG_NZ },  { "bitb", "(),b",      "and8",     3, 0xf5,  3,  3, CLR_V_CHG_NZ },  { "bitb", "[],b",      "and8",     2, 0xe5,  3,  3,  CLR_V_CHG_NZ },  { "ble",  "r",          0,         2, 0x2f,  1,  3, CHG_NONE },  { "bls",  "r",          0,         2, 0x23,  1,  3, CHG_NONE },  { "blt",  "r",          0,         2, 0x2d,  1,  3, CHG_NONE },  { "bmi",  "r",          0,         2, 0x2b,  1,  3, CHG_NONE },  { "bne",  "r",          0,         2, 0x26,  1,  3, CHG_NONE },  { "bpl",  "r",          0,         2, 0x2a,  1,  3, CHG_NONE },  { "bra",  "r",          0,         2, 0x20,  1,  3, CHG_NONE },  { "brclr", "*,#,r",     "brclr8",  4, 0x4f,  4,  4,  CHG_NONE },  { "brclr", "(),#,r",    "brclr8",  5, 0x1f,  5,  5,  CHG_NONE },  { "brclr", "[],#,r",    "brclr8",  4, 0x0f,  4,  4,  CHG_NONE },  { "brn",  "r",          "nop",     2, 0x21,  1,  3,  CHG_NONE },  { "brset", "*,#,r",     "brset8",  4, 0x4e,  4,  4,  CHG_NONE },  { "brset", "(),#,r",    "brset8",  5, 0x1e,  5,  5,  CHG_NONE },  { "brset", "[],#,r",    "brset8",  4, 0x0e,  4,  4,  CHG_NONE },  { "bset",  "*,#->*",    "or8",     3, 0x4c,  4,  4,  CLR_V_CHG_NZ },  { "bset",  "(),#->()",  "or8",     4, 0x1c,  4,  4,  CLR_V_CHG_NZ },  { "bset",  "[],#->[]",  "or8",     3, 0x0c,  4,  4,  CLR_V_CHG_NZ },  { "bsr",   "r",         "jsr_12_16", 2, 0x07,  4,  4, CHG_NONE },  { "bvc",   "r",         0,         2, 0x28,  1,  3, CHG_NONE },  { "bvs",   "r",         0,         2, 0x29,  1,  3, CHG_NONE },  { "call",  "",          "call8",   4, 0x4a,  8,  8,  CHG_NONE },  { "call",  "",          "call_ind",2, 0x4b,  8,  8,  CHG_NONE },  { "clr",   "->()",      "clr8",    3, 0x79,  3,  3,  SET_Z_CLR_NVC },  { "clr",   "->[]",      "clr8",    2, 0x69,  2,  2,  SET_Z_CLR_NVC },  { "clra",  "->a",       "clr8",    1, 0x87,  1,  1,  SET_Z_CLR_NVC },  { "clrb",  "->b",       "clr8",    1, 0xc7,  1,  1,  SET_Z_CLR_NVC },  { "cpa",  "#,a",        "sub8",    2, 0x81,  1,  1,  CHG_NZVC },  { "cpa",  "*,a",        "sub8",    2, 0x91,  3,  3,  CHG_NZVC },  { "cpa",  "(),a",       "sub8",    3, 0xb1,  3,  3,  CHG_NZVC },  { "cpa",  "[],a",       "sub8",    2, 0xa1,  3,  3,  CHG_NZVC },  { "cpb",  "#,b",        "sub8",    2, 0xc1,  1,  1,  CHG_NZVC },  { "cpb",  "*,b",        "sub8",    2, 0xd1,  3,  3,  CHG_NZVC },  { "cpb",  "(),b",       "sub8",    3, 0xf1,  3,  3,  CHG_NZVC },  { "cpb",  "[],b",       "sub8",    2, 0xe1,  3,  3,  CHG_NZVC },  { "com",   "()->()",    "com8",    3, 0x71,  4,  4,  SET_C_CLR_V_CHG_NZ },  { "com",   "[]->[]",    "com8",    2, 0x61,  3,  3,  SET_C_CLR_V_CHG_NZ },  { "coma",  "a->a",      "com8",    1, 0x41,  1,  1,  SET_C_CLR_V_CHG_NZ },  { "comb",  "b->b",      "com8",    1, 0x51,  1,  1,  SET_C_CLR_V_CHG_NZ },  { "cpd",   "#,d",       "sub16",   3, 0x8c,  2,  2,  CHG_NZVC },  { "cpd",   "*,d",       "sub16",   2, 0x9c,  3,  3,  CHG_NZVC },  { "cpd",   "(),d",      "sub16",   3, 0xbc,  3,  3,  CHG_NZVC },  { "cpd",   "[],d",      "sub16",   2, 0xac,  3,  3,  CHG_NZVC },  { "cps",   "#,sp",      "sub16",   3, 0x8f,  2,  2,  CHG_NZVC },  { "cps",   "*,sp",      "sub16",   2, 0x9f,  3,  3,  CHG_NZVC },  { "cps",   "(),sp",     "sub16",   3, 0xbf,  3,  3,  CHG_NZVC },  { "cps",   "[],sp",     "sub16",   2, 0xaf,  3,  3,  CHG_NZVC },  { "cpx",   "#,x",       "sub16",   3, 0x8e,  2,  2,  CHG_NZVC },  { "cpx",   "*,x",       "sub16",   2, 0x9e,  3,  3,  CHG_NZVC },  { "cpx",   "(),x",      "sub16",   3, 0xbe,  3,  3,  CHG_NZVC },  { "cpx",   "[],x",      "sub16",   2, 0xae,  3,  3,  CHG_NZVC },  { "cpy",   "#,y",       "sub16",   3, 0x8d,  2,  2,  CHG_NZVC },  { "cpy",   "*,y",       "sub16",   2, 0x9d,  3,  3,  CHG_NZVC },  { "cpy",   "(),y",      "sub16",   3, 0xbd,  3,  3,  CHG_NZVC },

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -