Write some functions in Assembly language, computer science homework help

Write some functions in Assembly language, computer science homework help

1/ Write a function that is called LoadTempGPR that loads registers $t0-$t9 to the stack using the suggested convention of the stack pointer grows down, and the stack pointer $sp is aligned by 8 bytes every time new data are added to the stack.

2/write a function in assembly that is called Sort that will use sort ten signed values in ascending order. The ten values are stored in memory such as the address of the first value is stored in Register $s0, and the address of the last value is going to be $s0+9. Using GetMax place the sorted values in address locations ($s0+10) to ($s0+19). All other GPRs are free to use. You may create other functions as needed. Hint: store loop indexes and the data size (10) in GPR registers.

3/ Write a function in assembly called GetMax that will take two signed values via $a0 and $a1, and return the maximum value via $v0. All other GPRs are Free to use. 

4/ Write a function in assembly called InitializePortG that will initialize pin G7 & G8 as inputs, using $t0, $t1.

"You need a similar assignment done from scratch? Our qualified writers will help you with a guaranteed AI-free & plagiarism-free A+ quality paper, Confidentiality, Timely delivery & Livechat/phone Support.


Discount Code: CIPD30



Click ORDER NOW..

order custom paper