Hallo,

ich sehe Du benutzt in Deinem Programm Gosub's. Hast aber keine $hwstack deklariert. Das kann auch nicht gut gehen. In der Bascom-Hilfe steht dazu:

------schnipp------
The Hardware stack is room in RAM that is needed by your program. When you use GOSUB label, the microprocessor pushes the return address on the hardware stack and will use 2 bytes for that. When you use RETURN, the HW stack is popped back and the program can continue at the proper address. When you nest GOSUB, CALL or functions, you will use more stack space. Most statements use HW stack because a machine language routine is called.


Mit freundlichen Gruessen
Digitali