Instruction | Function |
SETB C | Make CY = 1 |
CLR C | Clear CY bit |
CPL C | Complement CY bit |
MOV b, C | Copy carry status to bit |
MOV C, b | Copy bit location status to carry |
JNC TARGET | Jump to target when CY = 0 |
JC TARGET | Jump to target when CY = 1 |
ANL C, bit | AND CY with bit and save it on CY |
ANL C, /bit | AND CY with inverted bit and save it on CY |
ORL C, bit | OR CY with bit and save it on CY |
ORL C, /bit | OR CY with inverted bit and save it on CY |
The blog talks about variety of topics on Embedded System, 8085 microprocessor, 8051 microcontroller, ARM Architecture, C2000 Architecture, C28x, AVR and many many more. Also includes some projects that have been worked upon and also episodes to Embedded System Podcast.
Search This Blog
Saturday, August 13, 2011
Single bit operation with Carry
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment