poojapatel2210
New Member
WTemp equ 0x33
StatusTemp equ 0x32
IntStat equ 0x34
movwf WTemp ;save W register (what is the content of w to consider here or content of Wtemp which is tempory register)
swapf STATUS,w (Is this the status register as in data sheet then what is its initial value as soon as i power on controller )
movwf StatusTemp (again i dont know the content of statustemp which is temporary register )
movf INTCON,w ;save itn stattus (Here again i want to know the what must be the initial value in INTCON register to movf )
movwf IntStat (what is the content of w to consider here or content of IntStat which is tempory register)
swapf StatusTemp,w (Can u please explain all this with numbers, i know what that command do i want to check i am not going wrong to understand this code)
movwf STATUS
swapf WTemp,f
swapf WTemp,w ;restore W
clrf INTCON
retfie
end
StatusTemp equ 0x32
IntStat equ 0x34
movwf WTemp ;save W register (what is the content of w to consider here or content of Wtemp which is tempory register)
swapf STATUS,w (Is this the status register as in data sheet then what is its initial value as soon as i power on controller )
movwf StatusTemp (again i dont know the content of statustemp which is temporary register )
movf INTCON,w ;save itn stattus (Here again i want to know the what must be the initial value in INTCON register to movf )
movwf IntStat (what is the content of w to consider here or content of IntStat which is tempory register)
swapf StatusTemp,w (Can u please explain all this with numbers, i know what that command do i want to check i am not going wrong to understand this code)
movwf STATUS
swapf WTemp,f
swapf WTemp,w ;restore W
clrf INTCON
retfie
end