Question
(S points) Complete the assembly implementation of sum2. C Progranm Assenbly Progran long sun2(long long a1, long long a2): AREA sue, CODE EXPORTmain ALIGN int naino( "ain pROC long long t; t sun2(1, 2); while(1): MOV r0, #1 MOV rl, MOV r3, #2 MOV r4, #e BL SUnz 1' 64-bit argunent ; 2nd 64-bit argunent ; result in ri:re ; LR points to stop LDR r3, t; memory address of t STR re, r3save lower 32 bits STR rl, [r3, 4] save upper 32 bits :re 3, rl in ; this example stop stop ENDP long longsum2(long long sum2 PROC ; nane of procedure al, long long az)1 long long total; total al a2; return total; ENDP AREA myData, DATA END ; end of procedure ; allocate 8 bytes i end of prograrn
Explanation / Answer
now the result is having 2 parts ie r1 : r0