To get bit N (0=LSB, 7=MSB) from a byte B you could use (typed from my head, so errors are included for free):
function bit_n_from_b( byte in n, byte in b ) return bit is var byte x var bit r at x : 0 x = b >> n return r end function
file: /Techref/piclist/jal/bitnofbyte-wvo.htm, 1KB, , updated: 2001/11/7 06:38, local time: 2024/12/21 17:21,
3.144.104.175:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://techref.massmind.org/techref/piclist/jal/bitnofbyte-wvo.htm"> Get bit N (0=LSB, 7=MSB) from a byte B</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to techref.massmind.org! |
.