Arm/func pack3

From ASMBits

Write a function that stores three integers into consecutive words in memory. The function should write n1, n2, and n3 (in that order, lowest to highest address) to the array starting at array. You may assume that array is properly aligned for words (4-byte aligned).

There is no return value.

void pack3 (int* array, int n1, int n2, int n3);

Expected solution length: Around 2 lines.

Sample Input

 0x20000, 3, 4, 5 

Sample Output

Writes 3 to [0x20000], 4 to [0x20004], and 5 to [0x20008] 

Write your solution here

Upload a source file...