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

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

?? ops.c

?? u-boot1.3.0的原碼,從配了網(wǎng)絡(luò)驅(qū)動和FLASH的驅(qū)動,并該用ESC竟如
?? C
?? 第 1 頁 / 共 5 頁
字號:
/*****************************************************************************			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();}/****************************************************************************

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美一级片| 丝袜美腿亚洲色图| 夜夜揉揉日日人人青青一国产精品 | 国产精品久久久久影院老司| 亚洲精品中文在线影院| 久久99久久99| 91美女片黄在线观看| 精品福利在线导航| 一区二区高清免费观看影视大全 | 亚洲综合免费观看高清在线观看| 蜜臀av一区二区| 欧美撒尿777hd撒尿| 国产亚洲一本大道中文在线| 久久99国产精品麻豆| 99精品久久久久久| 久久久亚洲国产美女国产盗摄 | 不卡在线观看av| 欧美电视剧免费全集观看| 日韩美女啊v在线免费观看| 热久久久久久久| 欧美亚洲一区三区| 亚洲欧美日韩在线播放| 亚洲国产精品尤物yw在线观看| 国产精品女同互慰在线看| 精品国产乱子伦一区| 国产亚洲成年网址在线观看| 蜜臀av一区二区三区| 欧美久久婷婷综合色| 亚洲精品视频在线看| 国产福利视频一区二区三区| 9久草视频在线视频精品| 国产精品人成在线观看免费 | 国产永久精品大片wwwapp| 中文字幕一区二区三区乱码在线| 欧美特级限制片免费在线观看| 国内精品伊人久久久久av影院| 国产欧美一区二区三区在线老狼| 色天使色偷偷av一区二区| 久久se精品一区二区| 亚洲一区在线观看网站| 久久一区二区三区四区| 欧洲人成人精品| 岛国精品在线播放| 免费国产亚洲视频| 国产精品久久福利| 精品日韩在线观看| 欧美性猛片xxxx免费看久爱| 国产成人av一区二区三区在线观看| 亚洲国产视频在线| 综合网在线视频| 久久夜色精品国产欧美乱极品| 欧美中文字幕一区二区三区| 欧美日韩视频在线一区二区| 国产资源精品在线观看| 香蕉成人啪国产精品视频综合网 | 欧美剧情电影在线观看完整版免费励志电影| 国产美女精品人人做人人爽| 亚洲国产精品一区二区久久| 国产精品久久久久影院亚瑟| 久久综合成人精品亚洲另类欧美| 欧美日韩一级二级三级| 91小视频在线观看| 国产91丝袜在线18| 国产一区二区三区四区五区入口| 日韩国产一二三区| 亚洲午夜久久久久久久久电影院| 17c精品麻豆一区二区免费| 国产亚洲综合在线| 日韩美女一区二区三区四区| 制服丝袜激情欧洲亚洲| 欧美日韩久久一区| 欧美群妇大交群中文字幕| 欧美综合视频在线观看| 99re热这里只有精品视频| www.欧美.com| 成人免费三级在线| 成人精品一区二区三区四区| 国产69精品久久久久777| 韩日av一区二区| 国模无码大尺度一区二区三区| 美腿丝袜亚洲色图| 另类专区欧美蜜桃臀第一页| 蜜臀久久99精品久久久久宅男| 日日摸夜夜添夜夜添国产精品| 亚洲v日本v欧美v久久精品| 亚洲最色的网站| 亚洲成人av福利| 亚洲成人黄色影院| 日韩精品每日更新| 免费欧美高清视频| 久久av中文字幕片| 国产精品一区二区久久精品爱涩| 国产精品2024| 一本大道综合伊人精品热热| 色婷婷av一区二区三区大白胸| 色香蕉久久蜜桃| 欧美精品tushy高清| 久久综合成人精品亚洲另类欧美| 国产色91在线| 亚洲免费观看在线观看| 亚洲影视在线观看| 日本成人超碰在线观看| 国产在线视频一区二区三区| 丁香天五香天堂综合| 99久久精品一区| 欧美视频三区在线播放| 欧美精品第一页| 久久久精品2019中文字幕之3| 国产精品免费人成网站| 一区二区三区免费| 日本大胆欧美人术艺术动态| 精品一区二区三区免费观看| 99国产欧美另类久久久精品| 欧美视频在线一区| 欧美不卡视频一区| 国产精品传媒入口麻豆| 亚洲成人免费看| 国产成人免费视频精品含羞草妖精| 91在线视频免费观看| 666欧美在线视频| 久久久久久久精| 亚洲第一福利视频在线| 极品少妇xxxx精品少妇偷拍| 色8久久人人97超碰香蕉987| 日韩精品一区二区三区视频 | 中文字幕制服丝袜一区二区三区| 亚洲午夜视频在线| 国产成人午夜片在线观看高清观看| 91国产成人在线| 久久久久久久久伊人| 亚洲小说欧美激情另类| 国产高清亚洲一区| 欧美日产国产精品| 亚洲欧美怡红院| 美女在线视频一区| 欧洲日韩一区二区三区| 欧美经典三级视频一区二区三区| 日韩综合小视频| av一本久道久久综合久久鬼色| 日韩视频一区在线观看| 亚洲激情五月婷婷| 成人免费看黄yyy456| 日韩欧美中文字幕一区| 亚洲一区二区三区自拍| 成人一区二区三区在线观看| 日韩欧美一区在线| 亚洲成av人片一区二区| 99久久国产免费看| 中文字幕免费一区| 九色综合国产一区二区三区| 欧美日韩在线免费视频| 中文字幕在线观看不卡| 精品一区二区综合| 337p亚洲精品色噜噜狠狠| 一片黄亚洲嫩模| 不卡电影一区二区三区| 欧美激情一区二区| 国产一区二区在线影院| 精品美女在线播放| 丝袜亚洲另类欧美| 欧美唯美清纯偷拍| 一区二区三区在线免费播放| www.爱久久.com| 国产精品免费人成网站| 国产精品18久久久久| 欧美精品一区二区三区四区| 免费看欧美美女黄的网站| 91精品蜜臀在线一区尤物| 亚洲bt欧美bt精品| 欧美夫妻性生活| 石原莉奈在线亚洲三区| 欧美日韩色一区| 婷婷久久综合九色国产成人| 欧美精品三级在线观看| 视频一区免费在线观看| 欧美一二三区在线| 精品写真视频在线观看| www激情久久| 精品一区二区三区蜜桃| 精品国产一区二区三区不卡| 精品亚洲成a人在线观看| 久久久久国产精品厨房| 春色校园综合激情亚洲| 国产精品美女视频| 色婷婷综合久久久| 亚洲午夜视频在线| 日韩一区二区三区视频在线观看| 久久精品99国产精品| 精品国产凹凸成av人网站| 国产九色sp调教91| 国产精品福利在线播放| 一本大道久久a久久综合| 亚洲一区二区在线播放相泽 | 成年人午夜久久久| 亚洲精品美腿丝袜| 在线播放日韩导航| 久久福利资源站| 中文文精品字幕一区二区| 色琪琪一区二区三区亚洲区| 婷婷久久综合九色综合绿巨人|