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
  • Thank you, and I appreciate your help. To be mentioned it, it is a portion of a disassemble programme decoding from a *.dat by IDA tool
    Example 1:

    ADCINT:
    add r0, r0
    add r0, r0
    ADEINT:
    add r0, r0
    add r0, r0
    S0TINT:
    jmps 0, S0TINT_handler
    S0TINT_handler: ; CODE XREF: ROM:00A8 J
    push r4
    movb rl4, #1
    movb 0B316h, rl4 ; 103316h
    pop r4
    locret_3366: ; DATA XREF: sub_90000+1C2 r
    reti
    warning A80: 'INTERRUPT RETURN' IN NON INTERRUPT PROCEDURE

    Example 2:
    calls 0, sub_CFEA
    mov r6, #72h ; 'r'
    sub_CFEA: ; CODE XREF: sub_4ECE+48 P
    mov r4, r8
    sub r8, #1
    loc_CFEE: ; CODE XREF: sub_CFEA+E j
    add r8, #1
    exts r11, #1
    movb rl5, [r10+]
    exts r9, #1
    movb [r8], rl5
    jmpr cc_NZ, loc_CFEE
    mov r5, r9
    rets
    warning A78: 'FAR RETURN' IN NON FAR PROCEDURE

Reply
  • Thank you, and I appreciate your help. To be mentioned it, it is a portion of a disassemble programme decoding from a *.dat by IDA tool
    Example 1:

    ADCINT:
    add r0, r0
    add r0, r0
    ADEINT:
    add r0, r0
    add r0, r0
    S0TINT:
    jmps 0, S0TINT_handler
    S0TINT_handler: ; CODE XREF: ROM:00A8 J
    push r4
    movb rl4, #1
    movb 0B316h, rl4 ; 103316h
    pop r4
    locret_3366: ; DATA XREF: sub_90000+1C2 r
    reti
    warning A80: 'INTERRUPT RETURN' IN NON INTERRUPT PROCEDURE

    Example 2:
    calls 0, sub_CFEA
    mov r6, #72h ; 'r'
    sub_CFEA: ; CODE XREF: sub_4ECE+48 P
    mov r4, r8
    sub r8, #1
    loc_CFEE: ; CODE XREF: sub_CFEA+E j
    add r8, #1
    exts r11, #1
    movb rl5, [r10+]
    exts r9, #1
    movb [r8], rl5
    jmpr cc_NZ, loc_CFEE
    mov r5, r9
    rets
    warning A78: 'FAR RETURN' IN NON FAR PROCEDURE

Children