Saturday, April 30, 2016

8051 Program – clear register banks

; clear register banks
ORG 0H
ADDR EQU 01FH ; last location of register
MAIN:
MOV R0,#ADDR
LCALL CLEAR
SJMP MAIN
CLEAR:
up: MOV @R0, #0
DJNZ R0, up
RET
END



Related topics:
8051 Program - clear bit memory   |   8051 Program - clear stack memory   |   8051 Program - rom to ram   |   8051 Program - external ram to internal ram   |   8051 Program - internal ram to external ram   |   8051 Program - ram to ram   |   8051 Program - memory subroutines   |   8051 Program - math subroutines   |   8051 Program - conversion subroutines

List of topics: 8051

No comments:

Post a Comment