Thanks Frank .. that is what I am doing ..
;=============== S U B R O U T I N E =======================================
i33ptst:
push bp
mov bp, sp ; stack frame
sub sp, 32 ; 32 bytes variable stacksize
push dx
mov si, 24Dh
lea di, [bp-32]
.rept: ; repeat
lodsb ; get command line param
mov [ss:di], al ; *dispbfr++ = param
inc di
cmp al, 13 ; until param = \r
jnz .rept
xor al, al ; zero string
mov [ss:di],al
lea di, [bp-32]
xor dx,dx
.whdsp: ; while *dispbfr++ != \r
mov al, [ss:di]
cmp al,13
jz .ewdsp
inc di
mov ah, 9
int 3eh ; display *dispbfr
jmp short .whdsp
.ewdsp:
pop dx
mov sp, bp ; restore stack
pop bp
retn
i33ptstend:
I just wanted to use nasm syntax!
Billy