flat assembler
Message board for the users of flat assembler.

Index > IDE Development > FASMW.ASM - typo

Author
Thread Post new topic Reply to topic
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji 03 Jun 2011, 09:52

Tomasz, a typo.
Code:
;FASMW.ASM
;---------

proc  CompilerSetup hwnd_dlg,msg,wparam,lparam
    push    ebx esi edi

     .....

  .set_priority:
   mov     [compiler_priority],eax
     invoke  EndDialog,[hwnd_dlg],TRUE
   jmp     finish ;<---------------------- ".finish", not "finish"
  .close:
     invoke  EndDialog,[hwnd_dlg],FALSE
  .processed:
     mov     eax,1
  .finish:
     pop     edi esi ebx
 ret
endp

    

_________________
I am not young enough to know everything (Oscar Wilde)- Image
Post 03 Jun 2011, 09:52
View user's profile Send private message Send e-mail Reply with quote
bitshifter



Joined: 04 Dec 2007
Posts: 796
Location: Massachusetts, USA
bitshifter 03 Jun 2011, 15:06
The reason FASM doesnt complain of undefined symbol is because
Code:
proc MainWindow hwnd,wmsg,wparam,lparam    

has global finish label which i bet it jumps into, which does exact same cleanup.
It is good reason to put dots in local names within MainWindow procedure.
Then the compiler would complain since no global label exists.
Post 03 Jun 2011, 15:06
View user's profile Send private message Reply with quote
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji 03 Jun 2011, 17:37
Quote:
... which does exact same cleanup.
yes, indeed ... fortunately it's like that ! Razz
but Tomasz should fix it anyway!

_________________
I am not young enough to know everything (Oscar Wilde)- Image
Post 03 Jun 2011, 17:37
View user's profile Send private message Send e-mail 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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.