Please help Write and run the following simple ARM assembly

Please help! • Write and run the following simple ARM assembly language programs using ARMSIM. • Debug each program and view the content of different registers. Program 1: Add two numbers. The numbers, 4 and 3, are assumed to be in register 0 and register 1, respectively, while the result is to be stored in the memory location whose address is in register 3. Program 2: Load the values 9 and 3into registers r2 and r3 respectively. Compute r2*r3 and store result in r1. Task 4: Describe your design solution to program the control unit for an electronic safe. Your proposed solution should use the Plugins tocontrol and show the status of the safe as follows: U: indicates safe is unlocked L: indicates safe is locked P: indicates safe is programming a code C: indicates safe is confirming a new code F: indicates safe is forgetting an old code A: indicates a programming request was successful E: indicates a programming fault. The safe starts unlocked, cannot be locked and there are no valid codes. Whenever there are no codes the safe cannot be locked. To lock the safe (this should work at ANY time): • Press the left black button. To unlock the safe (This should work ONLY when the safe is locked): • Enter a valid code sequence • Press the left black button. To learn a new code (codes must be 4 buttons or more): • Press the right button once • 7-Segment should show \'P\' • Enter a new code sequence • Press the right button again. • 7-Segment should show \'C\' • Enter the same code sequence • Press the right button a third time. • If the code was correct 8-segment displays \'A\' • If the code was incorrect 8-segment display \'E\' To forget an old code: • Press the right black button • 7-Segment should show \'P\' • Enter an old code sequence • Press the right button again. • 7-Segment should show \'F\' • Enter the same code sequence • Press the right button a third time • If the codes matched 8-segment displays \'A\' • If the codes did not matched 7-Segment displays \'E\' Your proposed design solution should include functions to be used, instructions, registers, flow chart, graphical illustrations….etc.

Solution

1) ADD R3,R0,R1 ;Add two numbers. The numbers, 4 and 3, are assumed to be in register 0 and register 1, respectively, while the result is to be stored in the memory location whose address is in register 3

2) MOV R2,#9 ;Load the value 9 into register R2

MOV R3,#3 ;Load the value 3 into register R3

MUL R1,R2,R3 ;Compute r2*r3 and store result in r1

3) The third part takes more than 2 hours... i recomendd you separate into 3 parts for helping you with that

  

Please help! • Write and run the following simple ARM assembly language programs using ARMSIM. • Debug each program and view the content of different registers.

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site