answersLogoWhite

0

Still curious? Ask our experts.

Chat with our AI personalities

ReneRene
Change my mind. I dare you.
Chat with Rene
EzraEzra
Faith is not about having all the answers, but learning to ask the right questions.
Chat with Ezra
BlakeBlake
As your older brother, I've been where you are—maybe not exactly, but close enough.
Chat with Blake
More answers

ASSUME CS: CODE ,DS: DATA

DATA SEGMENT

op1 dw 1000h

op2 dw 2000h

result dw 01 DUP (?)

DATA END

CODE SEGMENT

START:

MOV AX,2000H

MOV DS,AX

MOV AX,op1

MOV BX,op2

clc

ADD AX,BX

MOV DI,OFFSET result

MOV [DI] ,AX

MOV AH,4CH

INT 21H

CODE ENDS

END START

User Avatar

Wiki User

14y ago
User Avatar
User Avatar

bhargavi chowdary

Lvl 1
2y ago
I want sum of first 10 numbers

.model small

.STACK 100

.data

.code

START:

MOV CL, 10 ; the counter is in cx

MOV AX, 0 ; use ax as sum holder

MOV BX, 0

BACK:

ADD BX, 2

ADD AX, BX

DEC CL

JNZ BACK

END START

User Avatar

Wiki User

12y ago
User Avatar

Add your answer:

Earn +20 pts
Q: What is the 8086 program to find the sum of n numbers?
Write your answer...
Submit
Still have questions?
magnify glass
imp