Something
public text v1 · immutable .Model Small;64KB
.Stack 100h;256 Bytes
.DATA
Meldung DB "Hello World",10,13,"$"
.CODE
Start: WriteStr MACRO Str,WieOft
mov ax,@data
mov ds,ax
mov dx,OFFSET Str
mov cx,WieOft
call RepStr
ENDM WriteStr
WriteStr Meldung,3
mov ah,4Ch
int 21h
RepStr PROC NEAR
push ax
push cx
mov ah,09h
LoopLbl: int 21h
Loop LoopLbl
pop cx
pop ax
ret
RepStr ENDP
END Start