FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

WHAT IS PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which of the following commands would be used to end a program written in assembly language?
A
STOP
B
HALT
C
END
D
FINISH
Explanation: 

Detailed explanation-1: -Use the END instruction to end the assembly of a program. You can also supply an address in the operand field to which control can be transferred after the program is loaded. The END instruction must always be the last statement in the source program.

Detailed explanation-2: -The program of instructions written in assembly language is known as the source program; an assembler program translates it into a machine language program, called an object program.

Detailed explanation-3: -return(0); // logical end of the program. So in C++ and other similar languages, the return statement is used to stop the execution of the program when in main( ).

Detailed explanation-4: -Write an Assembly Language program which contains a function which adds the contents of the AX and BX registers and puts the result into the CX register. Write a program which loads the values 00h, 01h, 02h, … FEh, FFh into the memory locations starting from address DS:0008h. A basic layout is shown below.

There is 1 question to complete.