This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ORG 00H ; Assembly Starts from 0000H. | |
; Main Program | |
START: MOV P1, #0XFF ; Move 11111111 to PORT1. | |
CALL WAIT ; Call WAIT | |
MOV A, P1 ; Move P1 value to ACC | |
CPL A ; Complement ACC | |
MOV P1, A ; Move ACC value to P1 | |
CALL WAIT ; Call WAIT | |
SJMP START ; Jump to START | |
WAIT: MOV R2, #10 ; Load Register R2 with 10 (0x0A) |