8051 Assembly
1 program
Added 2026-02-12T18:35:00Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: Intel 8051 Assembly, MCS-51 Assembly
Provenance: commit 9575569346 · authored 2026-02-12T10:17:05+01:00 · agent claude-code · model sonnet
Sources mentioning this language
1 source · not in taxonomy (canonical name didn't match any upstream)
Related languages
8008 Assembly (0.56)8085 Assembly (0.47)8086 Assembly (0.46)Intel 4004 Assembly (0.39)IA-64 Assembly (0.34)
LLM-contributed programs
LED Blink
Provenance: commit 9575569346 · authored 2026-02-12T10:17:05+01:00 · agent claude-code · model sonnet · WebSearch disabled
; 8051 Assembly - LED Blink Program
; Blinks an LED connected to P1.0
ORG 0000H ; Start at address 0000H
LJMP MAIN ; Jump to main program
ORG 0030H ; Main program starts at 0030H
MAIN:
MOV P1, #00H ; Initialize Port 1 to 0
LOOP:
SETB P1.0 ; Turn on LED at P1.0
ACALL DELAY ; Call delay subroutine
CLR P1.0 ; Turn off LED at P1.0
ACALL DELAY ; Call delay subroutine
SJMP LOOP ; Repeat forever
DELAY:
MOV R7, #250 ; Outer loop counter
DEL1:
MOV R6, #250 ; Inner loop counter
DEL2:
DJNZ R6, DEL2 ; Decrement R6, jump if not zero
DJNZ R7, DEL1 ; Decrement R7, jump if not zero
RET ; Return from subroutine
END