Assembly Language-part1 Please refer to slides and Primer boards lessons 1. If the switch S7 of the input PORT0 connected to the data line D7 is at logic 1 and the other switches are at logic 0,...

I need someone to do the assignment pleas


Assembly Language-part1 Please refer to slides and Primer boards lessons 1. If the switch S7 of the input PORT0 connected to the data line D7 is at logic 1 and the other switches are at logic 0, specify the contents of the accumulator when the instruction IN PORT0 is executed. MVI A,9FH IN PORT0 MOV B,A OUT PORT1 HLT 2. Specify the output at PORT1 and the contents of the register B after executing the instructions in Problem #1. 3. Specify the register contents and the flag status as the following instructions are executed. A C S Z CY XX XX 0 0 0 MVI A,5EH ADI A2H MOV C,A 4. Specify the register contents and the flag status as the following instructions are executed. A B S Z CY XX XX X X X SUB A MOV B,A DCR B INR B SUI 01H 5. Write a program to a. clear the accumulator b. add 47H (use ADI instruction) c. subtract 92H d. add 64H e. display the results after subtracting 92H and after adding 64H 6. Specify the register contents and the flag status as the following instructions are executed A B S Z CY XX XX 0 0 0 XRA A MVI B,4AH SUI 4FH ANA B 7. What is the output at PORT1 when the following instructions are executed? MVI A,8FH ADI 72H JC DSPLAY OUT PORT1 HLT DSPLAY: XRA A OUT PORT1 HLT
Nov 04, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here