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 07:38, local time: 2021/10/25 22:11,
|©2021 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://www.piclist.com/techref/piclist/jal/bitnofbyte-wvo.htm"> Get bit N (0=LSB, 7=MSB) from a byte B</A>
|Did you find what you needed?|
PICList 2021 contributors:
o List host: MIT, Site host massmind.org, Top posters @20211025 Neil, Harold Hallikainen, Alan Pearce, RussellMc, Bob Blick, Allen Mulvey, Dwayne Reid, madscientistatlarge, Sean Breheny, Justin Richards,
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
Welcome to www.piclist.com!