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.
我试图弄清楚如何实现 ARM7TDMI 指令解码器。通过查看参考手册,我得出结论,最好的方法(或至少对我而言)是屏蔽第 20-27 位和第 4-7 位。尽管这种方法似乎唯一地标识了一条指令,但通过使用 12 位,可能需要考虑 2^12 种组合。除了对所有这些 2^12 组合进行硬编码之外,真的没有更好的方法吗?