include "p16c5x.inc"

start     code
          movlw 0x00    ;moving literal constant 0x00 to W
          tris PORTB    ;setting PORTB in output mode

          movlw 0x20    ;moving literal constant 0x20 to W
	  option        ;selected the Counter mode
loop2	  movf TMR0,0   ;moving the TMR0 value to W
	  movwf PORTB   ;outting the contents of W through PORTB
	  goto loop2    ;repeating loop2
          end           ;directive 'end of program'



