ECE391_Homework_4.docx - Ho Chi Minh City University of...

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

Ho Chi Minh City University of TechnologyDepartment of Electronics and ElectricalEngineeringNAME:LÊ HOÀNG TUẤN ANHSTUDENT ID:1751005ECE391: Computer System EngineeringHomework 41.For each part of this problem, answer the value of registers after the instruction isexecuted.No.BeforeInstructionAfter1BX: FF 75CX: 01 A2mov bx, cxBX:01 A2CX:01 A22AX: 01 A2mov ax, 100AX:1003EDX: FF 75 4C 2EValue: DWORD 1mov edx, ValueEDX: 1Value: 14AX: 01 4Bmov ah, 0AX: 01 4B5EBX: 00 00 3A 4CValue: DWORD ?mov Value, ebxEBX: 00 00 3A 4CValue: 00 00 3A 4C6EBX: FF FF FF 75ECX: 00 00 01 A2add ebx,ecxEBX: 00 00 01 17ECX: 00 00 01 A2SF: 0, ZF: 0, CF: 1,OF: 07EBX: FF FF FF 75ECX: 00 00 01 A2sub ebx,ecxEBX: FF FF FD D3ECX: 00 00 01 A2SF: 1, ZF: 0, CF: 0,OF: 08BX: FF 75CX: 01 A2sub cx,bxBX:FF 75CX: 01 A2SF: 1, CF: 0, OF: 0,ZF: 09EAX: 00 00 00 64sub eax,100EAX:00 00 00 00SF: 0, ZF: 1, CF: 0,OF:010AX: 0A 20word at Value: FF 20add ax,ValueAX: 09 20SF: 0, ZF: 0, CF: 1,OF: 02.Write a complete 80x86 assembly language program to prompt for values of x, y, and z

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 5 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Spring
Professor
TruongQuangVinh
Tags
Ho Chi Minh, Greatest common divisor, Ho Chi Minh City, CHI MINH CITY UNIVERSITY OF TECHNOLOGY, Dr Truong Quang Vinh, Department of Electronics and Electrical

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture