.MODEL SMALL ; Define the memory model
.STACK 100H ; Reserving 256 bytes for this program
.DATA ; Data Segment for variable declaration
MSG1 DB 'CSE 3014.5 $' ; DB = Define Byte
MSG2 DB 'Microprocessor and Assembly Language Lab $'
.CODE ; Code Segment
MAIN PROC
MOV AX, @DATA ; INITIALIZATION of DATA Segment
MOV DS, AX
LEA DX, MSG1 ; LEA = Load Effective Address Compute address of value
MOV AH, 9 ; Output a String
INT 21H
MOV AH, 2 ; Output a character
MOV DL, 0DH
INT 21H ; NEWLINE
MOV DL, 0AH
INT 21H
LEA DX, MSG2 ; LEA = Load Effective Address
MOV AH, 9 ; Output a String
INT 21H
EXIT:
MOV AH, 4CH ; Exit
INT 21H
MAIN ENDP
END MAIN
.STACK 100H ; Reserving 256 bytes for this program
.DATA ; Data Segment for variable declaration
MSG1 DB 'CSE 3014.5 $' ; DB = Define Byte
MSG2 DB 'Microprocessor and Assembly Language Lab $'
.CODE ; Code Segment
MAIN PROC
MOV AX, @DATA ; INITIALIZATION of DATA Segment
MOV DS, AX
LEA DX, MSG1 ; LEA = Load Effective Address Compute address of value
MOV AH, 9 ; Output a String
INT 21H
MOV AH, 2 ; Output a character
MOV DL, 0DH
INT 21H ; NEWLINE
MOV DL, 0AH
INT 21H
LEA DX, MSG2 ; LEA = Load Effective Address
MOV AH, 9 ; Output a String
INT 21H
EXIT:
MOV AH, 4CH ; Exit
INT 21H
MAIN ENDP
END MAIN
No comments:
Post a Comment