midterm_5 (09summer)

midterm_5 (09summer) - 11 June 2009 SYSC-3006 Midterm Exam...

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: -/ 11 June 2009 SYSC-3006 Midterm Exam Page 7 of 7 Question 5 [8 marks] Declare three signed word variables (numl, num2, max), and initialize numl to 1234b, num2 to ABCDh and max as is in the data segment. In the code segment, write an assembly code that compares numl and numz, and store the largest value in max. Use jump instructions if needed (unsigned: JA, JB; signed: JG, IL). .model small 7 .stack lOOh ”d7 N .data . code / main PROC ; Write your code he e. MOV AX,@Jwta / MW 03, AX /V\0\/ CX, numl ; PM numl into CK MOV BX, huml ; put mm W0 BX UMP CX , EX 5 camp Ya numl X num2 la final/Wax * ; ex is Effie/v than tad-mam {Mal/V14; ax e! ) Mt Ewilihe “ndfixn' x/lV‘P/[ig mexvé BX ‘ {tide Iii/RX owl jWMP t0 8th dweotlj ‘ MOV maxi CX 3 {mi (fix in the "MAX" exit : MOV AX, 4C00h INT 21h main ENDP END main e ...
View Full Document

{[ snackBarMessage ]}

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