Nardil stack
This commit is contained in:
parent
522f886eea
commit
68480249b4
3 changed files with 80 additions and 0 deletions
16
ass1/Rekurzija/sum.asm
Normal file
16
ass1/Rekurzija/sum.asm
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue