Question: please help Name: Objective: Write a program that uses Macros. Procedure: Write a program that adds 3245 decimal to 965 decimal and stores it in

Name: Objective: Write a program that uses Macros. Procedure: Write a program that adds 3245 decimal to 965 decimal and stores it in a variable named RESULT at location 030 in the General Purpose Register area. Use the ProgramTemplate.asm and PIC16Macros.asm as your starting point. It can be found on Blackboard Coursework \ Notes 6. Simulation: Test it on the MPLAB simulator. Examine the Register File BankO and give the contents of the following, after running your program in the simulator: After the above code, load 5823 decimal and 817 decimal into variables Var1 and Var2. Compare them using the 16 bit macros, simulate it and record the results: What can you infer from the Z and C bits: Z=,C= Var1 ___ Var2 (Fill the blank between Var1 and Var2 with the proper symbol: ,>=,, ) Turn in the program (Prolog through the end of Main) and this sheet
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
