ert the folowing progra X e 3724_1 8f/32-bit-ops/same,different_ca_Shtml mbly an
ID: 3752881 • Letter: E
Question
ert the folowing progra X e 3724_1 8f/32-bit-ops/same,different_ca_Shtml mbly and C with the PIC24 family same different ex 1.s Exercise for same different.s Same and different Convert the following C program to assembly. Test code checks it 1 vold same different ex_1(void) ( if (u32u32 b) f if body_func) s End. Code -text vold some different ex 1(votd) t same_different_ex 1: -globalsame different ex1 Wnite assembly which implements the C given above return Save and run Mark as completed es. Last updated on Sep, 20, 2018 12 readers online now usenaExplanation / Answer
Here is the assembly for the given C code:
;; void same_different_ex_1(void) {
_same_different_ex_1:
.global _same_different_ex_1
//moving u32_a to data register R7
MOVE _u32_a, R7
MOVE _u32_b, R8
//comparation with u32_a and u32_b
COMPARE R7, R8
//caling the if_body_func()
CALL_SUBROUTINE _if_body_func
;; }
return
Hoping that the answer helps !!!
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.