;makro je dofinovane s kodovom segmentepred jeho pouziti
;makro ma meno pam
;makro ma formalny parameter

DATA	SEGMENT
TEXT	DB	'AHOJ$'
ENDS

CODE	SEGMENT
	ASSUME CS:CODE, DS:DATA, 
pam	MACRO t
	mov ah,9
	mov dx, offset t
	int 21h
	endm

start:	MOV AX, SEG DATA
	MOV DS, AX
	pam TEXT
	MOV Ax, 4c00H
	INT 21H
code	ends
	end start 