📄 np1.h
字号:
/* Print GOULD NPL instructions for GDB, the GNU debugger. Copyright 1986, 1987, 1989, 1991 Free Software Foundation, Inc.This file is part of GDB.GDB is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 1, or (at your option)any later version.GDB is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with GDB; see the file COPYING. If not, write tothe Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */struct gld_opcode{ char *name; unsigned long opcode; unsigned long mask; char *args; int length;};/* We store four bytes of opcode for all opcodes because that is the most any of them need. The actual length of an instruction is always at least 2 bytes, and at most four. The length of the instruction is based on the opcode. The mask component is a mask saying which bits must match particular opcode in order for an instruction to be an instance of that opcode. The args component is a string containing characters that are used to format the arguments to the instruction. *//* Kinds of operands: r Register in first field R Register in second field b Base register in first field B Base register in second field v Vector register in first field V Vector register in first field A Optional address register (base register) X Optional index register I Immediate data (16bits signed) O Offset field (16bits signed) h Offset field (15bits signed) d Offset field (14bits signed) S Shift count field any other characters are printed as is...*//* The assembler requires that this array be sorted as follows: all instances of the same mnemonic must be consecutive. All instances of the same mnemonic with the same number of operands must be consecutive. */struct gld_opcode gld_opcodes[] ={{ "lb", 0xb4080000, 0xfc080000, "r,xOA,X", 4 },{ "lnb", 0xb8080000, 0xfc080000, "r,xOA,X", 4 },{ "lbs", 0xec080000, 0xfc080000, "r,xOA,X", 4 },{ "lh", 0xb4000001, 0xfc080001, "r,xOA,X", 4 },{ "lnh", 0xb8000001, 0xfc080001, "r,xOA,X", 4 },{ "lw", 0xb4000000, 0xfc080000, "r,xOA,X", 4 },{ "lnw", 0xb8000000, 0xfc080000, "r,xOA,X", 4 },{ "ld", 0xb4000002, 0xfc080002, "r,xOA,X", 4 },{ "lnd", 0xb8000002, 0xfc080002, "r,xOA,X", 4 },{ "li", 0xf8000000, 0xfc7f0000, "r,I", 4 },{ "lpa", 0x50080000, 0xfc080000, "r,xOA,X", 4 },{ "la", 0x50000000, 0xfc080000, "r,xOA,X", 4 },{ "labr", 0x58080000, 0xfc080000, "b,xOA,X", 4 },{ "lbp", 0x90080000, 0xfc080000, "r,xOA,X", 4 },{ "lhp", 0x90000001, 0xfc080001, "r,xOA,X", 4 },{ "lwp", 0x90000000, 0xfc080000, "r,xOA,X", 4 },{ "ldp", 0x90000002, 0xfc080002, "r,xOA,X", 4 },{ "suabr", 0x58000000, 0xfc080000, "b,xOA,X", 4 },{ "lf", 0xbc000000, 0xfc080000, "r,xOA,X", 4 },{ "lfbr", 0xbc080000, 0xfc080000, "b,xOA,X", 4 },{ "lwbr", 0x5c000000, 0xfc080000, "b,xOA,X", 4 },{ "stb", 0xd4080000, 0xfc080000, "r,xOA,X", 4 },{ "sth", 0xd4000001, 0xfc080001, "r,xOA,X", 4 },{ "stw", 0xd4000000, 0xfc080000, "r,xOA,X", 4 },{ "std", 0xd4000002, 0xfc080002, "r,xOA,X", 4 },{ "stf", 0xdc000000, 0xfc080000, "r,xOA,X", 4 },{ "stfbr", 0xdc080000, 0xfc080000, "b,xOA,X", 4 },{ "stwbr", 0x54000000, 0xfc080000, "b,xOA,X", 4 },{ "zmb", 0xd8080000, 0xfc080000, "r,xOA,X", 4 },{ "zmh", 0xd8000001, 0xfc080001, "r,xOA,X", 4 },{ "zmw", 0xd8000000, 0xfc080000, "r,xOA,X", 4 },{ "zmd", 0xd8000002, 0xfc080002, "r,xOA,X", 4 },{ "stbp", 0x94080000, 0xfc080000, "r,xOA,X", 4 },{ "sthp", 0x94000001, 0xfc080001, "r,xOA,X", 4 },{ "stwp", 0x94000000, 0xfc080000, "r,xOA,X", 4 },{ "stdp", 0x94000002, 0xfc080002, "r,xOA,X", 4 },{ "lil", 0xf80b0000, 0xfc7f0000, "r,D", 4 },{ "lwsl1", 0xec000000, 0xfc080000, "r,xOA,X", 4 },{ "lwsl2", 0xfc000000, 0xfc080000, "r,xOA,X", 4 },{ "lwsl3", 0xfc080000, 0xfc080000, "r,xOA,X", 4 },{ "lvb", 0xb0080000, 0xfc080000, "v,xOA,X", 4 },{ "lvh", 0xb0000001, 0xfc080001, "v,xOA,X", 4 },{ "lvw", 0xb0000000, 0xfc080000, "v,xOA,X", 4 },{ "lvd", 0xb0000002, 0xfc080002, "v,xOA,X", 4 },{ "liv", 0x3c040000, 0xfc0f0000, "v,R", 2 },{ "livf", 0x3c080000, 0xfc0f0000, "v,R", 2 },{ "stvb", 0xd0080000, 0xfc080000, "v,xOA,X", 4 },{ "stvh", 0xd0000001, 0xfc080001, "v,xOA,X", 4 },{ "stvw", 0xd0000000, 0xfc080000, "v,xOA,X", 4 },{ "stvd", 0xd0000002, 0xfc080002, "v,xOA,X", 4 },{ "trr", 0x2c000000, 0xfc0f0000, "r,R", 2 },{ "trn", 0x2c040000, 0xfc0f0000, "r,R", 2 },{ "trnd", 0x2c0c0000, 0xfc0f0000, "r,R", 2 },{ "trabs", 0x2c010000, 0xfc0f0000, "r,R", 2 },{ "trabsd", 0x2c090000, 0xfc0f0000, "r,R", 2 },{ "trc", 0x2c030000, 0xfc0f0000, "r,R", 2 },{ "xcr", 0x28040000, 0xfc0f0000, "r,R", 2 },{ "cxcr", 0x2c060000, 0xfc0f0000, "r,R", 2 },{ "cxcrd", 0x2c0e0000, 0xfc0f0000, "r,R", 2 },{ "tbrr", 0x2c020000, 0xfc0f0000, "r,B", 2 },{ "trbr", 0x28030000, 0xfc0f0000, "b,R", 2 },{ "xcbr", 0x28020000, 0xfc0f0000, "b,B", 2 },{ "tbrbr", 0x28010000, 0xfc0f0000, "b,B", 2 },{ "trvv", 0x28050000, 0xfc0f0000, "v,V", 2 },{ "trvvn", 0x2c050000, 0xfc0f0000, "v,V", 2 },{ "trvvnd", 0x2c0d0000, 0xfc0f0000, "v,V", 2 },{ "trvab", 0x2c070000, 0xfc0f0000, "v,V", 2 },{ "trvabd", 0x2c0f0000, 0xfc0f0000, "v,V", 2 },{ "cmpv", 0x14060000, 0xfc0f0000, "v,V", 2 },{ "expv", 0x14070000, 0xfc0f0000, "v,V", 2 },{ "mrvvlt", 0x10030000, 0xfc0f0000, "v,V", 2 },{ "mrvvle", 0x10040000, 0xfc0f0000, "v,V", 2 },{ "mrvvgt", 0x14030000, 0xfc0f0000, "v,V", 2 },{ "mrvvge", 0x14040000, 0xfc0f0000, "v,V", 2 },{ "mrvveq", 0x10050000, 0xfc0f0000, "v,V", 2 },{ "mrvvne", 0x10050000, 0xfc0f0000, "v,V", 2 },{ "mrvrlt", 0x100d0000, 0xfc0f0000, "v,R", 2 },{ "mrvrle", 0x100e0000, 0xfc0f0000, "v,R", 2 },{ "mrvrgt", 0x140d0000, 0xfc0f0000, "v,R", 2 },{ "mrvrge", 0x140e0000, 0xfc0f0000, "v,R", 2 },{ "mrvreq", 0x100f0000, 0xfc0f0000, "v,R", 2 },{ "mrvrne", 0x140f0000, 0xfc0f0000, "v,R", 2 },{ "trvr", 0x140b0000, 0xfc0f0000, "r,V", 2 },{ "trrv", 0x140c0000, 0xfc0f0000, "v,R", 2 },{ "bu", 0x40000000, 0xff880000, "xOA,X", 4 },{ "bns", 0x70080000, 0xff880000, "xOA,X", 4 },{ "bnco", 0x70880000, 0xff880000, "xOA,X", 4 },{ "bge", 0x71080000, 0xff880000, "xOA,X", 4 },{ "bne", 0x71880000, 0xff880000, "xOA,X", 4 },{ "bunge", 0x72080000, 0xff880000, "xOA,X", 4 },{ "bunle", 0x72880000, 0xff880000, "xOA,X", 4 },{ "bgt", 0x73080000, 0xff880000, "xOA,X", 4 },{ "bnany", 0x73880000, 0xff880000, "xOA,X", 4 },{ "bs" , 0x70000000, 0xff880000, "xOA,X", 4 },{ "bco", 0x70800000, 0xff880000, "xOA,X", 4 },{ "blt", 0x71000000, 0xff880000, "xOA,X", 4 },{ "beq", 0x71800000, 0xff880000, "xOA,X", 4 },{ "buge", 0x72000000, 0xff880000, "xOA,X", 4 },{ "bult", 0x72800000, 0xff880000, "xOA,X", 4 },{ "ble", 0x73000000, 0xff880000, "xOA,X", 4 },{ "bany", 0x73800000, 0xff880000, "xOA,X", 4 },{ "brlnk", 0x44000000, 0xfc080000, "r,xOA,X", 4 },{ "bib", 0x48000000, 0xfc080000, "r,xOA,X", 4 },{ "bih", 0x48080000, 0xfc080000, "r,xOA,X", 4 },{ "biw", 0x4c000000, 0xfc080000, "r,xOA,X", 4 },{ "bid", 0x4c080000, 0xfc080000, "r,xOA,X", 4 },{ "bivb", 0x60000000, 0xfc080000, "r,xOA,X", 4 },{ "bivh", 0x60080000, 0xfc080000, "r,xOA,X", 4 },{ "bivw", 0x64000000, 0xfc080000, "r,xOA,X", 4 },{ "bivd", 0x64080000, 0xfc080000, "r,xOA,X", 4 },{ "bvsb", 0x68000000, 0xfc080000, "r,xOA,X", 4 },{ "bvsh", 0x68080000, 0xfc080000, "r,xOA,X", 4 },{ "bvsw", 0x6c000000, 0xfc080000, "r,xOA,X", 4 },{ "bvsd", 0x6c080000, 0xfc080000, "r,xOA,X", 4 },{ "camb", 0x80080000, 0xfc080000, "r,xOA,X", 4 },{ "camh", 0x80000001, 0xfc080001, "r,xOA,X", 4 },{ "camw", 0x80000000, 0xfc080000, "r,xOA,X", 4 },{ "camd", 0x80000002, 0xfc080002, "r,xOA,X", 4 },{ "car", 0x10000000, 0xfc0f0000, "r,R", 2 },{ "card", 0x14000000, 0xfc0f0000, "r,R", 2 },{ "ci", 0xf8050000, 0xfc7f0000, "r,I", 4 },{ "chkbnd", 0x5c080000, 0xfc080000, "r,xOA,X", 4 },{ "cavv", 0x10010000, 0xfc0f0000, "v,V", 2 },{ "cavr", 0x10020000, 0xfc0f0000, "v,R", 2 },{ "cavvd", 0x10090000, 0xfc0f0000, "v,V", 2 },{ "cavrd", 0x100b0000, 0xfc0f0000, "v,R", 2 },{ "anmb", 0x84080000, 0xfc080000, "r,xOA,X", 4 },{ "anmh", 0x84000001, 0xfc080001, "r,xOA,X", 4 },{ "anmw", 0x84000000, 0xfc080000, "r,xOA,X", 4 },{ "anmd", 0x84000002, 0xfc080002, "r,xOA,X", 4 },{ "anr", 0x04000000, 0xfc0f0000, "r,R", 2 },{ "ani", 0xf8080000, 0xfc7f0000, "r,I", 4 },{ "ormb", 0xb8080000, 0xfc080000, "r,xOA,X", 4 },{ "ormh", 0xb8000001, 0xfc080001, "r,xOA,X", 4 },{ "ormw", 0xb8000000, 0xfc080000, "r,xOA,X", 4 },{ "ormd", 0xb8000002, 0xfc080002, "r,xOA,X", 4 },{ "orr", 0x08000000, 0xfc0f0000, "r,R", 2 },{ "oi", 0xf8090000, 0xfc7f0000, "r,I", 4 },{ "eomb", 0x8c080000, 0xfc080000, "r,xOA,X", 4 },{ "eomh", 0x8c000001, 0xfc080001, "r,xOA,X", 4 },
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -