spo/ass1/Rekurzija/sum.asm
2025-11-06 13:02:39 +01:00

16 lines
No EOL
227 B
NASM

prog START 0
LDA #5
JSUB sum
halt J halt
sum CLEAR B
sumLoop ADDR A, B
SUB #1
COMP #0
JGT sumLoop
RMO B, A
RSUB
END prog