News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Unmatched block nesting

Started by carlottagp, August 10, 2006, 08:49:49 PM

Previous topic - Next topic

ninjarider

i would need to see all the code to tell you what else might be wrong


mov   AX,@DATA
mov   DS,AX

LDAB   PROC

(code)

Five procedures, each with the xxx PROC,  RET, xxx  ENDP format

ZE:   mov   AX,4C00h
     int   21h

LDAB   ENDP
      END

but try aranging you code so it matches below.


mov   AX,@DATA
mov   DS,AX

LDAB   PROC

(code)


ZE:   mov   AX,4C00h
     int   21h

LDAB   ENDP

Five procedures, each with the xxx PROC,  RET, xxx  ENDP format

      END

if it doesn't and all the procs have local calls and no far calls try this


mov   AX,@DATA
mov   DS,AX

LDAB   PROC

(code)

{condition to call proc1}
push Offset ReturnFromProc1
push {variables}
jmp Proc1

ReturnFromProc1:; - place this label were you want proc 1 to return to.

ZE:   mov   AX,4C00h
     int   21h

LDAB   ENDP

Proc1:; - change from the proc setup to a label. and varialbes will have to be manuall pushed to the stack
pop {variables}
{code}
ret

Five procedures, each with the xxx PROC,  RET, xxx  ENDP format

      END

let me know if theres anything i have to clarify for you.