Assembler question
micman2
Posts: 18
Hi all,
I've a question about the load variable:
I use viewport for read into the variable
When I'd write in temp1 with 100 , work! (screen "a" and "a1" file in a1 see variable "v2")
but when I load temp1 with variable "Delay" not work!!!(screen "b" and "b1" file see variable "v2")
Send screen
I've a question about the load variable:
I use viewport for read into the variable
When I'd write in temp1 with 100 , work! (screen "a" and "a1" file in a1 see variable "v2")
mov temp1,#100
but when I load temp1 with variable "Delay" not work!!!(screen "b" and "b1" file see variable "v2")
mov temp1,Delay Delay long 100
Send screen
Comments
and another question , If I would load variabile with 1000 I have a error! but the register is 32bit?!
Another question
I would developement delay but without use waitcnt
My simple code:
Is it correct?
The reason for comparing to the time difference is that it avoids problems when the time wraps around (in the 32 bit register).