亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? ops.c

?? u-boot1.3.0的原碼,從配了網(wǎng)絡(luò)驅(qū)動(dòng)和FLASH的驅(qū)動(dòng),并該用ESC竟如
?? C
?? 第 1 頁(yè) / 共 5 頁(yè)
字號(hào):
/*****************************************************************************			Realmode X86 Emulator Library**  Copyright (C) 2007 Freescale Semiconductor, Inc. All rights reserved.*  Jason Jin <Jason.jin@freescale.com>**		Copyright (C) 1991-2004 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:	This file includes subroutines to implement the decoding*		and emulation of all the x86 processor instructions.** There are approximately 250 subroutines in here, which correspond* to the 256 byte-"opcodes" found on the 8086.	The table which* dispatches this is found in the files optab.[ch].** Each opcode proc has a comment preceeding it which gives it's table* address.  Several opcodes are missing (undefined) in the table.** Each proc includes information for decoding (DECODE_PRINTF and* DECODE_PRINTF2), debugging (TRACE_REGS, SINGLE_STEP), and misc* functions (START_OF_INSTR, END_OF_INSTR).** Many of the procedures are *VERY* similar in coding.	This has* allowed for a very large amount of code to be generated in a fairly* short amount of time (i.e. cut, paste, and modify).  The result is* that much of the code below could have been folded into subroutines* for a large reduction in size of this file.  The downside would be* that there would be a penalty in execution speed.  The file could* also have been *MUCH* larger by inlining certain functions which* were called.	This could have resulted even faster execution.	 The* prime directive I used to decide whether to inline the code or to* modularize it, was basically: 1) no unnecessary subroutine calls,* 2) no routines more than about 200 lines in size, and 3) modularize* any code that I might not get right the first time.  The fetch_** subroutines fall into the latter category.  The The decode_* fall* into the second category.  The coding of the "switch(mod){ .... }"* in many of the subroutines below falls into the first category.* Especially, the coding of {add,and,or,sub,...}_{byte,word}* subroutines are an especially glaring case of the third guideline.* Since so much of the code is cloned from other modules (compare* opcode #00 to opcode #01), making the basic operations subroutine* calls is especially important; otherwise mistakes in coding an* "add" would represent a nightmare in maintenance.** Jason ported this file to u-boot. place all the function pointer in* the got2 sector. Removed some opcode.*****************************************************************************/#include <common.h>#if defined(CONFIG_BIOSEMU)#include "x86emu/x86emui.h"/*----------------------------- Implementation ----------------------------*//* constant arrays to do several instructions in just one function */#ifdef DEBUGstatic char *x86emu_GenOpName[8] = {    "ADD", "OR", "ADC", "SBB", "AND", "SUB", "XOR", "CMP"};#endif/* used by several opcodes  */static u8 (*genop_byte_operation[])(u8 d, u8 s) __attribute__ ((section(".got2"))) ={    add_byte,		/* 00 */    or_byte,		/* 01 */    adc_byte,		/* 02 */    sbb_byte,		/* 03 */    and_byte,		/* 04 */    sub_byte,		/* 05 */    xor_byte,		/* 06 */    cmp_byte,		/* 07 */};static u16 (*genop_word_operation[])(u16 d, u16 s) __attribute__ ((section(".got2"))) ={    add_word,		/*00 */    or_word,		/*01 */    adc_word,		/*02 */    sbb_word,		/*03 */    and_word,		/*04 */    sub_word,		/*05 */    xor_word,		/*06 */    cmp_word,		/*07 */};static u32 (*genop_long_operation[])(u32 d, u32 s) __attribute__ ((section(".got2"))) ={    add_long,		/*00 */    or_long,		/*01 */    adc_long,		/*02 */    sbb_long,		/*03 */    and_long,		/*04 */    sub_long,		/*05 */    xor_long,		/*06 */    cmp_long,		/*07 */};/* used by opcodes 80, c0, d0, and d2. */static u8(*opcD0_byte_operation[])(u8 d, u8 s) __attribute__ ((section(".got2"))) ={    rol_byte,    ror_byte,    rcl_byte,    rcr_byte,    shl_byte,    shr_byte,    shl_byte,		/* sal_byte === shl_byte  by definition */    sar_byte,};/* used by opcodes c1, d1, and d3. */static u16(*opcD1_word_operation[])(u16 s, u8 d) __attribute__ ((section(".got2"))) ={    rol_word,    ror_word,    rcl_word,    rcr_word,    shl_word,    shr_word,    shl_word,		/* sal_byte === shl_byte  by definition */    sar_word,};/* used by opcodes c1, d1, and d3. */static u32 (*opcD1_long_operation[])(u32 s, u8 d) __attribute__ ((section(".got2"))) ={    rol_long,    ror_long,    rcl_long,    rcr_long,    shl_long,    shr_long,    shl_long,		/* sal_byte === shl_byte  by definition */    sar_long,};#ifdef DEBUGstatic char *opF6_names[8] =  { "TEST\t", "", "NOT\t", "NEG\t", "MUL\t", "IMUL\t", "DIV\t", "IDIV\t" };#endif/****************************************************************************PARAMETERS:op1 - Instruction op codeREMARKS:Handles illegal opcodes.****************************************************************************/void x86emuOp_illegal_op(    u8 op1){    START_OF_INSTR();    if (M.x86.R_SP != 0) {	DECODE_PRINTF("ILLEGAL X86 OPCODE\n");	TRACE_REGS();	DB( printk("%04x:%04x: %02X ILLEGAL X86 OPCODE!\n",	    M.x86.R_CS, M.x86.R_IP-1,op1));	HALT_SYS();	}    else {	/* If we get here, it means the stack pointer is back to zero	 * so we are just returning from an emulator service call	 * so therte is no need to display an error message. We trap	 * the emulator with an 0xF1 opcode to finish the service	 * call.	 */	X86EMU_halt_sys();	}    END_OF_INSTR();}/****************************************************************************REMARKS:Handles opcodes 0x00, 0x08, 0x10, 0x18, 0x20, 0x28, 0x30, 0x38****************************************************************************/void x86emuOp_genop_byte_RM_R(u8 op1){    int mod, rl, rh;    uint destoffset;    u8 *destreg, *srcreg;    u8 destval;    op1 = (op1 >> 3) & 0x7;    START_OF_INSTR();    DECODE_PRINTF(x86emu_GenOpName[op1]);    DECODE_PRINTF("\t");    FETCH_DECODE_MODRM(mod, rh, rl);    if(mod<3)	{ destoffset = decode_rmXX_address(mod,rl);	DECODE_PRINTF(",");	destval = fetch_data_byte(destoffset);	srcreg = DECODE_RM_BYTE_REGISTER(rh);	DECODE_PRINTF("\n");	TRACE_AND_STEP();	destval = genop_byte_operation[op1](destval, *srcreg);	store_data_byte(destoffset, destval);	}    else	{			/* register to register */	destreg = DECODE_RM_BYTE_REGISTER(rl);	DECODE_PRINTF(",");	srcreg = DECODE_RM_BYTE_REGISTER(rh);	DECODE_PRINTF("\n");	TRACE_AND_STEP();	*destreg = genop_byte_operation[op1](*destreg, *srcreg);	}    DECODE_CLEAR_SEGOVR();    END_OF_INSTR();}/****************************************************************************REMARKS:Handles opcodes 0x01, 0x09, 0x11, 0x19, 0x21, 0x29, 0x31, 0x39****************************************************************************/void x86emuOp_genop_word_RM_R(u8 op1){    int mod, rl, rh;    uint destoffset;    op1 = (op1 >> 3) & 0x7;    START_OF_INSTR();    DECODE_PRINTF(x86emu_GenOpName[op1]);    DECODE_PRINTF("\t");    FETCH_DECODE_MODRM(mod, rh, rl);    if(mod<3) {	destoffset = decode_rmXX_address(mod,rl);	if (M.x86.mode & SYSMODE_PREFIX_DATA) {	    u32 destval;	    u32 *srcreg;	    DECODE_PRINTF(",");	    destval = fetch_data_long(destoffset);	    srcreg = DECODE_RM_LONG_REGISTER(rh);	    DECODE_PRINTF("\n");	    TRACE_AND_STEP();	    destval = genop_long_operation[op1](destval, *srcreg);	    store_data_long(destoffset, destval);	} else {	    u16 destval;	    u16 *srcreg;	    DECODE_PRINTF(",");	    destval = fetch_data_word(destoffset);	    srcreg = DECODE_RM_WORD_REGISTER(rh);	    DECODE_PRINTF("\n");	    TRACE_AND_STEP();	    destval = genop_word_operation[op1](destval, *srcreg);	    store_data_word(destoffset, destval);	}    } else {			/* register to register */	if (M.x86.mode & SYSMODE_PREFIX_DATA) {	    u32 *destreg,*srcreg;	    destreg = DECODE_RM_LONG_REGISTER(rl);	    DECODE_PRINTF(",");	    srcreg = DECODE_RM_LONG_REGISTER(rh);	    DECODE_PRINTF("\n");	    TRACE_AND_STEP();	    *destreg = genop_long_operation[op1](*destreg, *srcreg);	} else {	    u16 *destreg,*srcreg;	    destreg = DECODE_RM_WORD_REGISTER(rl);	    DECODE_PRINTF(",");	    srcreg = DECODE_RM_WORD_REGISTER(rh);	    DECODE_PRINTF("\n");	    TRACE_AND_STEP();	    *destreg = genop_word_operation[op1](*destreg, *srcreg);	}    }    DECODE_CLEAR_SEGOVR();    END_OF_INSTR();}/****************************************************************************REMARKS:Handles opcodes 0x02, 0x0a, 0x12, 0x1a, 0x22, 0x2a, 0x32, 0x3a****************************************************************************/void x86emuOp_genop_byte_R_RM(u8 op1){    int mod, rl, rh;    u8 *destreg, *srcreg;    uint srcoffset;    u8 srcval;    op1 = (op1 >> 3) & 0x7;    START_OF_INSTR();    DECODE_PRINTF(x86emu_GenOpName[op1]);    DECODE_PRINTF("\t");    FETCH_DECODE_MODRM(mod, rh, rl);    if (mod < 3) {	destreg = DECODE_RM_BYTE_REGISTER(rh);	DECODE_PRINTF(",");	srcoffset = decode_rmXX_address(mod,rl);	srcval = fetch_data_byte(srcoffset);    } else {	 /* register to register */	destreg = DECODE_RM_BYTE_REGISTER(rh);	DECODE_PRINTF(",");	srcreg = DECODE_RM_BYTE_REGISTER(rl);	srcval = *srcreg;    }    DECODE_PRINTF("\n");    TRACE_AND_STEP();    *destreg = genop_byte_operation[op1](*destreg, srcval);    DECODE_CLEAR_SEGOVR();    END_OF_INSTR();}/****************************************************************************REMARKS:Handles opcodes 0x03, 0x0b, 0x13, 0x1b, 0x23, 0x2b, 0x33, 0x3b****************************************************************************/void x86emuOp_genop_word_R_RM(u8 op1){    int mod, rl, rh;    uint srcoffset;    u32 *destreg32, srcval;    u16 *destreg;    op1 = (op1 >> 3) & 0x7;    START_OF_INSTR();    DECODE_PRINTF(x86emu_GenOpName[op1]);    DECODE_PRINTF("\t");    FETCH_DECODE_MODRM(mod, rh, rl);    if (mod < 3) {	srcoffset = decode_rmXX_address(mod,rl);	if (M.x86.mode & SYSMODE_PREFIX_DATA) {	    destreg32 = DECODE_RM_LONG_REGISTER(rh);	    DECODE_PRINTF(",");	    srcval = fetch_data_long(srcoffset);	    DECODE_PRINTF("\n");	    TRACE_AND_STEP();	    *destreg32 = genop_long_operation[op1](*destreg32, srcval);	} else {	    destreg = DECODE_RM_WORD_REGISTER(rh);	    DECODE_PRINTF(",");	    srcval = fetch_data_word(srcoffset);	    DECODE_PRINTF("\n");	    TRACE_AND_STEP();	    *destreg = genop_word_operation[op1](*destreg, srcval);	}    } else {			 /* register to register */	if (M.x86.mode & SYSMODE_PREFIX_DATA) {	    u32 *srcreg;	    destreg32 = DECODE_RM_LONG_REGISTER(rh);	    DECODE_PRINTF(",");	    srcreg = DECODE_RM_LONG_REGISTER(rl);	    DECODE_PRINTF("\n");	    TRACE_AND_STEP();	    *destreg32 = genop_long_operation[op1](*destreg32, *srcreg);	} else {	    u16 *srcreg;	    destreg = DECODE_RM_WORD_REGISTER(rh);	    DECODE_PRINTF(",");	    srcreg = DECODE_RM_WORD_REGISTER(rl);	    DECODE_PRINTF("\n");	    TRACE_AND_STEP();	    *destreg = genop_word_operation[op1](*destreg, *srcreg);	}    }    DECODE_CLEAR_SEGOVR();    END_OF_INSTR();}/****************************************************************************REMARKS:Handles opcodes 0x04, 0x0c, 0x14, 0x1c, 0x24, 0x2c, 0x34, 0x3c****************************************************************************/void x86emuOp_genop_byte_AL_IMM(u8 op1){    u8 srcval;    op1 = (op1 >> 3) & 0x7;    START_OF_INSTR();    DECODE_PRINTF(x86emu_GenOpName[op1]);    DECODE_PRINTF("\tAL,");    srcval = fetch_byte_imm();    DECODE_PRINTF2("%x\n", srcval);    TRACE_AND_STEP();    M.x86.R_AL = genop_byte_operation[op1](M.x86.R_AL, srcval);    DECODE_CLEAR_SEGOVR();    END_OF_INSTR();}/****************************************************************************REMARKS:Handles opcodes 0x05, 0x0d, 0x15, 0x1d, 0x25, 0x2d, 0x35, 0x3d****************************************************************************/void x86emuOp_genop_word_AX_IMM(u8 op1){    u32 srcval;    op1 = (op1 >> 3) & 0x7;    START_OF_INSTR();    if (M.x86.mode & SYSMODE_PREFIX_DATA) {	DECODE_PRINTF(x86emu_GenOpName[op1]);	DECODE_PRINTF("\tEAX,");	srcval = fetch_long_imm();    } else {	DECODE_PRINTF(x86emu_GenOpName[op1]);	DECODE_PRINTF("\tAX,");	srcval = fetch_word_imm();    }    DECODE_PRINTF2("%x\n", srcval);    TRACE_AND_STEP();    if (M.x86.mode & SYSMODE_PREFIX_DATA) {	M.x86.R_EAX = genop_long_operation[op1](M.x86.R_EAX, srcval);    } else {	M.x86.R_AX = genop_word_operation[op1](M.x86.R_AX, (u16)srcval);    }    DECODE_CLEAR_SEGOVR();    END_OF_INSTR();}/****************************************************************************REMARKS:Handles opcode 0x06****************************************************************************/void x86emuOp_push_ES(u8 X86EMU_UNUSED(op1)){    START_OF_INSTR();    DECODE_PRINTF("PUSH\tES\n");    TRACE_AND_STEP();    push_word(M.x86.R_ES);    DECODE_CLEAR_SEGOVR();    END_OF_INSTR();}/****************************************************************************REMARKS:Handles opcode 0x07****************************************************************************/void x86emuOp_pop_ES(u8 X86EMU_UNUSED(op1)){    START_OF_INSTR();    DECODE_PRINTF("POP\tES\n");    TRACE_AND_STEP();    M.x86.R_ES = pop_word();    DECODE_CLEAR_SEGOVR();    END_OF_INSTR();}/****************************************************************************

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲午夜电影在线| 裸体健美xxxx欧美裸体表演| 欧美一区永久视频免费观看| 成人一级视频在线观看| 日韩国产成人精品| 亚洲精品视频观看| 国产精品素人一区二区| 日韩欧美一区二区久久婷婷| 欧美视频一区二区三区四区 | av在线不卡观看免费观看| 日韩精品电影一区亚洲| 亚洲乱码一区二区三区在线观看| 久久久久久久av麻豆果冻| 欧美三级午夜理伦三级中视频| 国产精品一区久久久久| 青青国产91久久久久久| 亚洲综合自拍偷拍| 亚洲免费av高清| 亚洲日本在线天堂| 国产精品欧美极品| 欧美激情一区二区三区不卡| 欧美一级搡bbbb搡bbbb| 欧美猛男超大videosgay| 色国产综合视频| 色综合久久中文字幕综合网| kk眼镜猥琐国模调教系列一区二区| 国产精品综合在线视频| 黄一区二区三区| 精品一区二区免费视频| 美女一区二区视频| 理论电影国产精品| 精品一区精品二区高清| 精品一区二区三区蜜桃| 美女国产一区二区三区| 美女视频网站久久| 久久99精品视频| 国产在线国偷精品产拍免费yy| 九九精品一区二区| 韩国三级电影一区二区| 国产剧情一区二区三区| 国产夫妻精品视频| 成人av中文字幕| 97精品电影院| 欧美中文字幕久久| 欧美日韩在线观看一区二区 | 日本不卡视频一二三区| 秋霞午夜av一区二区三区| 青青草国产成人99久久| 精品一二线国产| 国产一区二区三区久久悠悠色av| 国产麻豆91精品| 成人av在线一区二区| 91亚洲精品久久久蜜桃网站| 91行情网站电视在线观看高清版| 在线观看日韩毛片| 欧美一区二区三区免费大片| 精品免费视频.| 国产欧美日韩另类一区| 亚洲欧洲精品天堂一级| 亚洲一区二区在线免费观看视频| 日韩影院免费视频| 国产呦萝稀缺另类资源| 成人免费高清视频| 91免费在线视频观看| 在线播放亚洲一区| 精品国产乱码久久久久久蜜臀| 久久久www成人免费无遮挡大片| 日本一区二区成人| 亚洲地区一二三色| 国产一区二区看久久| 欧美日韩国产另类不卡| 亚洲精品一区二区三区影院| 欧美国产日韩亚洲一区| 亚洲伊人伊色伊影伊综合网| 美女脱光内衣内裤视频久久影院| 国产91精品一区二区麻豆亚洲| 在线区一区二视频| 26uuu国产一区二区三区 | 精品一二三四在线| 色呦呦一区二区三区| 欧美成人精品二区三区99精品| 欧美国产精品v| 午夜欧美一区二区三区在线播放| 国产一区二区不卡老阿姨| 色激情天天射综合网| 久久久蜜桃精品| 午夜不卡av在线| 99天天综合性| 精品久久久网站| 亚洲乱码国产乱码精品精可以看| 六月婷婷色综合| 欧美性淫爽ww久久久久无| 国产亚洲午夜高清国产拍精品| 亚洲国产精品天堂| 成人丝袜视频网| 日韩欧美你懂的| 亚洲成人tv网| 99国产精品视频免费观看| 日韩精品中文字幕一区二区三区| 亚洲私人影院在线观看| 国产精品亚洲人在线观看| 欧美精品粉嫩高潮一区二区| 国产精品国产a| 国内精品伊人久久久久av影院| 欧美日韩成人综合天天影院| 国产精品的网站| 国产iv一区二区三区| 欧美电影免费观看完整版| 亚洲成人自拍偷拍| 一本到不卡精品视频在线观看| 日本一区二区三区免费乱视频| 日韩av午夜在线观看| 欧美视频你懂的| 亚洲特黄一级片| 99综合电影在线视频| 久久九九久久九九| 精品影院一区二区久久久| 在线播放欧美女士性生活| 亚洲一区二区三区四区五区中文 | 亚洲精品免费看| 97超碰欧美中文字幕| 欧美激情在线观看视频免费| 寂寞少妇一区二区三区| 欧美一个色资源| 日韩电影在线免费看| 欧美精品欧美精品系列| 亚洲电影一区二区| 欧美日韩成人在线| 日韩在线一二三区| 91精品国产综合久久福利软件| 图片区小说区区亚洲影院| 欧美日韩三级一区| 日韩成人伦理电影在线观看| 91精品麻豆日日躁夜夜躁| 日韩在线一区二区三区| 制服丝袜中文字幕亚洲| 日本欧美大码aⅴ在线播放| 欧美日韩免费观看一区二区三区| 亚洲一区二区视频| 欧美精品视频www在线观看| 午夜欧美一区二区三区在线播放| 欧美日韩激情一区二区| 美女爽到高潮91| 久久久www成人免费无遮挡大片| 国产成人精品www牛牛影视| 国产精品免费视频网站| 91蜜桃在线免费视频| 亚洲一区二区三区中文字幕| 欧美精品自拍偷拍| 经典一区二区三区| 国产精品人妖ts系列视频| 99久久婷婷国产| 午夜精品视频一区| 欧美电影免费观看高清完整版在线| 国产一区二区伦理| 亚洲三级免费观看| 69堂国产成人免费视频| 国产一区二区三区久久久| 中文字幕国产一区| 欧美日韩午夜影院| 国产主播一区二区| 亚洲人成网站色在线观看| 欧美日韩一卡二卡三卡| 免费在线欧美视频| 国产欧美一区二区在线| 91视频国产资源| 奇米一区二区三区av| 国产日韩欧美精品在线| eeuss影院一区二区三区| 亚洲一区二区美女| 亚洲精品在线免费播放| 91免费观看视频在线| 免费在线欧美视频| 日韩一区有码在线| 日韩一区二区在线观看视频 | 欧美日韩中文一区| 国产伦理精品不卡| 一区二区三区四区亚洲| 日韩欧美一级片| 91日韩在线专区| 寂寞少妇一区二区三区| 亚洲欧美一区二区三区国产精品| 欧美一区二区三区视频在线观看| 国产mv日韩mv欧美| 日本在线不卡视频| 日韩毛片高清在线播放| 精品国产乱码久久久久久牛牛 | 亚洲国产精品一区二区www | 欧美日韩和欧美的一区二区| 紧缚捆绑精品一区二区| 亚洲一卡二卡三卡四卡无卡久久| 精品国产sm最大网站免费看| 欧美专区亚洲专区| 丁香桃色午夜亚洲一区二区三区| 婷婷中文字幕一区三区| 中文字幕一区二区三区精华液| 精品国产麻豆免费人成网站| 在线精品视频免费观看| 不卡的看片网站| 国产一区二三区好的|