I have a global variable that count's how many times a function has been accessed. Eeverytime I access a specific function, the last line of that function is something like this: add var_count, 1.
Then, I have another function that prints this global variable, the problem is: I can't print it...
Here is the code where I'am printing:
.data
var_count db 0
.code
...piece of code
mov ah,9
lea dx, var_count
int 21h
...piece of code