The 8051 Microcontroller and Embedded

(lily) #1
Department of Computer Scien

ce and Information Engineering

National Cheng Kung University, TAIWAN

BIT HANEL


ADDRESSES


Bit-


Addressable


RAM(cont’)


‰Instructions that are used for signal-bit operations are as following


Jump to target if bit = 1, clear bit (jump if bit, then clear)

JBC bit, target

Jump to target if bit = 0 (jump if no bit)

JNB bit, target

Jump to target if bit = 1 (jump if bit)

JB bit, target

Complement the bit (bit = NOT bit)

CPL bit

Clear the bit (bit = 0)

CLR bit

Set the bit (bit = 1)

SETB bit

Function

Single-Bit InstructionsInstruction
Free download pdf