Nardil stack

This commit is contained in:
Timon 2025-11-06 13:02:39 +01:00
parent 522f886eea
commit 68480249b4
3 changed files with 80 additions and 0 deletions

16
ass1/Rekurzija/sum.asm Normal file
View file

@ -0,0 +1,16 @@
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