Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试将诸如 ADD 指令之类的 LC-3 语句转换为 C。到目前为止,我的方法是读取包含表示指令集的十六进制值的文件的内容。然后将十六进制值转换为二进制并拆分寄存器、操作数等的位。但我不确定如何开始,因为我对 C 编程语言非常陌生,它与 Python 非常不同。那么任何人都可以建议我如何编写这个 C 程序吗?也许是伪代码?