When you define a variable inside of a function, the variable is allocated on the stack.
The near qualifier only applies to variables allocated between 0x00 and 0xFF.
As your stack is not allocated there, you should not define your local variable a near.
CrasyCat
Sir,
The variable count I declared is a global variable and is not allocated space in the routine.