instrmem.dit

来自「mipsit是一个mips的虚拟机。可以用来了解mips的体系结构」· DIT 代码 · 共 24 行

DIT
24
字号
// this is the Instruction memory
class CInstrMem
{
	in Address
	out ReadData

	import bus ReadData
	import bus Address
	import bus Operation
	
	script
		function OnChange()
		{
			bus_Address.Set( Address.Get() );
			bus_Operation.Set(1); // Read Word
			ReadData.Set( bus_ReadData.Get() );
		}
		
	end_script
	
	event ALL OnChange()
}

⌨️ 快捷键说明

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