DEV Community

Discussion on: At what age and in what language did you write your first line of code?

Collapse
 
kildareflare profile image
Rich Field

17: PIC Assembly Language
Which looks something like this...

Start:
     bsf    STATUS,RP0    ; Select Registers at Bank 1
     movlw  0x70
     movwf  OSCCON        ; Set the internal clock speed to 8 Mhz
     clrf   TRISIO        ; Set all General Purpose I/O to output
     clrf   ANSEL         ; Make all ports as digital I/O
     bcf    STATUS,RP0    ; Back to Registers at Bank 0