Hi,
Could someone explain to me how to create, store and manipulate variables please?

At the moment i have this but I get errors:

BUTTONPRESSED DEFINE 0x000000

LDR r4, =BUTTONPRESSED ;Seems to be ok
ADD r4, r4, #1 ;Seems to be ok
MOV BUTTONPRESSED, r4 ;'Operand Syntax Error'

All I want to do is add 1 to the variable 'BUTTONPRESSED' and store it for later use, Thanks

Nevermind i've sorted it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.