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

📄 idecode_ppc.h

📁 skyeye_1_2_2_Rel.rar 最新skyeye源码
💻 H
字号:
/* Simulator for the Renesas (formerly Hitachi) / SuperH Inc. SH architecture.   Written by Steve Chamberlain of Cygnus Support.   sac@cygnus.com   This file is part of SH sim                THIS SOFTWARE IS NOT COPYRIGHTED   Cygnus offers the following for use in the public domain.  Cygnus   makes no warranty with regard to the software or it's performance   and the user accepts the software "AS IS" with all faults.   CYGNUS DISCLAIMS ANY WARRANTIES, EXPRESS OR IMPLIED, WITH REGARD TO   THIS SOFTWARE INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.*//* *  imported by Michael.Kang */#ifndef __IDECODE_PPC_H__#define __IDECODE_PPC_H__#include <stdint.h>typedef void InstructionProc(uint32_t icode);extern InstructionProc **iProcTab;#define INSTR_INDEX(icode) ((((icode)&0xfc000000)>>16) | ((icode & 0x7fe)>>1))#define INSTR_UNINDEX(i) ((i&0xfc00)<<16 | (((i)&0x3ff)<<1) )#define INSTR_INDEX_MAX (0xffff)typedef struct Instruction {        uint32_t mask;        uint32_t value;        char *name;        InstructionProc *proc;} Instruction;void IDecoder_New(int cpu_type);static inline InstructionProc *InstructionProcFind(uint32_t icode) {        int index = INSTR_INDEX(icode);        InstructionProc *proc=iProcTab[index];        return proc;}#endif

⌨️ 快捷键说明

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