
Problem5.2 There are 10 bytes of data stored in external RAM starting from address TABLE. It is r...
2. Assume there are two 4-byte numbers stored in addresses begin with DATA and DATA2 (lower byte first): it is required to calculate the sum of the tw numbers. Please draw the flowchart to implement this task (can refer to the cod below) R0.#DATA 1 MAIN: MOV MOV R 1 , #DATA2 MOV R2,#0411 CLR C LOOP: MOV A, @Ro ADDC A. @R1 MoV @RO, A INC RO INC RI DJNZ R2. LOOP JC OTHER RET
2. Assume there are...
(By using HCS12 assembly)You have a table of 10 Fahrenheit temperatures stored as words in Flash. Use the posted lab1_b.asm file as starting point. Write an assembly program that converts every Fahrenheit temperature element in Fahrs array into a Celsius temperature and stores the result at the corresponding element in Cels array. Use this relation: C = (5/ 9) * (F 32) for conversion. Because temperatures are signed, you will have to use signed multiplication and division instructions in your...