flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > Symbols longer than 255 chars?

Thread Post new topic Reply to topic

Joined: 28 Jul 2004
Posts: 5
jimjam 03 Sep 2004, 21:46
I'm using fasm to compile some machine-generated code, and some of my identifiers are longer than 255 characters. I've had a first go through the source code but it seems like this limit is embedded in the logic all over the place. The error I get, specifically, is this one, in PREPROCE.INC
lods byte [esi]
stos byte [edi]
xlat byte [ebx]
or   al,al
loopnzd convert_symbol
neg  ecx
cmp  ecx,255
ja   name_too_long

dec  edi
mov  ebx,edi
sub  ebx,ecx
mov  byte [ebx-1],cl

I think probably I have to change that last line it to something like:
mov  byte [ebx-2],cx    

But where are all the repercussions of that change? All over the place, it seems. Any suggestions on how to make this easy?
Post 03 Sep 2004, 21:46
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.