Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/assembly/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Assembly 使用操作码和功能位的解码指令_Assembly_Cpu_Cpu Architecture_Decoder_Machine Instruction - Fatal编程技术网

Assembly 使用操作码和功能位的解码指令

Assembly 使用操作码和功能位的解码指令,assembly,cpu,cpu-architecture,decoder,machine-instruction,Assembly,Cpu,Cpu Architecture,Decoder,Machine Instruction,我正在尝试设计一个流水线cpu模拟器。作为其中的一部分,我需要设计一个控制单元 我希望控制单元能做的是-设置以下标志的值: reg_write (=1 if the instruction writes a value to some register, =0 otherwise) mem_read (=1 if the instruction reads a value from memory, =0 otherwise) mem_write (=1 if the instruction wr

我正在尝试设计一个流水线cpu模拟器。作为其中的一部分,我需要设计一个控制单元

我希望控制单元能做的是-设置以下标志的值:

reg_write (=1 if the instruction writes a value to some register, =0 otherwise)
mem_read (=1 if the instruction reads a value from memory, =0 otherwise)
mem_write (=1 if the instruction writes a value to memory, =0 otherwise)
jump (=1 if the instruction is a jump instruction, =0 otherwise)
etc.

我需要将这些值设置为操作码的函数和指令的函数位。我该怎么做?

什么是指令集体系结构,ARM,x86,MIPS,还有其他吗?@Danny:体系结构是MIPS