working on pic18f2550 and in simulator (gpsim)