문제

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
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top