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: 2022/11/29 16:25,
|©2022 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!