Saturday, April 30, 2016

8051 Program – ones and twos complement

; ones and twos complement
ORG 0H
MOV A, #55H
CPL A ; 1's complement
ADD A, #01H ; 2's complement
MOV R0,A
AGAIN: SJMP AGAIN
END



Related topics:
8051 Program - ones and twos complement   |   8051 Program - check for NULL   |   8051 Program - check nth bit of a byte   |   8051 Program - 1ms delay   |   8051 Program - 1sec delay timer   |   8051 Program - memory subroutines   |   8051 Program - math subroutines   |   8051 Program - conversion subroutines

List of topics: 8051

No comments:

Post a Comment