Colin

You haven't defined the label for 'mainloop' and tell the processor to goto mainloop. You're probably getting errors while compiling this code.