rotovegasBoy
Programmer
Hi
Write embedded systems and have a lot of use for bit masks shifting etc. I wrote a java app that acts as a calculator and can take a hexadecimal number and tell me what bits are set i've added masking and shifting etc. What i what to do is get the output in decimal as well as hex but of course if i have a 1 in the top bit of an interger it becomes a negative number. The systems i write use C and inputing hex numbers is fine, but for some code its more readible if i use decimal does java have anyway of handling unsigned types? "There are no stupid questions, just lots of inquisitive idiots" - anon
Write embedded systems and have a lot of use for bit masks shifting etc. I wrote a java app that acts as a calculator and can take a hexadecimal number and tell me what bits are set i've added masking and shifting etc. What i what to do is get the output in decimal as well as hex but of course if i have a 1 in the top bit of an interger it becomes a negative number. The systems i write use C and inputing hex numbers is fine, but for some code its more readible if i use decimal does java have anyway of handling unsigned types? "There are no stupid questions, just lots of inquisitive idiots" - anon