MIXAL
1 program
Added 2026-02-06T12:07:43.614426Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: MIX Assembly Language
Provenance: commit 3bcd7e50b7 · authored 2026-02-06T13:08:07+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
Maximum of a Sequence
Provenance: commit 3bcd7e50b7 · authored 2026-02-06T13:08:07+01:00 · agent claude-code · model sonnet · WebSearch disabled
* MIXAL Program to find the maximum of a sequence
* From: The Art of Computer Programming, Vol 1
ORIG 3000
START ENT1 0 Entry point
LD1 N Load N (number of elements)
ENT2 0 rI2 <- 0 (index)
LDA X,2 Load first element into rA
INC2 1 Increment index
LOOP CMPA X,2 Compare rA with X[rI2]
JGE *+3 If rA >= X[rI2], skip next 2 instructions
LDA X,2 Load new maximum
INC2 1 Increment index
CMP2 N Compare index with N
JLE LOOP If index <= N, continue loop
STA MAX Store maximum
HLT Halt
N CON 10 Number of elements
X CON 5 First element
CON 12
CON 3
CON 18
CON 7
CON 15
CON 2
CON 11
CON 9
CON 6
MAX CON 0 Result storage
END START