I'm struggling a bit on this question. Essentially, I have to loop through a code with inputs, until the input is 0. Doing that by BRZ. And then, I have to output how many numbers that have been typed in to input. If I have typed in 1, 4, 6, 2, then the input should be 4, since there's four numbers there.
This is the code I'm currently using
start INP antall
BRZ jump
ADD tall
STA tall
BRA start
jump LDA tall
OUT
antall STA
LDA
OUT
HLT
tall DAT 0
antall DAT
antall = total tall = numbers if anyone's wondering what the labels mean