how to write a program for COM Port
Sheesh, Drew! You've got a potentially infinite loop there:
Step 180: while bugs goto 130
Everyone knows you need an "escape" clause if the loop's gone round too many time; in this case, go back and read the docs again!