Interviewer And Interviewee Guide

Intel Microprocessor Interview Question:

In assembly language, write the program to search for the largest number among n numbers which are stored in the memory?

Submitted by: Administrator
The program to detect the largest number among n numbers stored in the memory are as follows:
Step 1>>MOV AX, 0000
Step 2>>MOV SI, 0200
Step 3>>MOV CX, [SI]
Step 4>>BACK : INC SI
Step 5>>INC SI
Step 6>>CMP AX, [SI]
Step 7>>JAE GO
Step 8>>MOV AX, [SI]
Step 9>>GO: LOOP BACK
Step 10>>MOV [0251], AX
Step 11>>INT 3
Submitted by: Administrator

Read Online Intel Microprocessor Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.