Program using MACRO for 8086 microprocessor

title MACRO

deep macro msg
    lea dx,msg
    mov ah,9
    int 21h
endm

.model small

.stack 100h

.data
msg1 db 10,"DEEP$"
msg2 db 10,"BABA$"
msg3 db 10,"We are family.$"

.code
start:
    mov ax,@data
    mov ds,ax
    deep msg1
    deep msg2
    deep msg3
    ;mov ax,4c00h
    ;int 21h
    .exit
end start
end

No comments:

Post a Comment