Comfy-65
1 program
Added 2026-03-17T10:00:00Z
Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled
Evidence
Report issue
View issues
Aliases: —
Provenance: commit 99d4bead0c · authored 2026-03-17T01:36:35+01:00 · agent claude-code · model claude-sonnet-4-6
Sources mentioning this language
1 source · not in taxonomy (canonical name didn't match any upstream)
Related languages
LLM-contributed programs
Maximum of Two Bytes
Provenance: commit 99d4bead0c · authored 2026-03-17T01:36:35+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
; Comfy-65: Find the maximum of two byte values
; Input: operand1 at $80, operand2 at $81
; Output: result at $82
org $0300
lda $80
cmp $81 ; compare $80 with $81, carry set if $80 >= $81
if (c) {
sta $82 ; $80 >= $81, max is in A already
} else {
lda $81
sta $82 ; $80 < $81, max = $81
}
rts