; clear stack memory
ORG 0H
ADDR EQU 30H ; start location of stack memory
COUNT EQU 80 ; no of memory locations
MAIN :
MOV R0,#ADDR
MOV R1,#COUNT
LCALL CLEAR
SJMP MAIN
CLEAR :
up: MOV @R0, #0
INC R0
DJNZ R1, up
RET
END
Related topics:
8051 Program - clear register banks | 8051 Program - clear bit 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