The latter, yes I just want to convert it in order to add some enhancements.Now, it just occurs to me -- or are you just trying to understand the language semantics well enough to implement the same logic in assembly without concern how the compiler that RB used actually did it?
If the latter, then what you have should be equivalent. You are just staying in an infinite loop and letting interrupt service routines do their thing forever.
Looking over the code again it confirmed my suspicions also that it was just a infinite loop.
Max.