- #1
Twoacross
- 9
- 0
Hi Everyone,
Trying to write some assembly code by just first working out some pseudo to get a basis down for a program which transfers N bytes from m amount different sources, whose sizes are N bytes to m amount different destinations.
So far, I've been trying to simplify what it wants and so far I've come up with:
Move R2, #TEMP // Load TEMP into R2 (R2 being a general register)
Move R3, N // What this line and the subtract line does is that it initializes the outer loop index R3 to j = n-1
Subtract R3, #1
Outer: Move R4,R3
Subtract R4,#1
MoveByte R5, (R2, R3)
From here I'm kinda lost at how to implement a way to do it for different sources going to different registers. If anyone could provide a means how I can achieve this or propose a different method which would be easier, it would be greatly appreciated!
Thank you
Trying to write some assembly code by just first working out some pseudo to get a basis down for a program which transfers N bytes from m amount different sources, whose sizes are N bytes to m amount different destinations.
So far, I've been trying to simplify what it wants and so far I've come up with:
Move R2, #TEMP // Load TEMP into R2 (R2 being a general register)
Move R3, N // What this line and the subtract line does is that it initializes the outer loop index R3 to j = n-1
Subtract R3, #1
Outer: Move R4,R3
Subtract R4,#1
MoveByte R5, (R2, R3)
From here I'm kinda lost at how to implement a way to do it for different sources going to different registers. If anyone could provide a means how I can achieve this or propose a different method which would be easier, it would be greatly appreciated!
Thank you