An Assembly Language Program to display a string .
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
.MODEL SMALL .STACK 100H .DATA STRING_1 DB 'Assolam-o-Allikum$' STRING_2 DB 'Pakistan Zindabad$' .CODE MAIN PROC MOV AX, @DATA ; initialize DS MOV DS, AX LEA DX, STRING_1 ; load & display the STRING_1 MOV AH, 9 INT 21H MOV AH, 2 ; carriage return MOV DL, 0DH INT 21H MOV DL, 0AH ; line feed INT 21H LEA DX, STRING_2 ; load & display the STRING_2 MOV AH, 9 INT 21H MOV AH, 4CH ; return control to DOS INT 21H MAIN ENDP END MAIN |