#177549 - sverx - Thu Aug 16, 2012 9:29 am
Do anyone can suggest the faster method to move halfwords to the locations I need?
- One register contains the 'B' halfword in the higher half (lower half is zero)
- Another register contains the 'D' halfword in the higher half (lower half is zero)
- a third register contains the 'C' halfword in the higher half and the 'A' halfword in the lower half
I have to rearrange them in 2 registers so that in one register I get 'A' in the lower half and 'B' in the higher half, and in another register I get the 'C' in the lower half and 'D' in the higher half (thus I can write the 4 'ordered' halfwords to memory using a single STRD/STM)
Thanks :)
_________________
libXM7|NDS programming tutorial (Italiano)|Waimanu DS (and GBA!)|A DS Homebrewer's Diary
- One register contains the 'B' halfword in the higher half (lower half is zero)
- Another register contains the 'D' halfword in the higher half (lower half is zero)
- a third register contains the 'C' halfword in the higher half and the 'A' halfword in the lower half
I have to rearrange them in 2 registers so that in one register I get 'A' in the lower half and 'B' in the higher half, and in another register I get the 'C' in the lower half and 'D' in the higher half (thus I can write the 4 'ordered' halfwords to memory using a single STRD/STM)
Thanks :)
_________________
libXM7|NDS programming tutorial (Italiano)|Waimanu DS (and GBA!)|A DS Homebrewer's Diary