Skip to content

Instantly share code, notes, and snippets.

View Zircoz's full-sized avatar
💻
Hitting random keys!

Zircoz Zircoz

💻
Hitting random keys!
View GitHub Profile
@Zircoz
Zircoz / blinkingLED.asm
Created October 12, 2019 19:43 — forked from elktros/blinkingLED.asm
8051 Microcontroller Assembly Language Program for Blinking LEDs
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)