this is how jpegview uses param

CODE
              memsize=20000h
              org 0
PARAMS     =    memsize - 1024

use32

              db     'MENUET01'             ; 8 byte id
              dd     0x01                   ; header version
              dd     START                  ; start of code
              dd     I_END                  ; size of image
              dd     memsize                ; memory for app
              dd     memsize - 1024          ; esp
              dd     PARAMS , 0x0              ; I_Param , I_Icon

START:                         ; start of execution

   cmp     [PARAMS], byte 0
   jne     check_parameters        
........
check_parameters:
   cmp     [PARAMS], dword "BOOT"; received BOOT parameter -> goto handler
   je      boot_set_background

   mov     edi, name_string      ; clear string with file name
   mov     al,  0
   mov     ecx, 100
   rep     stosb

   mov     ecx, 100              ; calculate length of parameter string
   mov     edi, PARAMS
   repne   scasb
   sub     edi, PARAMS
   mov     ecx, edi

   mov     esi, PARAMS           ; copy parameters to file name
   mov     edi, name_string
   cld
   rep     movsb

   jmp     START.l1      ; return to beggining of the progra