You are on page 1of 7

TITLE MYPROG1.

ASM
DOSSEG
.MODEL SMALL
.STACK 0100h
.DATA
.CODE
START:
MOV AX,@DATA
MOV DS, AX
MOV AH, 02h
MOV DL, A
INT 21h
MOV AX, 4C00h
INT 21h
END START

TITLE MYPROG2.ASM
DOSSEG
.MODEL SMALL
.STACK 0100h
.DATA
.CODE
START:
MOV AX,@DATA
MOV DS, AX
MOV AH, 02h
MOV DL, b
MOV AH, 02h
MOV DL, b
INT 21h
MOV AX, 4C00h
INT 21h
END START

TITLE MYPROG3.ASM
DOSSEG
.MODEL SMALL
.STACK 0100h
.DATA
.CODE START:
MOV AX,@DATA
MOV DS, AX
MOV AH, 02h
MOV DL , I
INT 21h
MOV DL, 0Ah
INT 21h
MOV DL, 0Dh
INT 21h
MOV DL, T
INT 21h
MOV DL, 0Ah
INT 21h
MOV DL, 0Dh
INT 21h

MOV DL, E
INT 21h
MOV AX, 4C00h
INT 21h
END START

TITLE MYPROG4.ASM
DOSSEG
.MODEL SMALL
.STACK 0100h
.DATA
.CODE
START:
MOV AX,@DATA
MOV DS, AX
MOV CX, 001Eh
MOV AH, 02h
MOV DL, z
A:
INT 21h
LOOP A
MOV AX, 4C00h
INT 21h
END START

TITLE MYPROG5.ASM
DOSSEG
.MODEL SMALL
.STACK 0100h
.DATA
.CODE
START:
MOV AX,@DATA
MOV DS, AX
MOV CX, 001Eh
MOV AH, 02h
MOV DL, A
B:
INT 21h
INC DL
LOOP B
MOV AX, 4C00h
INT 21h
END START

TITLE MYPROG6.ASM
DOSSEG
.MODEL SMALL
.STACK 0100h
.DATA
X
DB
computer$
.CODE
START:
MOV AX,@DATA
MOV DS, AX
MOV AH, 09h
MOV DX, OFFSET X
INT 21h
MOV AX, 4C00h
INT 21h
END START

.386
.model flat,stdcall
option casemap:none
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
includelib \masm32\lib\kernel32.lib
include \masm32\include\user32.inc
includelib \masm32\lib\user32.lib
.data
MsgBoxCaption db "Message Box",0
MsgBoxText db "Win32 Assembly is Great!",0
.code
start:
invoke MessageBox, NULL, addr MsgBoxText, addr MsgBoxCaption, MB_OK
invoke ExitProcess, NULL
end start