开发者

How can I improve these 8051 arch instructions?

开发者 https://www.devze.com 2023-01-09 04:11 出处:网络
I\'m writing to memory space a few address and I need to optimize the code. There is a better way to do the following?

I'm writing to memory space a few address and I need to optimize the code. There is a better way to do the following?

SETB 00h
SETB 01h
SETB开发者_开发问答 02h
SETB 03h
SETB 04h
SETB 05h
SETB 06h
SETB 07h


I think what you want to do is:

MOV 20h,#0FFh

this should be equivalent to setting each byte


I see techspecs and indirect adress is better for change

MOV @R0,#0FFh
0

精彩评论

暂无评论...
验证码 换一张
取 消