feld IS $0 n IS $1 index IS $2 summe IS $3 tmp IS $255 total SET index,0 SET summe,0 1H CMP tmp,index,n BNN tmp,2F MUL tmp,index,8 Index * Gr"o"se eines Elements LDO tmp,feld,tmp Laden des Elements ADD summe,summe,tmp Addition des Elements ADD index,index,1 JMP 1B 2H SET $0,summe R"uckgabe von Summe POP 1