Question

In the following instruction sequence, show the values of the Carry, Zero, and Sign flags where indicated: mov al, 00001111b

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Assume initial all flag values are zero.

mov al,00001111b ; CF = 0;ZF=0;SF=0

test al,00000010b ;   CF = 0;ZF=0;SF=0

mov al,00000110b ; CF = 0;ZF=0;SF=0

cmp al,00000101b ;   CF = 0;ZF=0;SF=0

Here, mov instruction do not effect the flags, till accumulator is loaded with zero.

Add a comment
Know the answer?
Add Answer to:
In the following instruction sequence, show the values of the Carry, Zero, and Sign flags where...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Need help just the answers In the following instruction sequence, show the changed values of AL...

    Need help just the answers In the following instruction sequence, show the changed values of AL where indicated, in binary; a. _____ b. ____ c. ____ d. ______ In the following instruction sequence. show the changed values of AL where indicated, in hexadecimal: a. ____ b. ____ c. _____ d. ____ In the following instruction sequence, show the values of the Carry, Zero, and Sign flags where indicated: a. CF = ___ ZF = ___ SF = ____ b. CF...

  • Determine the contents of register AL and the carry, sign, zero, and overflow flags after the...

    Determine the contents of register AL and the carry, sign, zero, and overflow flags after the following two 8086 instructions are executed in sequence: MOV AL,0x4C ; Load register AL with 0x4C ADD, AL,0x3E ; Add 0x3E to the contents of AL (which is 0x4C) and place the result (sum) in AL

  • Assume that the registers have the following values (all in hex) and that CS= 1000, DS...

    Assume that the registers have the following values (all in hex) and that CS= 1000, DS = 2000, SS=3000, SI=4000, DI = 5000, BX=6080, BP= 7000, AX=25FF, CX=8791, and DX=1299. Calculate the physical address of the memory where the operand is stored and the contents of the memory locations in each of the addressing examples. a) MOV [SI], AL b) MOV [SI+BX+8], AH c) MOV [BX]+300, DX Now Examine the status of the CF, PF, AF, ZF, and SF if...

  • 1) Assume the registers are initialized to the indicated values: Se al A c and code...

    1) Assume the registers are initialized to the indicated values: Se al A c and code frogments MUST use 32 ぁ ar movennes (anor be "nedfra-ne ibrary function or procedural calls ino- Pe Peue c for ll codr ond code frogments only othu ey document your code with Comments unless the code size is Drow Fow Chort for any flow of control involving branches and loops Use PoCedures as modules to organize most of the code and code fragments. In...

  • EAX 1CB2 H, EBX = 952 D, ECX - 1275 D, EDX -300 D What will...

    EAX 1CB2 H, EBX = 952 D, ECX - 1275 D, EDX -300 D What will be value stored in the four registers after executing the following instructions? Each group of instructions is executed independently from the initial values given above. Please also show which flag (zero, carry, sign) may be influenced. Hint you can test it in NSAM. a) and CL, AH b) shr CX, 3 c) or CL, 0D H not CL d) rol CX, 3 cmp DX,...

  • Use the following data declarations. Assume that the offset of byteVal is 00000000: data byteValsbyte 1,2,3,ffh...

    Use the following data declarations. Assume that the offset of byteVal is 00000000: data byteValsbyte 1,2,3,ffh dwordVal dword 34567890h, 90785634h, 12346745h Show the value of the final destination operand after each of the following code fragments has executed:(If any instruction/s is invalid, indicate "INV" as the answer and briefly explain why) a.mov edi, 2 answer al mov al, (byte Val + edi) b.mov ebx, dwordVal+4 answer ebx - [esi).- (show your answer in liteedim mov esi, offset dwordVal+8 xchg ebx,...

  • Question 2 ARM Assembly Language (25 marks) An ARM instruction set summary is provided at the...

    Question 2 ARM Assembly Language (25 marks) An ARM instruction set summary is provided at the end of this paper. (5 marks) Explain the difference between eor and eors instruction. Use an example to show why both forms are useful. а. b. (5 marks) Explain using an example what the "Idr r3, [r7,#4]" instruction does. c. (10 marks) The following is the assembly language generated by a C compile type mystery, %function mystery: args 0, pretend = 0, frame =...

  • 1. Registry conditions:         A. Show how the decimal integer          * -120 would be stored...

    1. Registry conditions:         A. Show how the decimal integer          * -120 would be stored in 16 bits          * -120 would be stored in 8 bits          * -32456 would be stored in 32 bits          * -32456 would be stored in 16 bits         B. For each of the following decimal numbers, tell whether it could be         stored (1) as a 16-bit number (2) as an 8-bit number.          * 32768          * -40000          *...

  • can you show me how you get each one or fill the table? Given the following memory and register values as shown in Tables 1& 2 below: Determine the values of the A, B, X, Y, CCR & SP regis...

    can you show me how you get each one or fill the table? Given the following memory and register values as shown in Tables 1& 2 below: Determine the values of the A, B, X, Y, CCR & SP registers in Table 1 as the program is executed Show new values of memory content in Table 2 if the memory location content is affected. - NOTE: This is a continues program where instruction results affect the instruction that follows Leave...

  • Need help on Assembly language 1.Solve the following conditions: A. Suppose AL contains 11001011 and CF...

    Need help on Assembly language 1.Solve the following conditions: A. Suppose AL contains 11001011 and CF = 1.    Give the new contents of AL after each of the following instructions is executed.    Assume the above initial conditions for each part of this question. a. SHL AL,1 b. SHR AL,1 c. ROL AL,2 d. ROR AL,3 e. SAR AL,2 f. RCL AL,1 g. RCR AL,3 B. Suppose EAX contain ABCDH.    Show the contents of BX and CX after...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT