;********************************************************************************************** ;* * ;* LAB3-3.ASM - Assembler Laboratory ZMiTAC * ;* * ;* program that displays command line parameters * ;* * ;********************************************************************************************** .model small .286 .stack 512 .code assume ds:nothing beginning: mov bx, 80h ; address of parameter in PSP block mov cl, ds:[bx] ; parameter length xor ch, ch ; cx - length or cx, cx ; is the parameter string empty? jz ending looping: inc bx mov dl, ds:[bx] ; load next character mov ah, 02h int 21h ; display character loop looping ending: mov ax, 4C00h ; end of the program int 21h end beginning