Interview Questions Answers.ORG
Interviewer And Interviewee Guide
Interviews
Quizzes
Home
Quizzes
Interviews PC Hardware Interviews:80858086A + (Plus) HardwareA+ and Basic PCBasic ComputerBIOSCD-ROM DriveComputer ArchitectureComputer Architecture And DesignCPU (Central Processing Unit)ECDLElectronicsEmbedded SystemsFloppy DiskHard Disk (HD)Hardware and Software DesignHardware DesignIntel MicroprocessorLaptop Hardware RepairerMicroprocessorMotherboardRAMx86Zip Drive
Copyright © 2018. All Rights Reserved
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: AdministratorThe 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
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
Copyright 2007-2025 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.
https://InterviewQuestionsAnswers.ORG.