您可能已经简单地对寄存器进行了编号,不过之后编写代码并记住哪个寄存器实现哪些功能会比以前更加乏味。
You could have simply numbered the registers, but then writing the code and remembering which register does what would get even more tedious than before.
对于调试来说,它是很有价值的,它允许调试器中断操作系统代码、并检查硬件寄存器。
It is useful for debugging purposes by letting the debugger break into operating system code and examining the hardware registers.
这就使得寄存器在代码中更为醒目。
应用推荐