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.
在汇编代码中,对于 STM8S103F2 控制器,我们可以通过以下语法映射寄存器:
示例:PA_ODR equ $5000 或 5000 'cpu' 处的段字节 .PA_ODR DS.B 1
但是当它用于 CPU 寄存器时,这两种语法都不起作用。相当于 $7F00
或 7F00 'cpu' 处的段字节 .A DS.B 1
谁能说出为什么 CPU 寄存器映射不适用于 STM8S103F2 控制器的原因。