Post Reply 
(16C) show which bits are set in a number
03-07-2019, 08:31 PM
Post: #15
RE: (16C) show which bits are set in a number
(03-07-2019 09:45 AM)wynen Wrote:  In fact your program will test all the bits beginning with LSB as well and stops when all bits set where found. This is the same behaviour as in my program.

Code:
013-   43 48 :   x<>0      // are there any bits left?

argh! sorry, missed that test Smile

thanks again.

Cambridge, UK
41CL/DM41X 12/15C/16C DM15/16 17B/II/II+ 28S 42S/DM42 32SII 48GX 50g 35s WP34S PrimeG2 WP43S/pilot/C47
Casio, Rockwell 18R
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: (16C) show which bits are set in a number - cdmackay - 03-07-2019 08:31 PM



User(s) browsing this thread: 4 Guest(s)