Joke Collection Website - Mood Talk - What does the program status word PSW in the single chip microcomputer do? Can you be more specific? Thank you.
What does the program status word PSW in the single chip microcomputer do? Can you be more specific? Thank you.
From high position to low position
7. Carry flag Cy(Carry): used to indicate whether most significant bit A7 (accumulator most significant bit) has carry or borrow during addition and subtraction.
6. Auxiliary carry bit AC (auxiliary carry): used to indicate whether the lower 4 bits (A3) are higher than the upper 4 bits (A4 carry or borrow) during addition and subtraction.
5. User flag bit F0 (flag zero)
4 & amp3. Register selection bits RS 1 and RS0. Users can easily determine the actual physical addresses of working registers R0-R7 by changing the states of RS 1 and RS0.
2. Overflow flag bit OV (overflow):
It can indicate whether overflow occurs during operation, which is automatically formed when the machine executes instructions.
1. Not used
0. Parity flag bit p (parity)
- Related articles
- Tell me about Miyazaki Hayao's copywriting.
- Talk about hurting feelings
- Talk about learning to control your emotions.
- The most interesting psychological knowledge
- [Parenting] Don¡¯t be anxious about being a mother, that¡¯s just what you say!
- I have two sisters, the first one is diligent and honest, and the second one is lazy and often blames others. Whenever my elder sister asks me to do something, I will do it obediently; But two
- How much does the glory of the king need to charge to get Zhao Yun?
- How big is Babao tea used to build bowls?
- A short sentence describing the beauty of heavy snow
- I'm going to Luoyang on the eleventh, and I want to ask if there are any interesting places. I must be a classic.