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

What about division and multiply operations, Q. What about division and mul...

Q. What about division and multiply operations? In most of the older computers divisions and multiply were implemented using subtract/add and shift micro-operations. If a digit

Arithmetic-logic section in computer system, Arithmetic-logic section in co...

Arithmetic-logic section in computer system: The   arithmetic-logic section performs arithmetic   operations, such subtraction, addition, multiplication, and division. Throug

What do you meant by an expert system, (a) What do you meant by an Expert S...

(a) What do you meant by an Expert System (ES) and explain briefly the essential differences between a Decision Support system and ES. (b) What are decision tables and what are

the email interface to submit/change bugs via email, You can search an upd...

You can search an updated README.mailif file in the contrib/ directory of your Bugzilla distribution that walks you by the setup.

What is a macro, What is a macro ? How it is defined ? Preprocessor' is...

What is a macro ? How it is defined ? Preprocessor' is a translation phase that is applied to  source code before the compiler  proper  gets  its  hands on  it.  Generally,  th

Unix , how to write algorithum for unix progam

how to write algorithum for unix progam

Explain booth''s multiplication algorithm, Computer Organization 1. Dr...

Computer Organization 1. Draw a flowchart of a Booth's multiplication algorithm and explain it. 2. What is the concept of memory interleaving? 3. Explain virtual memory? Expla

Simplify following using k-map, Q. Explain XNOR gate with three input varia...

Q. Explain XNOR gate with three input variable and draw necessary circuits. Q. Simplify FOLLOWING Using K-Map 1. m0 + m1 + m6 + m7 + m12 + m13 + m8 + m9 2. m0 + m2 + m4 +

What is memory controller, What is memory controller? A memory controll...

What is memory controller? A memory controller is a circuit which is interposed among the processor and the dynamic memory. It is used for performing multiplexing of address bi

What is the cih, CIH, also known  as Chernobyl or Spacefiller, is a Microso...

CIH, also known  as Chernobyl or Spacefiller, is a Microsoft Windows computer virus which first emerged in 1998. It is one of the most damaging viruses, overwriting critical inform

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