+Random Terrain Posted November 29, 2010 Share Posted November 29, 2010 (edited) I found out that I need one more bit, but I used all of the ones I had available. If I can find a variable that doesn't go anywhere near 128, can I use bit 7 without any problems? Edit: I should probably mention that I know I'll have to ignore that bit. Would it make adding and subtracting a pain? Below is my guess. If I want to know the value of a, I'd do this: temp5 = a & %01111111 But I should be able to add and subtract the normal way as long as I don't go below 0 or over 127, right? Edited November 29, 2010 by Random Terrain Quote Link to comment https://forums.atariage.com/topic/173128-ran-out-of-bits-maybe-i-can-grab-a-bit-7/ Share on other sites More sharing options...
+Random Terrain Posted November 29, 2010 Author Share Posted November 29, 2010 I tried it and it seems to be working fine. Unless there is a hidden problem I don't know about, this looks like a good way to grab some free bits without screwing things up. Quote Link to comment https://forums.atariage.com/topic/173128-ran-out-of-bits-maybe-i-can-grab-a-bit-7/#findComment-2146940 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.