flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > Possible procedure bug

Author
Thread Post new topic Reply to topic
WiESi



Joined: 15 May 2006
Posts: 14
Location: Austria
WiESi 23 May 2006, 11:44
Hello!

I am not sure whether fasm is case sensitive or not. However I noticed some strange behaviour with that.

When I compile the following proecdure I get an illegal instruction error:
Code:
proc MyProcedure uses ebx esi edi, number:dword
  local var1:dword

  ret
endp    


But when I change "dword" to "DWORD" then no error occurs:
Code:
proc MyProcedure uses ebx esi edi, number:dword
  local var1:DWORD

  ret
endp    


But the strange thing with that is that I can write "number:dword" in lower case letters.

_________________
JavaAmp
Post 23 May 2006, 11:44
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8356
Location: Kraków, Poland
Tomasz Grysztar 23 May 2006, 12:34
Yes, the macros are case-sensitive, see the introduction text here.
Quote:
It's important to note that all macroinstructions, as opposed to internal directives of flat assembler, are case sensitive and the lower case is used for the most of them. If you'd prefer to use the other case than default, you should do the appropriate adjustments with FIX directive.

The size specifier are the exception from that "the most", as they are uppecase.
Actually it's quite easy to extend stardard headers to accept also lower case here, so I may do it in next releases.
Post 23 May 2006, 12:34
View user's profile Send private message Visit poster's website 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.