you may need to move on a bigger RAM PIC such as PIC12C509. 12C508 have 25 bytes of RAM, while 12C509 have 41 + twice the program space size.

The compiler use between 20 & 22 bytes of RAM itself.. so... no real space for more variables