sample programin this program we only displayline


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

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: sample programin this program we only displayline
Reference No:- TGS0327898

Expected delivery within 24 Hours