Example of assembly program, Computer Engineering

Assignment Help:

Sample Program

In this program we only display:

Line                             Offset

Numbers                          -----------------Source Code-----------------

0001                                                    DATA SEGMENT

0002                             0000    MESSAGE DB "HAVE A NICE DAY!$"

0003                                                     DATA ENDS

0004                                                    STACK SEGMENT

0005                                                    STACK 0400H  

0006                                                    STACK ENDS

0007                                                     CODE SEGMENT

0008                            ASSUME   CS: CODE, DS: DATA    SS: STACK

0009                            Offset   Machine          Code

0010                            0000    B8XXXX       MOV AX,  DATA

0011                            0003    8ED8               MOV DS, AX

0012                            0005     BAXXXX     MOV DX, OFFSET MESSAGE

0013                            0008    B409               MOV AH, 09H

0014                            000A  CD21              INT  21H

0015                            000C  B8004C            MOV AX,  4C00H

0016                            000F  CD21                INT   21H

0017                                                                CODE ENDS

0018                                                                END


Related Discussions:- Example of assembly program

Explain asymmetric cryptographyand its components, Explain Asymmetric crypt...

Explain Asymmetric cryptographyand its components. Asymmetric or public-key cryptography be different from conventional cryptography in which key material is bound to a single

Microprocessor and interfacing, Write an ALP to count positve and numbers f...

Write an ALP to count positve and numbers from array.

Use of large register file, Generally the register storage is faster than c...

Generally the register storage is faster than cache andmain memory. Also register addressing uses much shorter addresses than addresses for cache and main memory. Though the number

Describe about the desk top publishing, Desk Top Publishing (DTP) As wo...

Desk Top Publishing (DTP) As word processors develop increasingly more sophisticated features, differences with desk top publishing (DTP) packages becomes more and more blurred

Explain the principles of design, In structure chart whole application is d...

In structure chart whole application is divided into modules (set of program instructions) and modules are designed according to some principles of design. These are: Modularit

Web services method, Why cant datareader be returned from a Web Services Me...

Why cant datareader be returned from a Web Services Method? Ans) Because datareader is not serializable.

Smugglers problem, #question.Smugglers are becoming very smart day by day. ...

#question.Smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new technology, the

What do you mean by parallel virtual machine, Q.What do you mean by Paralle...

Q.What do you mean by Parallel virtual machine? PVM is essentially a simulation of a computer machine running parallel programs. It is a software package which allows a heterog

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd