[ad_1]
begin INP
BRZ end
STA input
SUB max
BRP nmax
BRA begin
nmax LDA input
STA max
BRA begin
end LDA max
OUT
HLT
input DAT
max DAT
20
[ad_2]
solved Little Man Computer – I’m trying to find the right answer [closed]