CS Electrical And Electronics
@cselectricalandelectronics

What is SUBB instruction in 8051 microcontroller?

All QuestionsCategory: Embedded SystemWhat is SUBB instruction in 8051 microcontroller?
CS Electrical And Electronics Staff asked 4 years ago

I need short information.

1 Answers
CS Electrical And Electronics Staff answered 4 years ago

Its function is to subtract with the barrow. Subtract the source-byte and the carry flag from the accumulator and set the result in the accumulator.

Example:

MOV A, #45H
CLR C
SUBB A, #22H