03-03-2010, 09:45 PM
britlion Wrote:Aha. I hadn't noticed the end asm label: asm hops.
Incidentally, when including asm code, you have to make sure it doesn't run automatically - one easy way to do that is to include it in a sub or a function:
Yep, that's true. I found that the hard way. What I do to solve this is to #include the code at the end of the basic program, after an END statement.
But I agree your method would be more readable (and therefor more accesible). At first I tried to do it that way, but I think I encountered some problems as different routines share some code, so when I cut the code into subroutines I ruined some jumps.