answersLogoWhite

0

Data segment

n1 db 20

n2 db 10

sum db ?

Data ends

code segment

assume cs:code,ds:data

start:mov ax,data

mov ds,ax

mov al,n1

mov bl,n2

add al,bl

mov sum,al

mov ah,4ch

int 21h

code ends

end start

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What is the assembly language program for GCD of two 16 bit unsigned integers using Intel 8086?

alp for lcm of a no


What assembly language is the best for making an OS?

The native Assembly language of the given platform. For example it would be stupid to write anything in Motorola 68000 Assembly for Intel x86 platform: it wouldn't work.


Write division of two 8 bit number using assembly language of Intel 8086?

Mov ax,[2020h] mov bx,[2022h] mul bl mov [2024h],ax hlt


What has the author Ross P Nelson written?

Ross P. Nelson has written: 'Microsoft's 80386/80486 programming guide' -- subject(s): Assembler language (Computer program language), Intel 80386 (Microprocessor), Intel 80486 (Microprocessor), Programming


What has the author James F Scanlan written?

James F. Scanlan is a professor of English and Comparative Literature, known for his research on Henry James and his works. Scanlan has written numerous scholarly articles and books focusing on James' literary influence and impact. Some of his notable works include "Narrative Perspective in the Posthumous Fiction of Henry James" and "Henry James: The Contemporary Reviews."


What is set a detailed instructions given to a computer?

Assembly language-or are you looking for the different instructions within assembly language if so search Intel 8086 datasheet in yahoo and download the datasheet for the Intel 8086 processor(x86) and the last three pages or so tell you the instructions.


Write a program to add an array of 8 bit numbers using assembly language of Intel 8085?

To add an array of 8-bit numbers using Intel 8085 assembly language, you can use the following program structure: MOV M, A ; Initialize the accumulator LXI H, 2000H ; Load the address of the array into HL register pair MVI C, 08H ; Set the counter to 8 (number of elements) XRA A ; Clear the accumulator for the sum ADD_LOOP: MOV A, M ; Load the current array element into the accumulator ADD A ; Add it to the accumulator INX H ; Move to the next element in the array DCR C ; Decrement the counter JNZ ADD_LOOP ; Repeat until all elements are added ; The sum is now in the accumulator (A) This program initializes the address of the array, clears the accumulator, and iterates through each element, adding them together before storing the result in the accumulator.


What kind of a form factor is E210822?

It could be Micro ATX or ATX or even something else. This number appears on a lot of Intel motherboards. The number you really need to find is the AA (Altered Assembly) number.


What is the first x86 Microprocessor?

"The x86 architecture first appeared as the Intel 8086 CPU released in 1978, a fully 16-bit design based on the earlier Intel 8085. Although not binary compatible, it was designed to allow assembly language programs written for the 8085 to be mechanically translated into the equivalent 8086 assembly. " Here's the entire Article: http://en.wikipedia.org/wiki/X86


Why assembly level language is called machine dependent language?

Machine languages are composed of instructions intended to be read directly by the microprocessor (the computer's CPU). The manufacturer of the CPU determines it's "INSTRUCTION SET" ASSEMBLY LANGUAGE on the other hand IS NOT machine dependent. The same commands ADD, Divide, Move, etc are universal. HOWEVER the ASSEMBLY LANGUAGE has to have an INTERPRETER for EACH CPU, and that will translate the Universal ASSEMBLY language to the MACHINE SPECIFIC code required to program the CPU.


What are the types of processors used in assembly language?

Each processor has its own assembly language (well, some of them has more than one).Example for i386:Intel-style:MOV EDX,[EBP-16]MOV EAX,[EBP-20]MOV [EDX],EAXAT&T style:mov -16(%ebp),%edxmov -20(%ebp),%eaxmov %eax,(%edx


What is the effect of computer architecture in the field of operating system?

The architecture will provide different sets of operators and memory and quite possibly how they were used (in assembly language for instance). Compare risc and Intel architecture for extreme proof.