+ 2

Expression Evaluation Assembly ( Please help me on this questions) Thank you

L1 : Expression Evaluation Using the Keil tool-set, create a subprogram that implements the evaluation of the following expressions: Expression 1 a - b + c + 32 Expression 2 a + 1 + b * 2 - 10 + c Create a test program that loads the R0, R1, and R2 registers with the values 50, 25, and 12, before executing the code that evaluates each expression. Each chunk of expression evaluation code should leave its result in the R0 register. You don't need to store and load the variables from memory. list or .s file This video shows how to store and load RAM variables. In the assignment described above, you may use MOVS to load the registers with the initial values--you don't need to store and load via RAM. __main ; a = 50 MOVS R0, #50 LDR R7, =a ;first address in SRAM STR R0, [R7] ;b = 25 MOVS R1, #25 LDR R7, =b STR R1, [R7] can any body help me with the rest

21st Sep 2020, 11:04 PM
arta farshadi
arta farshadi - avatar
1 Réponse
+ 5
1 - write the code for expanding and calculating resolution expressions like (+, -, /, *, (,)) in C. 2 - repeat all steps of the C code in Asm.
24th Sep 2020, 10:19 PM
Michail Getmanskiy
Michail Getmanskiy - avatar