Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Marketing Management Expert

Program: Add two five-byte numbers using arrays

; ALGORITHM:

;           Make count = LEN

;           Clear the carry flag

;           Load address of NUM1

;           REPEAT

;                       Put byte from NUM1 in accumulator

;                       Add byte from NUM2 to accumulator + carry

;                       Store result in SUM

;                       Decrement count

;                       Increment to next address

;           UNTIL count = 0

;           Rotate carry into LSB of accumulator

;           Mask all but LSB of accumulator

;           Store carry result, address pointer in correct position.

; PORTS   : None used

; PROCEDURES: None used

; REGISTERS: Uses CS, DS, AX, CX, BX, DX

DATA SEGMENT

                        NUM1 DB 0FFh, 10h ,01h ,11h ,20h

                        NUM2 DB 10h, 20h, 30h, 40h ,0FFh

                        SUM DB 6DUP (0)

DATA ENDS

                        LEN EQU 05h; constant for length of the array

CODE SEGMENT

                        ASSUME CS: CODE, DS: DATA

START:           MOV AX, DATA; initialise data segment

                        MOV DS, AX; using AX register

                        MOV SI, 00; load displacement of 1stnumber.

                                                ; SI is being used as index register

                        MOV CX, 0000; clear counter

                        MOV CL, LEN; set up count to designed length

                        CLC   ; clear carry. Ready for addition

AGAIN:          MOV AL, NUM1 [SI]; get a byte from NUM1

ADC AL, NUM2 [SI]; add to byte from NUM2 with carry

MOV SUM [SI], AL; store in SUM array

INC SI

LOOP AGAIN; continue until no more bytes

RCL AL, 01h; move carry into bit 0 of AL

AND AL, 01h; mask all but the 0th bit of AL

MOV SUM [SI], AL; put carry into 6th byte

FINISH:          MOV AX, 4C00h

INT 21h

CODE             ENDS

END START

Marketing Management, Management Studies

  • Category:- Marketing Management
  • Reference No.:- M9574761

Have any Question?


Related Questions in Marketing Management

Question review the website you selected for your week 3

Question: Review the website you selected for your Week 3 assignment. Create a 16- to 20-slide Microsoft® PowerPoint® presentation with speaker's notes about your selected website in which you complete the following: 1. ...

In this assessment students are required to submit a

In this assessment students are required to submit a written assignment and deliver an oral presentation relating to Integrated Marketing Communications. Students will apply skills and knowledge to propose an IMC campaig ...

Question utilizing the readings from the text and your

Question: Utilizing the readings from the text and your research, provide an in-depth analysis of 3 social media platforms and how businesses are utilizing them to reach new and existing customers. Specific groups to be ...

Question after watching this video -- we want to consider

Question: After watching this video -- we want to consider the shift in marketing from business to business. We have discussed direct marketing to target markets - but if we work for a organization whereby we market to o ...

Question respond to the followinghow has the internet

Question: Respond to the following: How has the internet affected marketing research? As a part of your answer address time, cost, approaches, or validity. The response must be typed, single spaced, must be in times new ...

Question research identify and discuss what the marketing

Question: Research, identify, and discuss what the marketing mix is as well as why it is important to a business. The requirements below must be met for your paper to be accepted and graded: • Attempt APA style, see exam ...

Question respond to your discussion topics after you have

Question: Respond to your Discussion topics after you have completed your reading. As one of the more popular tools in marketing research, surveys have become automated. These on-line surveys address various types of dat ...

Question types of market researchrespond to your discussion

Question: Types of Market Research Respond to your Discussion topics after you have completed your reading. Market research is one of the most critical steps to successful marketing. This Discussion will focus on differe ...

Quesiton business ideas for nurse practitioner

Quesiton: Business Ideas for Nurse Practitioner Entrepreneurs Presentation Nurse practitioners can practice in many locations and can be a clinical practice as well as a consulting business, educational business. Read th ...

Assessment 1 - projectthis assessment consists of 3 parts

ASSESSMENT 1 - PROJECT This assessment consists of 3 parts, Part A, B and C. Part A: You are required to choose a product or service; research the existing market environment; and develop a marketing strategy for your ch ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As