; swap nibbles
; store the higher nibble of r7 in to both nibbles of r6
ORG 0H
MOV R7,#36H
MOV A, R7
ANL A, #0F0H
MOV R6, A
SWAP A
ORL A, R6
MOV R6, A
END
Related topics:
8051 Program - move block of data without overlap | 8051 Program - move block of data with overlap | 8051 Program - move block of data external memory | 8051 Program - exchange content of two ram locations | 8051 Program - exchange block of data external memory | 8051 Program - memory compare | 8051 Program - memory subroutines | 8051 Program - math subroutines | 8051 Program - conversion subroutines
List of topics: 8051
No comments:
Post a Comment