Hi Ruud,
Love your site! I never programmed a Commodore 64, but my first machine was a VIC-20 (literally out of a trash can) so the style is familiar. Thanks for the smile!
I can't think of anything that's special about 10,000 lines. If you add a dummy line, does it go to 10, 001? I have seen something a little like this. I was doing a "directory listing" and was using a single character to make a "->" to indicate a subdirectory - ascii 0x1A, as I recall. It was working fine until I added a comment which included this character. Unwisely, I made several changes at the same time. Suddenly, half my variables were "undefined! Took me a while to figure out that Nasm/DOS were using 0x1A as an EOF, so Nasm was stopping at that point. All from changing a comment!
Also, Nasm uses "[list +]" and "[list -]" to turn output to a .lst file on and off so you can do...
[/list][/list][list -]
%include "bigfat.inc"
[list +]
Perhaps Nasm is interpretting something as a "[list -]"? It could be something else (bug), but I suspect that you've "said something" that has offended Nasm. If all else fails, post a few lines...
This may be a good time to mention another character that can mess ya up if it occurs in a comment... the "line continuation character", "\", if it occurs in a comment (ascii art?) will cause the next line to be treated as part of the comment, sometimes causing code to mysteriously disappear. We try not to wreck existing code with changes to Nasm, but sometimes it happens. I don't think this one is part of your problem...
If you can't solve it, post more...
Best,
Frank
(this forum software is adding extra "list"s! Not a Nasm problem!)
[/list]