NO

Author Topic: Symbol with a leading dot  (Read 2881 times)

Offline Vortex

  • Member
  • *
  • Posts: 864
    • http://www.vortex.masmcode.com
Symbol with a leading dot
« on: July 02, 2023, 12:00:13 PM »
Hi Pelle,

Poasm does not approve the symbol .var beginning with a dot :

Code: [Select]
.386
.model flat,stdcall
option casemap:none

ExitProcess PROTO :DWORD

.code

start:

    call    main       
    invoke  ExitProcess,0

main PROC

LOCAL .var:DWORD

    lea     eax,.var

    ret

main ENDP

END start

Code: [Select]
poasm.exe /AIA32 Test.asm
Code: [Select]
Test.asm(18): error: Symbol '' is undefined.
Test.asm(16): warning: Symbol '.var' is never used.

Tested with Poasm Version 12.00.1
Code it... That's all...

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: Symbol with a leading dot
« Reply #1 on: September 10, 2023, 07:17:57 PM »
This is an known problem, with no good solution.

Without going into too much detail, the basic problem is allowing:
some-directive ../silly/path/filename.ext
rather than:
some-directive "../silly/path/filename.ext"

Accepting the first form (for MASM and backwards compatibility) is starting the problems, and from there it all goes downhill...
/Pelle