📄 dsmsimsolarislib.h
字号:
/* dsmSimsparcLib.h - simsparc disassembler library header *//* Copyright 1984-1995 Wind River Systems, Inc. *//*modification history--------------------01a,07jun95,ism derived from simsparc*/#ifndef __INCdsmSimsparcLibh#define __INCdsmSimsparcLibh#ifdef __cplusplusextern "C" {#endif#include "vwModNum.h"/* dsmLib status codes */#define S_dsmLib_UNKNOWN_INSTRUCTION (M_dsmLib | 1)/* instruction fields *//* instruction fields: opcode masks */#define OP 0xC0000000 /* general opcode */#define OP2 0x01C00000 /* op2 opcode */#define OP3 0x01F80000 /* op3 opcode */#define OPFC 0x00003FE0 /* floating point or other coprocessor opcode *//* instruction fields: register masks */#define RD 0x3E000000 /* destination register */#define RS1 0x0007C000 /* source register 1 */#define RS2 0x0000001F /* source register 2 *//* instruction fields: constant masks */#define DISP30 0x3FFFFFFF /* 30-bit sign-extended word displacement */#define DISP22 0x003FFFFF /* 22-bit sign-extended word displacement */#define DISP22_SIGN 0x00200000 /* 22-bit sign */#define CONST22 0x003FFFFF /* 22-bit constant value (structure size) */#define IMM22 0x003FFFFF /* 22-bit immediate value (result of %hi) */#define SIMM13 0x00001FFF /* 13-bit sign-extended immediate value */#define SIMM13_SIGN 0x00001000 /* 13-bit sign */#define LOBITS 0x000003FF /* 10-bit immediate value (result of %lo) */#define TRAP_NUMBER 0x0000007F /* trap number *//* instruction fields: miscellaneous masks */#define A 0x20000000 /* annul bit */#define COND 0x1E000000 /* test condition */#define I 0x00002000 /* selects type of second ALU operand */#define ASI 0x00001FE0 /* alternate address space indicator */#define SHCNT 0x0000001F /* shift count *//* instruction fields: opcode, register, constant, and miscellaneous shift counts */#define DISP30_SHIFT_CT 2 /* 30-bit sign-extended word displacement */#define DISP22_SHIFT_CT 2 /* 22-bit sign-extended word displacement */#define IMM22_SHIFT_CT 10 /* 22-bit immediate value */#define OP_SHIFT_CT 30 /* general opcode */#define A_SHIFT_CT 29 /* annul bit */#define RD_SHIFT_CT 25 /* destination register */#define COND_SHIFT_CT 25 /* test condition */#define OP2_SHIFT_CT 22 /* op2 opcode */#define OP3_SHIFT_CT 19 /* op3 opcode */#define RS1_SHIFT_CT 14 /* source register 1 */#define I_SHIFT_CT 13 /* I field */#define OPFC_SHIFT_CT 5 /* coprocessor opcode */#define ASI_SHIFT_CT 5 /* alternate address space indicator *//* instruction fields: things that don't fit under other categories */#define DISP22_SIGN_EXTEND 0xFFC00000 /* 22-bit sign-extended word displacement */#define SIMM13_SIGN_EXTEND 0xFFFFE000 /* 13-bit sign-extended immediate value *//* instruction fields: opcode equates */#define OP_3 0xC0000000 /* general opcode: load/store */#define OP_2 0x80000000 /* general opcode: arithmetic */#define OP_1 0x40000000 /* general opcode: Call */#define OP_0 0x00000000 /* general opcode: Bicc, FBfcc, CBccc, SETHI */#define OP2_7 0x01C00000 /* op2 opcode: CBccc */#define OP2_6 0x01800000 /* op2 opcode: FBfcc */#define OP2_5 0x01400000 /* op2 opcode: (n/i) */#define OP2_4 0x01000000 /* op2 opcode: SETHI */#define OP2_3 0x00C00000 /* op2 opcode: (n/i) */#define OP2_2 0x00800000 /* op2 opcode: Bicc */#define OP2_1 0x00400000 /* op2 opcode: (n/i) */#define OP2_0 0x00000000 /* op2 opcode: UNIMPlemented */#define OP3_3F 0x01F80000 /* op3 opcode */#define OP3_3E 0x01F00000 /* op3 opcode */#define OP3_3D 0x01E80000 /* op3 opcode */#define OP3_3C 0x01E00000 /* op3 opcode */#define OP3_3B 0x01D80000 /* op3 opcode */#define OP3_3A 0x01D00000 /* op3 opcode */#define OP3_39 0x01C80000 /* op3 opcode */#define OP3_38 0x01C00000 /* op3 opcode */#define OP3_37 0x01B80000 /* op3 opcode */#define OP3_36 0x01B00000 /* op3 opcode */#define OP3_35 0x01A80000 /* op3 opcode */#define OP3_34 0x01A00000 /* op3 opcode */#define OP3_33 0x01980000 /* op3 opcode */#define OP3_32 0x01900000 /* op3 opcode */#define OP3_31 0x01880000 /* op3 opcode */#define OP3_30 0x01800000 /* op3 opcode */#define OP3_2F 0x01780000 /* op3 opcode */#define OP3_2E 0x01700000 /* op3 opcode */#define OP3_2D 0x01680000 /* op3 opcode */#define OP3_2C 0x01600000 /* op3 opcode */#define OP3_2B 0x01580000 /* op3 opcode */#define OP3_2A 0x01500000 /* op3 opcode */#define OP3_29 0x01480000 /* op3 opcode */#define OP3_28 0x01400000 /* op3 opcode */#define OP3_27 0x01380000 /* op3 opcode */#define OP3_26 0x01300000 /* op3 opcode */#define OP3_25 0x01280000 /* op3 opcode */#define OP3_24 0x01200000 /* op3 opcode */#define OP3_23 0x01180000 /* op3 opcode */#define OP3_22 0x01100000 /* op3 opcode */#define OP3_21 0x01080000 /* op3 opcode */#define OP3_20 0x01000000 /* op3 opcode */#define OP3_1F 0x00F80000 /* op3 opcode */#define OP3_1E 0x00F00000 /* op3 opcode */#define OP3_1D 0x00E80000 /* op3 opcode */#define OP3_1C 0x00E00000 /* op3 opcode */#define OP3_1B 0x00D80000 /* op3 opcode */#define OP3_1A 0x00D00000 /* op3 opcode */#define OP3_19 0x00C80000 /* op3 opcode */#define OP3_18 0x00C00000 /* op3 opcode */#define OP3_17 0x00B80000 /* op3 opcode */#define OP3_16 0x00B00000 /* op3 opcode */#define OP3_15 0x00A80000 /* op3 opcode */#define OP3_14 0x00A00000 /* op3 opcode */#define OP3_13 0x00980000 /* op3 opcode */#define OP3_12 0x00900000 /* op3 opcode */#define OP3_11 0x00880000 /* op3 opcode */#define OP3_10 0x00800000 /* op3 opcode */#define OP3_0F 0x00780000 /* op3 opcode */#define OP3_0E 0x00700000 /* op3 opcode */#define OP3_0D 0x00680000 /* op3 opcode */#define OP3_0C 0x00600000 /* op3 opcode */#define OP3_0B 0x00580000 /* op3 opcode */#define OP3_0A 0x00500000 /* op3 opcode */#define OP3_09 0x00480000 /* op3 opcode */#define OP3_08 0x00400000 /* op3 opcode */#define OP3_07 0x00380000 /* op3 opcode */#define OP3_06 0x00300000 /* op3 opcode */#define OP3_05 0x00280000 /* op3 opcode */#define OP3_04 0x00200000 /* op3 opcode */#define OP3_03 0x00180000 /* op3 opcode */#define OP3_02 0x00100000 /* op3 opcode */#define OP3_01 0x00080000 /* op3 opcode */#define OP3_00 0x00000000 /* op3 opcode */#define OPFC_1FF 0x00003FE0 /* floating point or coprocessor opcode */#define OPFC_1FE 0x00003FC0 /* floating point or coprocessor opcode */#define OPFC_1FD 0x00003FA0 /* floating point or coprocessor opcode */#define OPFC_1FC 0x00003F80 /* floating point or coprocessor opcode */#define OPFC_1FB 0x00003F60 /* floating point or coprocessor opcode */#define OPFC_1FA 0x00003F40 /* floating point or coprocessor opcode */#define OPFC_1F9 0x00003F20 /* floating point or coprocessor opcode */#define OPFC_1F8 0x00003F00 /* floating point or coprocessor opcode */#define OPFC_1F7 0x00003EE0 /* floating point or coprocessor opcode */#define OPFC_1F6 0x00003EC0 /* floating point or coprocessor opcode */#define OPFC_1F5 0x00003EA0 /* floating point or coprocessor opcode */#define OPFC_1F4 0x00003E80 /* floating point or coprocessor opcode */#define OPFC_1F3 0x00003E60 /* floating point or coprocessor opcode */#define OPFC_1F2 0x00003E40 /* floating point or coprocessor opcode */#define OPFC_1F1 0x00003E20 /* floating point or coprocessor opcode */#define OPFC_1F0 0x00003E00 /* floating point or coprocessor opcode */#define OPFC_1EF 0x00003DE0 /* floating point or coprocessor opcode */#define OPFC_1EE 0x00003DC0 /* floating point or coprocessor opcode */#define OPFC_1ED 0x00003DA0 /* floating point or coprocessor opcode */#define OPFC_1EC 0x00003D80 /* floating point or coprocessor opcode */#define OPFC_1EB 0x00003D60 /* floating point or coprocessor opcode */#define OPFC_1EA 0x00003D40 /* floating point or coprocessor opcode */#define OPFC_1E9 0x00003D20 /* floating point or coprocessor opcode */#define OPFC_1E8 0x00003D00 /* floating point or coprocessor opcode */#define OPFC_1E7 0x00003CE0 /* floating point or coprocessor opcode */#define OPFC_1E6 0x00003CC0 /* floating point or coprocessor opcode */#define OPFC_1E5 0x00003CA0 /* floating point or coprocessor opcode */#define OPFC_1E4 0x00003C80 /* floating point or coprocessor opcode */#define OPFC_1E3 0x00003C60 /* floating point or coprocessor opcode */#define OPFC_1E2 0x00003C40 /* floating point or coprocessor opcode */#define OPFC_1E1 0x00003C20 /* floating point or coprocessor opcode */#define OPFC_1E0 0x00003C00 /* floating point or coprocessor opcode */#define OPFC_1DF 0x00003BE0 /* floating point or coprocessor opcode */#define OPFC_1DE 0x00003BC0 /* floating point or coprocessor opcode */#define OPFC_1DD 0x00003BA0 /* floating point or coprocessor opcode */#define OPFC_1DC 0x00003B80 /* floating point or coprocessor opcode */#define OPFC_1DB 0x00003B60 /* floating point or coprocessor opcode */#define OPFC_1DA 0x00003B40 /* floating point or coprocessor opcode */#define OPFC_1D9 0x00003B20 /* floating point or coprocessor opcode */#define OPFC_1D8 0x00003B00 /* floating point or coprocessor opcode */#define OPFC_1D7 0x00003AE0 /* floating point or coprocessor opcode */#define OPFC_1D6 0x00003AC0 /* floating point or coprocessor opcode */#define OPFC_1D5 0x00003AA0 /* floating point or coprocessor opcode */#define OPFC_1D4 0x00003A80 /* floating point or coprocessor opcode */#define OPFC_1D3 0x00003A60 /* floating point or coprocessor opcode */#define OPFC_1D2 0x00003A40 /* floating point or coprocessor opcode */#define OPFC_1D1 0x00003A20 /* floating point or coprocessor opcode */#define OPFC_1D0 0x00003A00 /* floating point or coprocessor opcode */#define OPFC_1CF 0x000039E0 /* floating point or coprocessor opcode */#define OPFC_1CE 0x000039C0 /* floating point or coprocessor opcode */#define OPFC_1CD 0x000039A0 /* floating point or coprocessor opcode */#define OPFC_1CC 0x00003980 /* floating point or coprocessor opcode */#define OPFC_1CB 0x00003960 /* floating point or coprocessor opcode */#define OPFC_1CA 0x00003940 /* floating point or coprocessor opcode */#define OPFC_1C9 0x00003920 /* floating point or coprocessor opcode */#define OPFC_1C8 0x00003900 /* floating point or coprocessor opcode */#define OPFC_1C7 0x000038E0 /* floating point or coprocessor opcode */#define OPFC_1C6 0x000038C0 /* floating point or coprocessor opcode */#define OPFC_1C5 0x000038A0 /* floating point or coprocessor opcode */#define OPFC_1C4 0x00003880 /* floating point or coprocessor opcode */#define OPFC_1C3 0x00003860 /* floating point or coprocessor opcode */#define OPFC_1C2 0x00003840 /* floating point or coprocessor opcode */#define OPFC_1C1 0x00003820 /* floating point or coprocessor opcode */#define OPFC_1C0 0x00003800 /* floating point or coprocessor opcode */#define OPFC_1BF 0x000037E0 /* floating point or coprocessor opcode */#define OPFC_1BE 0x000037C0 /* floating point or coprocessor opcode */#define OPFC_1BD 0x000037A0 /* floating point or coprocessor opcode */#define OPFC_1BC 0x00003780 /* floating point or coprocessor opcode */#define OPFC_1BB 0x00003760 /* floating point or coprocessor opcode */#define OPFC_1BA 0x00003740 /* floating point or coprocessor opcode */#define OPFC_1B9 0x00003720 /* floating point or coprocessor opcode */#define OPFC_1B8 0x00003700 /* floating point or coprocessor opcode */#define OPFC_1B7 0x000036E0 /* floating point or coprocessor opcode */#define OPFC_1B6 0x000036C0 /* floating point or coprocessor opcode */#define OPFC_1B5 0x000036A0 /* floating point or coprocessor opcode */#define OPFC_1B4 0x00003680 /* floating point or coprocessor opcode */#define OPFC_1B3 0x00003660 /* floating point or coprocessor opcode */#define OPFC_1B2 0x00003640 /* floating point or coprocessor opcode */#define OPFC_1B1 0x00003620 /* floating point or coprocessor opcode */#define OPFC_1B0 0x00003600 /* floating point or coprocessor opcode */#define OPFC_1AF 0x000035E0 /* floating point or coprocessor opcode */#define OPFC_1AE 0x000035C0 /* floating point or coprocessor opcode */#define OPFC_1AD 0x000035A0 /* floating point or coprocessor opcode */#define OPFC_1AC 0x00003580 /* floating point or coprocessor opcode */#define OPFC_1AB 0x00003560 /* floating point or coprocessor opcode */#define OPFC_1AA 0x00003540 /* floating point or coprocessor opcode */#define OPFC_1A9 0x00003520 /* floating point or coprocessor opcode */#define OPFC_1A8 0x00003500 /* floating point or coprocessor opcode */#define OPFC_1A7 0x000034E0 /* floating point or coprocessor opcode */#define OPFC_1A6 0x000034C0 /* floating point or coprocessor opcode */#define OPFC_1A5 0x000034A0 /* floating point or coprocessor opcode */#define OPFC_1A4 0x00003480 /* floating point or coprocessor opcode */#define OPFC_1A3 0x00003460 /* floating point or coprocessor opcode */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -