Guest_imported
New member
- Jan 1, 1970
- 0
Here's what I have so far:
Move #LIST,R0
Clear R1
Clear R2
Clear R3
Move N,R4
Add 4(R0),R1
Add 8(R0),R2
Add 12(R0),R3
Add #16, R0
Decrement R4
Branch>0 LOOP
Move R1, SUM1
Move R2, SUM2
Move R3, SUM3
No this works for when I have a set amount of different SUMS but I'm trying to make it so that I do not know the amount of SUMS there will be. I'm trying to assume an unkown say j.
I realize I need 2 nested loops but not sure how to set them up.
Any advice on this? Need me t explain better?
Move #LIST,R0
Clear R1
Clear R2
Clear R3
Move N,R4
Add 4(R0),R1
Add 8(R0),R2
Add 12(R0),R3
Add #16, R0
Decrement R4
Branch>0 LOOP
Move R1, SUM1
Move R2, SUM2
Move R3, SUM3
No this works for when I have a set amount of different SUMS but I'm trying to make it so that I do not know the amount of SUMS there will be. I'm trying to assume an unkown say j.
I realize I need 2 nested loops but not sure how to set them up.
Any advice on this? Need me t explain better?