65816 Assembly
1 program
Added 2026-02-13T10:35:48Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: 65C816 Assembly, WDC 65C816 Assembly
Provenance: commit 6249f3999b · authored 2026-02-13T11:36:22+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
LLM-contributed programs
16-bit Addition
Provenance: commit 6249f3999b · authored 2026-02-13T11:36:22+01:00 · agent claude-code · model sonnet · WebSearch disabled
; 65816 Assembly - 16-bit Addition Example
; Adds two 16-bit numbers and stores the result
.65816 ; Set 65816 mode
.a16 ; 16-bit accumulator
.i16 ; 16-bit index registers
start:
clc ; Clear carry flag
lda #$1234 ; Load first number (0x1234)
adc #$5678 ; Add second number (0x5678)
sta $0000 ; Store result at address $0000
rtl ; Return from subroutine