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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? search.c

?? MIPS YAMON, a famous monitor inc. source, make file and PDF manuals.
?? C
字號:
/************************************************************************ * *  search.c * *  Monitor command to search for ascii or hex string in memory. * *  search [-asc|-hex] <address> <length> <string> * * ###################################################################### * * mips_start_of_legal_notice *  * Copyright (c) 2004 MIPS Technologies, Inc. All rights reserved. * * * Unpublished rights (if any) reserved under the copyright laws of the * United States of America and other countries. * * This code is proprietary to MIPS Technologies, Inc. ("MIPS * Technologies"). Any copying, reproducing, modifying or use of this code * (in whole or in part) that is not expressly permitted in writing by MIPS * Technologies or an authorized third party is strictly prohibited. At a * minimum, this code is protected under unfair competition and copyright * laws. Violations thereof may result in criminal penalties and fines. * * MIPS Technologies reserves the right to change this code to improve * function, design or otherwise. MIPS Technologies does not assume any * liability arising out of the application or use of this code, or of any * error or omission in such code. Any warranties, whether express, * statutory, implied or otherwise, including but not limited to the implied * warranties of merchantability or fitness for a particular purpose, are * excluded. Except as expressly provided in any written license agreement * from MIPS Technologies or an authorized third party, the furnishing of * this code does not give recipient any license to any intellectual * property rights, including any patent rights, that cover this code. * * This code shall not be exported, reexported, transferred, or released, * directly or indirectly, in violation of the law of any country or * international law, regulation, treaty, Executive Order, statute, * amendments or supplements thereto. Should a conflict arise regarding the * export, reexport, transfer, or release of this code, the laws of the * United States of America shall be the governing law. * * This code constitutes one or more of the following: commercial computer * software, commercial computer software documentation or other commercial * items. If the user of this code, or any related documentation of any * kind, including related technical data or manuals, is an agency, * department, or other entity of the United States government * ("Government"), the use, duplication, reproduction, release, * modification, disclosure, or transfer of this code, or any related * documentation of any kind, is restricted in accordance with Federal * Acquisition Regulation 12.212 for civilian agencies and Defense Federal * Acquisition Regulation Supplement 227.7202 for military agencies. The use * of this code by the Government is further restricted in accordance with * the terms of the license agreement(s) and/or applicable contract terms * and conditions covering this code from MIPS Technologies or an authorized * third party. * * * *  * mips_end_of_legal_notice *  * ************************************************************************//************************************************************************ *  Include files ************************************************************************/#include <sysdefs.h>#include <string.h>#include <stdio.h>#include <ctype.h>#include <shell_api.h>#include <sys_api.h>#include <shell.h>/************************************************************************ *  Definitions ************************************************************************/#define	STRTYPE_ASC		1	/* ascii string */#define	STRTYPE_HEX		2	/* hex string */#define SEARCH_DEFAULT_STRTYPE	STRTYPE_ASC/************************************************************************ *  Public variables ************************************************************************//************************************************************************ *  Static variables ************************************************************************//* OPTIONS */static t_cmd_option options[] ={ #define OPTION_ASC	0  { "asc",  "Search for ascii string" },#define OPTION_HEX	1  { "hex",  "Search for hex string" }};#define OPTION_COUNT	(sizeof(options)/sizeof(t_cmd_option))/************************************************************************ *  Static function prototypes ************************************************************************/static UINT32 get_options(    UINT32 argc,    char   **argv,    UINT32 *strtype,    UINT32 *addr,    UINT32 *length,    char   **pstr);static int hexd(                        /* Get hex digit        */    char ch);/************************************************************************ *  Implementation : Static functions ************************************************************************//************************************************************************ *                          search ************************************************************************/static MON_FUNC(search){    UINT32  strtype;    UINT32  addr;    UINT32  length;    char    *str;    char    sdata[81];    char    ch;    UINT32  slen, out, i;    int	    d1, d2;    bool    found, ctrlc;    UINT32  rc;    char    msg[80];    rc = get_options( argc, argv, &strtype, &addr, &length, &str );    if( rc != OK )        return rc;    if (!length)	return OK;    slen  = 0;    out   = 0;    found = FALSE;    ctrlc = FALSE;    if (strtype == STRTYPE_HEX)    {	/* skip prefix 0x, if present */	if (str[0] == '0'  &&  tolower(str[1]) == 'x')	    str += 2;    	while ((ch = *str++)  &&  (slen < sizeof(sdata)-1))    	{	    d1 = hexd(ch);	    d2 = hexd(*str++);	    if ((d1 < 0) || (d2 < 0))	    {	        return SHELL_ERROR_SYNTAX;	    }	    sdata[slen++] = (d1<<4) | d2;	}    }    else    {    	while ((ch = *str++)  &&  (slen < sizeof(sdata)))    	{	    sdata[slen++] = ch;	}    }    sdata[slen] = 0;    SHELL_PUTS("Searching after ");    if (strtype == STRTYPE_ASC)    {	if (slen < 30)	{	    SHELL_PUTC( '"' );	    SHELL_PUTS( sdata );	    SHELL_PUTC( '"' );        }	else	{	    SHELL_PUTS( "ascii-string" );	}    }    else    {	if (slen < 9)	{            SHELL_PUTS( "0x" );	    for (i = 0;  i < slen;  i++)	    {	        sprintf( msg, "%02x", (UINT8)sdata[i] );		SHELL_PUTS( msg );	    }	}	else	{	    SHELL_PUTS( "hex-string" );	}    }    sprintf( msg, " in area 0x%08X..0x%08x.\n",	     addr, addr + length - 1);    SHELL_PUTS( msg );    SHELL_PUTS(shell_msg_ctrl_c);    /* Now do the search */    for (i = 0;  i <= length - slen;  i++)    {	if (memcmp((void *) (addr+i), sdata, slen) == 0)	{	    found = TRUE;	    if ((out++ % 6) == 0)	    {		if( SHELL_PUTC( '\n' ) ) 		{		    ctrlc = TRUE;		    break;		}	    }	    sprintf( msg, "0x%08X  ", addr+i);	    if( SHELL_PUTS( msg ) )	    {	        ctrlc = TRUE;		break;	    }	}	if ((i & 0x0FFF) == 0x0000)	{	    if (GETCHAR_CTRLC(DEFAULT_PORT))	    {		ctrlc = TRUE;		break;	    }	}    }    if (!found)    {	SHELL_PUTS("\nNo match found.");    }    SHELL_PUTC( '\n' );    return ctrlc ? SHELL_ERROR_CONTROL_C_DETECTED : OK;}/************************************************************************ *                          get_options ************************************************************************/static UINT32get_options(    UINT32 argc,    char   **argv,    UINT32 *strtype,    UINT32 *addr,    UINT32 *length,    char   **pstr){    char	   *token;    t_shell_option decode;    UINT32	   type;    bool	   ok 		= TRUE;    bool	   addr_valid	= FALSE;    bool	   length_valid	= FALSE;    bool	   str_valid	= FALSE;    UINT32	   i;    UINT32	   arg;    UINT32	   error = SHELL_ERROR_SYNTAX;    /* Setup defaults */    *strtype = SEARCH_DEFAULT_STRTYPE;    for( arg = 1; 	          ok && 	          (arg < argc) && 		  (token = argv[arg]) &&                  shell_decode_token( token, &type, &decode );         arg++ )    {	switch( type )	{	  case SHELL_TOKEN_OPTION :	    /* Find match */	    for(i=0; 		(i<OPTION_COUNT) &&		(strcmp(decode.option, options[i].option) != 0);		i++) ;	    switch(i)	    {	      case OPTION_ASC   :		*strtype = STRTYPE_ASC; break;	      case OPTION_HEX   :		*strtype = STRTYPE_HEX; break;	      default :	        error		 = SHELL_ERROR_OPTION;		shell_error_data = token;		ok		 = FALSE;	        break;		      	    }	    break;	  case SHELL_TOKEN_NUMBER :	    if (!addr_valid)	    {		*addr      = decode.number;		addr_valid = TRUE;		break;	    }	    else if (!length_valid)	    {		*length      = decode.number;		length_valid = TRUE;		break;	    }	    /* else fall-through */	  case SHELL_TOKEN_STRING :	    /* Use raw token as search string */	    if (!str_valid)	    {		*pstr     = token;		str_valid = TRUE;	    }	    else	        ok = FALSE;	    break;	  default :	    ok = FALSE;	    break;        }    }    if( !length_valid || !str_valid )        ok = FALSE;    return ok ?        sys_validate_range( *addr, *length, sizeof(UINT8), FALSE ) :	error;}/************************************************************************ *                          hexd ************************************************************************/static int hexd(                        /* Get hex digit		*/    char ch )				/* Char				*/{        if (!isxdigit(ch)) return -1;        if (islower(ch)) ch = toupper(ch);        if (isalpha(ch)) ch -= 7;          return ch - 48;}/************************************************************************ *                          cmd stuff ************************************************************************//* Command definition for search */static t_cmd cmd_def ={    "search",    search,    "search [-asc|-hex] <address> <size> <string>",    "Search for string in the memory area specified by <address> and <size>.\n"    "Default string type is ASCII. If the search string contains spaces,\n"    "remember to use quotes around the string.\n"    "\n"    "If searching for a hex string, the search pattern must be entered as\n"    "a number of two-digit hexcodes without spaces inbetween.",    options,    OPTION_COUNT,    FALSE};/************************************************************************ *  Implementation : Public functions ************************************************************************//************************************************************************ * *                          shell_search_init *  Description : *  ------------- * *  Initialise command * *  Return values : *  --------------- * *  void * ************************************************************************/t_cmd *shell_search_init( void ){    return &cmd_def;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
视频一区二区欧美| 亚洲码国产岛国毛片在线| 欧美最猛黑人xxxxx猛交| 国产在线精品一区二区三区不卡| 成人免费在线播放视频| 亚洲一区国产视频| 专区另类欧美日韩| 国产偷v国产偷v亚洲高清| 91精品国产日韩91久久久久久| 99riav一区二区三区| 国产91精品露脸国语对白| 国产在线视频一区二区三区| 日韩**一区毛片| 午夜免费欧美电影| 亚洲成av人片一区二区| 亚洲成人一区在线| 亚洲国产成人av网| 日日骚欧美日韩| 日本欧美肥老太交大片| 日韩精品1区2区3区| 日精品一区二区| 蜜臀av一区二区| 国产一区二区91| 国产高清成人在线| 92精品国产成人观看免费| 91在线观看地址| 欧美裸体bbwbbwbbw| 日韩一区二区三区电影| 欧美精品一区二区三区蜜桃| 国产精品全国免费观看高清 | 欧美日韩aaaaaa| 在线播放/欧美激情| 日韩女优电影在线观看| 国产精品久线在线观看| 亚洲精品免费在线| 日本在线不卡视频一二三区| 国产一区二区不卡在线| 色94色欧美sute亚洲13| 欧美一区二区三区日韩视频| 久久亚洲欧美国产精品乐播 | 国产精品久久久久久久第一福利| 亚洲卡通动漫在线| 极品尤物av久久免费看| 91久久精品国产91性色tv| 欧美xxxxx牲另类人与| 亚洲激情中文1区| 国产精品77777竹菊影视小说| 色综合天天综合网天天看片| 欧美美女喷水视频| 亚洲激情一二三区| 欧美日产国产精品| 久久久www成人免费无遮挡大片 | 日本一道高清亚洲日美韩| www.亚洲免费av| 国产视频一区不卡| 青青草一区二区三区| 欧美人狂配大交3d怪物一区| 亚洲色欲色欲www| 成人三级伦理片| 精品国产伦一区二区三区观看体验 | 日韩丝袜情趣美女图片| 偷拍与自拍一区| 欧美性猛交xxxxxxxx| 中文字幕视频一区二区三区久| 国模一区二区三区白浆| 亚洲精品一区二区三区精华液| 日韩综合小视频| 欧美美女直播网站| 欧美aaaaa成人免费观看视频| 欧美猛男男办公室激情| 午夜国产不卡在线观看视频| 欧美亚洲一区二区三区四区| 亚洲第一激情av| 欧美一区二区日韩一区二区| 免费观看日韩电影| 2020国产成人综合网| 国产盗摄精品一区二区三区在线| 中文字幕 久热精品 视频在线| 国产成人8x视频一区二区 | 久久人人爽爽爽人久久久| 国产剧情一区二区| 综合自拍亚洲综合图不卡区| 99精品视频免费在线观看| 亚洲高清不卡在线观看| 欧美日韩高清影院| 美女视频黄 久久| 国产精品无遮挡| 精品1区2区3区| 国产91精品欧美| 五月激情综合婷婷| 中文字幕av一区 二区| 在线观看av一区| 激情文学综合插| 一区二区三区小说| 2021中文字幕一区亚洲| 91在线视频播放| 国产麻豆91精品| 毛片av中文字幕一区二区| 中文一区一区三区高中清不卡| 欧美日韩视频第一区| youjizz国产精品| 欧美日本高清视频在线观看| 国产精品99久久久久久久女警| 亚洲精品大片www| 欧美三级日韩三级国产三级| 国产·精品毛片| 麻豆精品精品国产自在97香蕉| 中日韩av电影| 精品视频在线视频| youjizz久久| 国产精品系列在线观看| 日韩vs国产vs欧美| 婷婷一区二区三区| 亚洲欧洲无码一区二区三区| 久久在线免费观看| 欧美色网站导航| 国产一区二区美女诱惑| 久草这里只有精品视频| 色综合天天综合在线视频| 成人午夜av电影| 色狠狠av一区二区三区| 免费精品视频最新在线| 亚洲成人av资源| 亚洲国产视频网站| 亚洲高清在线精品| 日本强好片久久久久久aaa| 日韩和的一区二区| 免费成人av资源网| 乱中年女人伦av一区二区| 亚洲va中文字幕| 午夜欧美一区二区三区在线播放| 亚洲精品免费一二三区| 夜夜爽夜夜爽精品视频| 亚洲成人免费电影| 精彩视频一区二区三区| 国产成人夜色高潮福利影视| 懂色av中文一区二区三区| 色综合久久综合网97色综合| 欧美日韩视频在线观看一区二区三区| 欧洲一区二区av| 555夜色666亚洲国产免| 欧美mv和日韩mv国产网站| 一区二区中文视频| 亚洲成人动漫一区| 国内精品久久久久影院一蜜桃| 国模一区二区三区白浆| 欧美私人免费视频| 久久久国产精品午夜一区ai换脸| 亚洲欧美激情在线| 精品一区二区三区在线观看| 91麻豆免费看| 久久久三级国产网站| 亚洲精品国产第一综合99久久| 亚洲黄色性网站| 91美女视频网站| 午夜精品福利一区二区三区蜜桃| 国产福利一区在线| 在线电影院国产精品| 亚洲欧美另类图片小说| 国产激情一区二区三区四区| 欧美日韩国产在线播放网站| 欧美国产欧美综合| 国产成人精品影院| 日韩欧美激情一区| 亚洲午夜激情网页| 97国产一区二区| 欧美激情综合五月色丁香小说| 国产日韩精品一区二区三区在线| 天天色综合天天| 国产色综合久久| 国内精品自线一区二区三区视频| 91精品国产福利在线观看| 亚洲人成亚洲人成在线观看图片| 国产精品自产自拍| 91麻豆精品国产91久久久资源速度| 伊人一区二区三区| 91福利视频久久久久| 亚洲人成伊人成综合网小说| 国产一区二区剧情av在线| 91精品欧美一区二区三区综合在| 一级日本不卡的影视| 91亚洲永久精品| 亚洲资源中文字幕| 在线观看网站黄不卡| 亚洲一级二级在线| 欧美日韩国产小视频| 日韩和的一区二区| 日韩一级高清毛片| 青青青爽久久午夜综合久久午夜 | 成人午夜激情在线| 91精品国产综合久久婷婷香蕉| 日韩女优视频免费观看| 亚洲欧洲一区二区三区| 国产一区二区三区黄视频 | 欧美精品久久一区| 日本欧美大码aⅴ在线播放| 欧美一区二区久久| 国产69精品久久久久毛片| 一区二区在线免费观看| 欧美日韩国产bt|