Original Post
hey. im currently fooling around with emulation. more specifick im trying to emulate the Chip-8 that was used long ago to power some of the first game consoles anyway. im at a point where i have 2 sequential bytes in a array and of those 2 bytes i need to get the decimal value of the last 12 bits. in other words i want to ignore the first 4 bits of the first byte. now this sounds pretty simple but i need this to be as fast as possible and im not quite sure how to do this properly since im not used to such low level stuff. im writing this thing in java but i dont mind a c/c++ explanation thnx in advance