STACK_BUF EQU 60H F_55 DATA 7EH F_AA DATA 7FH ;------------------------------- ORG 0000H AJMP START NOP
INT_RET: RETI
START: CLR A MOV IE, A MOV PSW, A CPL A MOV P1, A MOV P3, A MOV SP, #(STACK_BUF-1) ACALL INT_RET ACALL INT_RET MOV A, F_55 CPL A XOR A, F_AA JNZ CLR_RAM_1 MOV A, #55H XOR A, F_AA JZ SKIP_CLR_RAM CLR_RAM_1: CLR A MOV R0, A CLR_RAM: MOV @R0, A DJNZ R0, CLR_RAM MOV F_55, #55H MOV F_AA, #0AAH
SKIP_CLR_RAM: ;.... ;...
;.... ;.... |