?? regcmd.c
字號:
/*""FILE COMMENT""************************************************************** System Name : RENESAS uT-Engine* File Name : regcmd.c* Version : 1.01.00* Contents : Get or Set CPU's Registers* Model : RENESAS T-Engine/uT-Engine* CPU : RENESAS T-Engine Series CPU* Compiler : GNU* OS : T-Kernel** note : The Software is being delivered to you "AS IS" * : and Renesas,whether explicitly or implicitly makes * : no warranty as to its Use or performance. * : RENESAS AND ITS SUPPLIER DO NOT AND CANNOT WARRANT * : THE PERFORMANCE OR RESULTS YOU MAY OBTAIN BY USING * : THE SOFTWARE. AS TO ANY MATTER INCLUDING WITHOUT * : LIMITATION NONINFRINGEMENT OF THIRD PARTY RIGHTS,* : MERCHANTABILITY, INTEGRATION, SATISFACTORY QUALITY, * : OR FITNESS FOR ANY PARTICULAR PURPOSE.** Copyright (c) 2004-2006 RENESAS TECHNOLOGY CORP. All Rights Reserved.* AND RENESAS SOLUTIONS CORP. All Rights Reserved.** history : 2004.10.01 ver1.00.00* : 2006.02.01 ver1.01.00*""FILE COMMENT END""*********************************************************/#ifdef _MIC_SH7145_#include <tk/tkernel.h>#include "shell.h"#include "shelldisp.h"#include "breakcmd.h"extern W errcode;extern RegTable *regtable;extern int argcnt;void setBreakRegisters(RegTable *);void printBreakRegisters(RegTable *);/*""FUNC COMMENT""******************************************************* * ID : X.Y.Z * Abstructs : "REG" command *----------------------------------------------------------------------- * Include : *----------------------------------------------------------------------- * Definition : void REG_cmd() *----------------------------------------------------------------------- * Function : "REG" command exec function *----------------------------------------------------------------------- * Argument : None *----------------------------------------------------------------------- * Return : None *----------------------------------------------------------------------- * Input : RegTable *regtable; register stack * : int argcnt; * Output : W errcode; error code *----------------------------------------------------------------------- * Used Func : printBreakRegisters() * : setBreakRegisters() *----------------------------------------------------------------------- * Notice : None *""FUNC COMMENT END""***************************************************/void REG_cmd(){ switch(argcnt){ case 0: printBreakRegisters(regtable); break; case 2: setBreakRegisters(regtable); break; default: errcode = ER_ILLEGALPAR; break; } }#endif // _MIC_SH7145_
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -