Hello everybody.
I have a simple problem, Please help me out.
The code snap goes this way
store_temp ;a defined variable
count_8 ; a counter variable to sit the bits of store_temp as desired
;************************
molw D'7'
movwf count_8
loop
bsf store_temp, count_8 ;setting bit one by one
incf count_8
decfsz count_8, 1
goto loop
end
;********************
The problem is the bsf is executed only once. Next cycle no bit is set in store_temp and the loop goes on
Thanks.
I have a simple problem, Please help me out.
The code snap goes this way
store_temp ;a defined variable
count_8 ; a counter variable to sit the bits of store_temp as desired
;************************
molw D'7'
movwf count_8
loop
bsf store_temp, count_8 ;setting bit one by one
incf count_8
decfsz count_8, 1
goto loop
end
;********************
The problem is the bsf is executed only once. Next cycle no bit is set in store_temp and the loop goes on
Thanks.