This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Can anyone tell me why there are the following errors in my asembling programe?

Can anyone tell me why there are the following errors in my asembling programe?
1)where there is a RETI instruction and it belongs to an interrupt sequence actually.

warning A80: 'INTERRUPT RETURN' IN NON INTERRUPT PROCEDURE
2)in a CALLS plus RETS sequence,there is an error as follow
C167BK32.ASM(9770): warning A78: 'FAR RETURN' IN NON FAR PROCEDURE

Thank you!

Parents Reply Children
  • I'm very grateful for your help,thanks a lot.But I can't the following example:

    example:
    C101 SECTION CODEP101 PROC NEAR CALL P102 ; far call for P102 RET ; near return
    P101
    ENDP

    P102 PROC FAR CALL P101 ; near call for P101 TRAP #I10 ; call int10 RET ; far returnP102 ENDPC101 ENDS

    in C101 it is Far call for P102,but it uses NEAR return,yet in C102 it is NEAR call for P102,but it uses Far return,why?Perhaps I need to read some topics about memory type.

  • sorry,the format of the previous note is too bad,so I resend it.

    C101 SECTION CODE
    P101 PROC NEAR
    CALL P102;far call for P102 RET ;near return
    P101 ENDP

    P102 PROC FAR
    CALL P101;near call for P101
    TRAP #I10;call int10
    RET ;far returnP102 ENDP