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.
我正在向内存空间写入一些地址,我需要优化代码。有更好的方法来执行以下操作吗?
SETB 00h SETB 01h SETB 02h SETB 03h SETB 04h SETB 05h SETB 06h SETB 07h
我想你想做的是:
MOV 20h,#0FFh
这应该相当于设置每个字节
我看到技术规范和间接地址更适合改变
MOV @R0,#0FFh