Discussion

From old to NX

0

Toddl 2018-10-31 20:28

I wanted to converted old "the entertainer" song to NX but it says "too many tokens" :-(


Timo 2018-11-01 07:32

NX currently has a limit of 8192 tokens (something like "words") for the BASIC code of a program. It's chosen so that programs don't become too big and complex. Depending on coming programs I may increase it a bit, but only if really necessary.

A simple solution is to use ROM data instead of DATA statements. You can have up to 32k of ROM and it's not counted as tokens.

Another solution is to optimize your data (maybe you already did for your published program?). Find patterns you can repeat etc.


Log in to reply.