ashugtiwari
Full Member level 4
Hi all,
in one of my project, im doing some division operation on negative numbers, which is division by 2 and 4 mostly, so when i use right shift for division or left shift for multiplication, will the sign persist? or do i have to chk sign before and after operation and make adjustments?
Im using PIC16F1937 8 bit MCU and MPLAB X, plz reply
thanks
Ashutosh
in one of my project, im doing some division operation on negative numbers, which is division by 2 and 4 mostly, so when i use right shift for division or left shift for multiplication, will the sign persist? or do i have to chk sign before and after operation and make adjustments?
Im using PIC16F1937 8 bit MCU and MPLAB X, plz reply
thanks
Ashutosh