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

📄 i_dc.c

📁 SkyEye是一个可以运行嵌入式操作系统的硬件仿真工具
💻 C
字号:
/**********************************//*                                *//*  Copyright 2000, David Grant   *//*                                *//*  see LICENSE for more details  *//*                                *//**********************************/#include "coldfire.h"/* DC.W  *//* Format ... well.. anything that any of the other instructions   don't handle    15  14  13  12  11  10   9   8   7   6   5   4   3   2   1   0+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+*/INSTRUCTION_1ARG(DC,	unsigned Code1,16);static void execute(void){	unsigned int dummy;	/* Read the instruction, we already know what it is */	Memory_RetrWordFromPC(&dummy);	/* Do an exception */	exception_do_exception(4);	return;}static int disassemble(char *Instruction, char *Arg1, char *Arg2) {	unsigned int dummy;	Memory_RetrWordFromPC(&dummy);	sprintf(Instruction, "DC.W");	sprintf(Arg1, "0x%04lx", dummy);	Arg2[0]=0;	return 0;}int dc_5206_register(void){	instruction_register(0x0000, 0x0000, &execute, &disassemble);	return 0;}

⌨️ 快捷键说明

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