Hello Unregistered ,
Originally Posted by mister_e Code: Start: Gosub Somewhere Gosub Elsewhere goto Start Somewhere: HSERIN 2000, SomeWhereElse,[DataXYZ] Return SomewhereElse: ToGGLE LED RETURN ElseWhere: LCDOUT $FE,1,"Are AZERTY Keyboards still on the market???" RETURN Somewhere: HSERIN 2000, SomeWhereElse,[DataXYZ] SomewhereEnd: Return SomewhereElse: ToGGLE LED Goto SomewhereEnd [/code] HTH Then i can use two examples? The compiler detects if it is a routine principal or if it is a subroutine?
Start: Gosub Somewhere Gosub Elsewhere goto Start Somewhere: HSERIN 2000, SomeWhereElse,[DataXYZ] Return SomewhereElse: ToGGLE LED RETURN ElseWhere: LCDOUT $FE,1,"Are AZERTY Keyboards still on the market???" RETURN
Both example have to work. Once it hit a RETURN, it remove 1 from the stack level and jump one instruction bellow the last calling GOSUB.
Steve It's not a bug, it's a random feature. There's no problem, only learning opportunities.
Forum Rules
Bookmarks