I have a list of 32 bit instructions that are in hexadecimal. I've been storing them in integers. My problem is that the hexadecimal instructions are unsigned (they are only positive), and a java integer is signed, so a couple of the instructions are coming up negative. Is there a way to make them unsigned like in C ?
posted 12 years ago
You could store them as ints and process them as longs using a mask to make the longs unsigned. For example:
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher