What does it mean to say 'Is bit 7 on?' in a calculator flowchart?

154 Views Asked by At

http://home.fnal.gov/~cheung/embedded-linux/pics/flowchart4.gif

^ The flowchart

I am going to writing a code in Python for a calculator, so I found this flowchart, I was just wondering does anyone know what 'Is bit 7 on?' means!

1

There are 1 best solutions below

0
On

0b1000000 would be the seventh bit

so you can check it by

if value & 0b1000000: print "7th bit on"

although in this flow chart it is a signal that tells the system to keep accepting inputs ...

really though you need to know things like if it is actually the 8th bit (0 based indexing), or if its stored in little or big endian.