You can't just use a global variable inside an asm block. First, you need to declare a local variable, then you have to pass on the global variable value to the local variable, and then you can use that local variable in the asm block.
You can't just use a global variable inside an asm block. First, you need to declare a local variable, then you have to pass on the global variable value to the local variable, and then you can use that local variable in the asm block.