Question

mov ax, 0 mov bx, 1000H K1 cmp [bx), 2. je K2 inc bx inc ax jmp K1 K2 : hlt Adres Data 1000H 1 1001H 5 1002HB 1003H LA 1004H
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Given, Data 1 Adress 1000 H 1001 H 1002 H 1003H 1004 H 100SH 1006 H 1007H 1008 H 1009H 1010H 5 B A 2 B 3 B 3 A 3 mov ax, o mo(2) Cbx) = 5 bx=1002 H ([bx] + 2) ax=02 (3) Cbx] =B bx - 1003H (°. (bx+2) ax=03 (4) (bx] = bx = 1004H ax04 (:Cbx] + 2] (5) [b

Add a comment
Know the answer?
Add Answer to:
mov ax, 0 mov bx, 1000H K1 cmp [bx), 2. je K2 inc bx inc ax...
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
  • MOV AX, O MOV CX, 5 MOV BX, 3 MOV DX, 16 INC BX ADD AX,...

    MOV AX, O MOV CX, 5 MOV BX, 3 MOV DX, 16 INC BX ADD AX, BX LOOP L1 L1: What is the value of AX, how many cycle is the loop?

  • Explain what does the following program do. c) MOV DX,0 MOV BL, E MOV CX,FF し1: MOV Ax.cx DIV BL...

    by using 8086 microprocessor Explain what does the following program do. c) MOV DX,0 MOV BL, E MOV CX,FF し1: MOV Ax.cx DIV BL CMP AH,0 JZ L2 TST: LOOP L1 JMP EXIT L2: INC DX JMP TST EXIT: HLT Exit Explain what does the following program do. c) MOV DX,0 MOV BL, E MOV CX,FF し1: MOV Ax.cx DIV BL CMP AH,0 JZ L2 TST: LOOP L1 JMP EXIT L2: INC DX JMP TST EXIT: HLT Exit

  • You have to put the input to the line(Linea), rectangle(rectangulo), triangle(triangulo) and circle(circulo) in assembly 8086...

    You have to put the input to the line(Linea), rectangle(rectangulo), triangle(triangulo) and circle(circulo) in assembly 8086 please, Same as this code, add that input that I'm asking. Which user of the size and the area where the figure will be located on the screen. .MODEL SMALL   .STACK 100h .DATA    mensaje db 'Seleccione una opcion del siguiente Menu',13, 10        db '1. Dibujar un Circulo', 13, 10        db '2. Dibujar una Linea', 13, 10        db '3. Dibujar un...

  • 5. Assume DS-1000, CS- 800, Ax-3412H, and BX-0200H. For the following x86 assembly code: MOV [BX...

    5. Assume DS-1000, CS- 800, Ax-3412H, and BX-0200H. For the following x86 assembly code: MOV [BX +1000H], AX a) Translate the assembly code to machine code (in Hex). The opcode of MOV instruction is 100010. b) Show the values of AX, BX, and new values in memory, if there are, in the following figure c) (10 points) AFTER executing the instruction. (5 points) What is the memory address accessed by the instruction, assuming real mode operation? Show it in the...

  • 1. If DS-1000H, BX-0200H, SI-O2H, the contents of Memory units10200H 10205H are respectively 10H, 2AH, 3CH,...

    1. If DS-1000H, BX-0200H, SI-O2H, the contents of Memory units10200H 10205H are respectively 10H, 2AH, 3CH, 46H 59H、6BH. What is the contents of the AX Register after each of the following instructions is executed? (1)MOV AX, 0200H (3)MOV AX, BX (5)MOV AX, [BX+SI (2) MOV AX, [200H (4) MOV AX, 3BXI (6) MOV AX, 2[BX+SI] 2, If DS 1000H, ES-2000H, SS-3500H, SI-00AOH, DI-0024H, BX-01 00H, BP-0200H. The Offset Address of the variable named VAL in the data segment is 0030H...

  • Answer based on microprocessor 8086 (10) LEA BX, CX 7. Suppose that (AX)-4AOBH, the content of...

    Answer based on microprocessor 8086 (10) LEA BX, CX 7. Suppose that (AX)-4AOBH, the content of [1020H] storage unit is 260FH. Try to determine the results of the following instructions. (1) MOV AX, 1020H (AX) (2) XCHG AX, [1020H) ; (AX) (3) MOV AX, [1020H) ;(AX)=- (4) LEA AX, [1020H) ; (AX) 10. Suppose the size of the stack segment is 256 bytes. The starting address of the stack is 1250: 0000H, assuming there are 5 word-sized data in the...

  • ) Identify the hexadecimal value moved to the destination by each of the following instruction below...

    ) Identify the hexadecimal value moved to the destination by each of the following instruction below based on the given data declaration. Assume that the offset of byteVal is 00000000H data byteVal wordVal dwordVal aString BYTE 1,2,3,4 WORD 1000H,2000H,3000H,4000H DWORD 12345678H,34567890H BYTE "ABCDEFG",0 ax,offset byteVal i. mov dx,wordVal i. mov al,aString+2 i11. mov dx,wordVal+4 iv. mov mov eax,offset byteVal+2 V. CO2 (10 marks) d) The incomplete program below used to find the multiplication product of the given numbers by 4...

  • 1. What will be the contents of BX after the following instructions execute? mov bx,5 stc...

    1. What will be the contents of BX after the following instructions execute? mov bx,5 stc mov ax,60h adc bx,ax 2. Describe the output when the following code executes in 64-bit mode: .data dividend_hi QWORD 00000108h dividend_lo QWORD 33300020h divisor QWORD 00000100h .code mov rdx,dividend_hi mov rax,dividend_lo div divisor 3. The following program is supposed to subtract val2 from val1. Find and correct all logic errors (CLC clears the Carry flag): .data val1 QWORD 20403004362047A1h val2 QWORD 055210304A2630B2h result QWORD...

  • EEE 3423 - MICROPROCESSOR & MICROCOMPUTERS Sem I, 2019/2020 TUTORIAL #2: Week 05 - Week 08...

    EEE 3423 - MICROPROCESSOR & MICROCOMPUTERS Sem I, 2019/2020 TUTORIAL #2: Week 05 - Week 08 Answer all questions. [CO1-P011 1. Assuming that the instructions below are being executed in sequence from line 1 to 6. MOV AL, 010101010 MOV AH, AL AND AL, 00011111B OR AH, 11000000B XOR AL, 00001111B (62 NOT AH Descnbe the result of executing the following sequence of instructions from line 1 to 6 respectively but in HEX number system. Then, please provide the final...

  • This is a question from Assembly Language for x86 7th Edition by Kip Irvine, but the...

    This is a question from Assembly Language for x86 7th Edition by Kip Irvine, but the solution is not there. Programming exercise 12.7 #2. The code must be in assembly language for Intel using Kip Irvine library. An example of the source code would be: INCLUDE Irvine32.inc .code main PROC mov ax,4000h mov bx,1000h mov cx,1500h sub ax,bx sub ax,cx call DumpRegs exit main ENDP END main Question: Write a procedure that receives a single-precision floating-point binary value and displays...

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