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

📄 ops.h

📁 MIPS处理器的bootloader,龙芯就是用的修改过的PMON2
💻 H
字号:
/******************************************************************************						Realmode X86 Emulator Library**            	Copyright (C) 1996-1999 SciTech Software, Inc.* 				     Copyright (C) David Mosberger-Tang* 					   Copyright (C) 1999 Egbert Eich**  ========================================================================**  Permission to use, copy, modify, distribute, and sell this software and*  its documentation for any purpose is hereby granted without fee,*  provided that the above copyright notice appear in all copies and that*  both that copyright notice and this permission notice appear in*  supporting documentation, and that the name of the authors not be used*  in advertising or publicity pertaining to distribution of the software*  without specific, written prior permission.  The authors makes no*  representations about the suitability of this software for any purpose.*  It is provided "as is" without express or implied warranty.**  THE AUTHORS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,*  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO*  EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR*  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF*  USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR*  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR*  PERFORMANCE OF THIS SOFTWARE.**  ========================================================================** Language:		ANSI C* Environment:	Any* Developer:    Kendall Bennett** Description:  Header file for operand decoding functions.*****************************************************************************/#ifndef __X86EMU_OPS_H#define __X86EMU_OPS_Hstruct x86emu_op {	void (*x86emu_baseop)(u8);#ifdef X86EMU_DEBUG	char * const x86emu_mnem;#endif	void (*x86emu_priop)(void);	void (*x86emu_priopl)(void);};#ifdef X86EMU_DEBUG#define X86EMOP(hand, mnem, op1, op2) \  { hand, mnem, (v_func)op1, (v_func)op2 }#else#define X86EMOP(hand, mnem, op1, op2) \  { hand, (v_func)op1, (v_func)op2 }#endiftypedef void (*v_func)(void);typedef u8 (*u8_func)(u8, u8);typedef u16 (*u16_func)(u16, u16);typedef u32 (*u32_func)(u32, u32);#define U8_FUNC(f) (*((u8_func)f))#define U16_FUNC(f) (*((u16_func)f))#define U32_FUNC(f) (*((u32_func)f))extern struct x86emu_op x86emu_optab[256];extern void (*x86emu_optab2[0x100])(u8 op2);#endif /* __X86EMU_OPS_H */

⌨️ 快捷键说明

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