68 399
Assignments Done
98,5%
Successfully Done
In December 2018

Answer to Question #8897 in Assembler for Ali

Question #8897
(a) Assemble the following instructions and show the changes in given Accumulator register and flags after each instruction execution.

MOV AL, 8Bh ; CF = ?, SF = ?, PF = ?, ZF = ?

ADD AL, 22h ; CF = ?, SF = ?, PF = ?, ZF = ?

AND Al, 1000101b ; CF = ?, SF = ?, PF = ?, ZF = ?

OR Al, 9Ah ; CF = ?, SF = ?, PF = ?, ZF = ?

XOR AL, 10101011b ; CF = ?, SF = ?, PF = ?, ZF = ?

TEST AL, 2 ; CF = ?, SF = ?, PF = ?, ZF = ?

CMP AL, 58 ; CF = ?, SF = ?, PF = ?, ZF = ?

ADC AL, 11110000b ; CF = ?, SF = ?, PF = ?, ZF = ?

SHR AL,2 ; CF = ?, SF = ?, PF = ?, ZF = ?
--------------------------------------------------------------------------------------------
b)
Write a subroutine that can calculate the sum of an array and also save the result into DX.
( Array’s length is 20)
------------------------------------------------------------------------------------------
Expert's answer
Unfortunately, your question requires a lot of work and cannot be done for free.
Submit it with all requirements as an assignment to our control panel and we'll assist you.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions