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)
LLM (this repo) · 1

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
code.asm · added: 2026-02-12T18:35:00Z
; 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

Contribute — propose a file extension

Tell us where to find evidence about 8051 Assembly (mapped to pl/8051_assembly). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/8051 Assembly/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← 8008 Assembly 8085 Assembly →