Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
movlw b'00111000'
movwf STATUS ;BANK 1
movlw b'01000001'
movwf OSCCON ;sets oscillator to 1MHz
banksel OSCCON ;bank 1
movlw b'01000001'
movwf OSCCON ;sets oscillator to 1MHz
w_temp EQU 0x40 ; variable used for context saving
status_temp EQU 0x41 ; variable used for context saving
pclath_temp EQU 0x22 ; variable used for context saving
Digit1 EQU 0x43
Digit2 EQU 0x44
temp EQU 0x45
cblock 0x20
w_temp,status_temp,pclath_temp,Digit1,Digit2,temp
endc
cblock 0x20
w_temp,status_temp,pclath_temp
Digit1,Digit2,temp
endc
cblock 0x20
w_temp
status_temp
pclath_temp
endc
Excellent! I did not know that.Pommie said:When using cblock you can also set the variable size,