Question
Do the hand calculations (in binary and hex formats and show your work for full credits) of the following math/logic operations and run MPLAB simulator
Do the hand calculations (in binary and hex formats and show your work for full
credits) of the following math/logic operations and run MPLAB simulator to verify the
operation results and Z, DC, C flags indication.
(1) 0X23 - 0X29 save the results in memory (DM) at 0X30 and STATUS register content
at 0X31 (6 Points)
(2) 0X75 - 0X7E save the results in memory (DM) at 0X32 and STATUS register content at
0X33 (6 Points)
(3) 0XB9 - 0XAA save the results in memory (DM) at 0X34 and STATUS register content
at 0X35 (6 Points)
(4) 0XFF + 0X05 save the results in memory (DM) at 0X36 and STATUS register content at
0X37 (6 Points)
(5) 0XD8 + 0XEC save the results in memory (DM) at 0X38 and STATUS register content
at 0X39 (6 Points)
(6) 0XC9 AND 0X00 save the results in memory (DM) at 0X3A and STATUS register content
at 0X3B (6 Points)
(7) 0XE4 IOR 0XE4 save the results in memory (DM) at 0X3C and STATUS register content
at 0X3D (6 Points) (The IOR instruction is for logic OR operation.)
(8) 0XFE XOR 0XFE save the results in memory (DM) at 0X3E and STATUS register content
at 0X3F (6 Points) (The XOR instruction is for logic XOR operation.)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started