Q1.txt - TITLE My First Program(Test.asm INCLUDE Irvine32.inc.data result1 SWORD result2 SWORD.code main proc mov edx,0 mov eax,0 mov ax-101 mov

Q1.txt - TITLE My First Program(Test.asm INCLUDE...

This preview shows page 1 out of 1 page.

TITLE My First Program (Test.asm) INCLUDE Irvine32.inc .data result1 SWORD ? result2 SWORD ? .code main proc mov edx,0 mov eax,0 mov ax,-101 mov bx,2 ;mov edx,0 idiv bx mov result2,ax mov eax,0 mov ax,-101 cwd mov bx,2 idiv bx call DumpRegs mov result1,ax exit main ENDP END main As there is no sign extension the number may be treated as a positive number
Image of page 1

Unformatted text preview: which changes the value completely, In the above case when there was no sign extension the value in ax changes to 7FCD which is equivalent to 32717 , obviously not the answer we needed...
View Full Document

  • Fall '19

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes