; Before modification
ResetHandler
LED_ON 0x1
; After mod
ResetHandler
LED_ON 0x1
nop
LED_ON 0x2
nop
But it creates a compile error of 'no immediate rotate operand can be
created: -1128'.
Is there anybody who is familar with assembly?
"nop" does not exist in RISC architecture processors. The assembler
understands "nop" as a pseudo-instruction and will code it to an
instruction that has no net effect. I wouldn't expect that it's the
"nop" that's causing the problem, could it be the second LED_ON macro?
Can you post the macrro definition?
Andrew.
MACRO
LED_ON $data
ldr r10, =GPNPUD
ldr r11, [r10]
bic r11, r11, #0xFF000000 ; Pull-Up-Down Disable
str r11, [r10]
ldr r10, =GPNDAT
ldr r11, [r10]
bic r11, r11, #0xF000
ldr r12, =$data
mov r12, r12, lsl #12 ; [15:12]
orr r11, r11, r12
str r11, [r10]
ldr r10, =GPNCON
ldr r11, [r10]
bic r11, r11, #0xFF000000
orr r11, r11, #0x55000000 ; GPN[15:12] Output .
str r11, [r10]
MEND
"AndrewScholan[MCTS]" wrote:
> .
>