Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#23 last instruction must be return

closed-works-for-me
nobody
None
5
2007-08-12
2007-08-12
Pavel Petrovic
No

The compiler should not complain that the last instruction in subroutine of NBC program should be return when the last instruction is unconditional jmp.

(it would also be nice to add return automatically if the last instruction is not return or jmp).

Discussion

  • John Hansen
    John Hansen
    2007-08-12

    Logged In: YES
    user_id=661666
    Originator: NO

    Sorry but this is by design. Just add a return after the jmp.

    John Hansen

     
  • Pavel Petrovic
    Pavel Petrovic
    2007-08-12

    • status: open --> open-works-for-me
     
  • Pavel Petrovic
    Pavel Petrovic
    2007-08-12

    • status: open-works-for-me --> closed-works-for-me