ECE391_Homework_4 - Ho Chi Minh City University of Technology Engineering Department of Electronics and Electrical ECE391 Computer System Engineering

ECE391_Homework_4 - Ho Chi Minh City University of...

This preview shows page 1 - 2 out of 2 pages.

Ho Chi Minh City University of Technology Department of Electronics and Electrical Engineering ECE391: Computer System Engineering Homework 4 (Deadline: 6 Nov., 2015) 1.For each part of this problem, answer the value of registers after the instruction isexecuted.No.BeforeInstructionAfter1BX: FF 75CX: 01 A2mov bx, cxBX: CX: 2AX: 01 A2mov ax, 100AX: ?3EDX: FF 75 4C 2EValue: DWORD 1mov edx, ValueEDX: ?Value: ?4AX: 01 4Bmov ah, 0AX: ?5EBX: 00 00 3A 4CValue: DWORD ?mov Value, ebxEBX: ?Value: ?6EBX: FF FF FF 75ECX: 00 00 01 A2add ebx,ecxEBX, ECX, SF, ZF, CF,OF7EBX: FF FF FF 75ECX: 00 00 01 A2sub ebx,ecxEBX, ECX, SF, ZF, CF,OF8BX: FF 75CX: 01 A2sub cx,bxBX, CX, SF, ZF, CF, OF9EAX: 00 00 00 64sub eax,100EAX, SF, ZF, CF, OF10AX: 0A 20add ax,ValueAX, SF, ZF, CF, OF2.Write a complete 80x86 assembly language program to prompt for values of x, y, and zand display the value of the expression x*2y + 4z. Allow for 16-bit integer values.3.Assume for each part of this problem that the EAX register contains 00 00 00 4F and the ? ? word at Value: FF 20

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture