flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > SOMETHING WRONG WITH NEW VERSION OF FASM!!!

Author
Thread Post new topic Reply to topic
Necromancer13



Joined: 18 Oct 2007
Posts: 32
Location: Ukraine
Necromancer13 09 Dec 2007, 17:15
I've downloaded new version of Flat Assembler...
He doesn't want to compile this:

Code:
format PE GUI 4.0
entry start
include '%fasminc%\win32a.inc'
hInstance       dd ?
                db 200 dup (0)
MessErr db 'ÎØÈÁÊÀ! Èìÿ ïîëüçîâàòåëÿ è êëþ÷ äîëæíû áûòü äëèíîé â 4-100 ñèìâîëîâ',0
start:
        call    Nop__1
        call    Nop__2
        call    Nop__3
        call    Nop__1
        nop
        nop
        nop
        nop
        nop
        call    Nop__4
        nop
        nop
        nop
        nop
        nop
        jmp     @next
        db 'Tamaro4ka!!!Smile)',0
@next:
        jmp     @f
        test    eax,eax
        nop
        cmp     eax,esi
        jz      @b
@@:
        invoke  GetModuleHandle,0
        mov     [hInstance],eax
        invoke  DialogBoxParam,eax,1,0,DlgProc,0
        invoke  ExitProcess,0

proc DlgProc hWnd,uMsg,wParam,lParam
        cmp     [uMsg],WM_COMMAND
        jz      _wmcommand
        cmp     [uMsg],WM_CLOSE
        jz      _wmclose
        xor     eax,eax
        ret
_wmcommand:
        mov     eax,[wParam]
        mov     edx,eax
        shr     edx,16
        cmp     dx,BN_CLICKED
        jne     _wmcommand_f
        cmp     ax,2
        jz      _button_1
        cmp     ax,3
        jz      _button_2
_button_1:
        invoke  GetDlgItemText,[hWnd],4,buffer1,100
        test    eax,eax
        jz      _err
        invoke  GetDlgItemText,[hWnd],5,buffer2,100
        test    eax,eax
        jz      _err
        invoke  lstrlen,buffer1
        cmp     eax,5
        jb      _err
        ;call    compare_key
        nop
        nop
        nop
        xor     ebx,ecx
        test    eax,eax
        nop
        nop
        ;jz      _right
        ;jmp     _nright
_right:
        test    eax,eax
        call    @f
        db 'Tamaro4ka!!Smile)',0
@@:
        add     esp,4
        ;call    _right_
        jmp     _wmcommand_f
_button_2:
        jmp     @f
        MessAbout       db 'Tamaro4ka CrackMe;) Íàïèñàí Necromancer13 äëÿ Tamaro4kè Wink',0
        AppName         db 'Tamaro4ka CrackMe',0
@@:
        invoke  MessageBox,0,MessAbout,AppName,MB_ICONINFORMATION
        jmp     _wmcommand_f
_err:
        invoke  MessageBox,0,MessErr,MessErr,MB_ICONERROR
_wmcommand_f:
        xor     eax,eax
        inc     eax
        ret
_wmclose:
        invoke  EndDialog,[hWnd]
        xor     eax,eax
        inc     eax
        ret
endp

proc Nop__1
        nop
        nop
        nop
        nop
        call    @f
        db 'Tamaro4ka!!Smile)',0
@@:
        add     esp,4
        nop
        nop
        nop
        call    Nop__2
        ret
endp

db 500 dup (13h)

proc Nop__2
        nop
        nop
        nop
        nop
        call    Nop__3
        nop
        nop
        jmp     @f
        db 'Tamaro4ka!!Smile)',0
@@:
        nop
        nop
        nop
        ret
endp

proc Nop__3
        nop
        nop
        nop
        nop
        nop
        call    @f
        db 'heheheheheheh:))))',0
@@:
        call    @f
        db 'Tamaro4ka:))',0
@@:
        add     esp,8
        ret
        db '...........................',0
endp

proc Nop__4
        invoke  IsDebuggerPresent
        test    eax,eax
        jz      @f
        invoke  ExitProcess,0
@@:
        nop
        nop
        nop
        call    Nop__1
        ret
        nop
        nop
        db 'Smile)',0
        buffer1 db 200 dup (90h)
        buffer2 db 200 dup (90h)
endp

proc AJoke
        nop
        nop
        nop
        nop
        int3
        jmp     @f
        invoke  MessageBox,0,RegSucc,AppName,MB_OK
        ret
@@:
        db 30 dup (90h)
        ret
        db 200 dup (90h)
endp

data import
        library user32,'user32.dll',\
                kernel32,'kernel32.dll'
        include '%fasminc%\api\user32.inc'
        include '%fasminc%\api\kernel32.inc'

end data
    


But why???
When I try to compile it, FASM.EXE Crashes.

Or May be it's sometrhing wrong with my Windows... Sad

_________________
FASM Rulezzzzzz!
Post 09 Dec 2007, 17:15
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8356
Location: Kraków, Poland
Tomasz Grysztar 09 Dec 2007, 18:18
This happens when there is "undefined symbol" error on the anonymous label - will be fixed in the next release.

And the next time, please post bug reports in "Compiler Internals" forum with a more descriptive (and perhaps a little less quieter) thread title.
Post 09 Dec 2007, 18:18
View user's profile Send private message Visit poster's website Reply with quote
Necromancer13



Joined: 18 Oct 2007
Posts: 32
Location: Ukraine
Necromancer13 09 Dec 2007, 18:29
Ok, Thanks:))
Tomasz Grysztar, thanks a lot for your great FASM!!Smile
It's the best Assembler!Smile
Post 09 Dec 2007, 18:29
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4347
Location: Now
edfed 12 Dec 2007, 05:03
false, fasm isn't the best assembler

it's THE assembler
nasm masm yasm gasm , prfruiiiit.
FASM FASM FASM FASM
Post 12 Dec 2007, 05:03
View user's profile Send private message Visit poster's website Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1903
DOS386 12 Dec 2007, 06:21
> This happens when there is "undefined symbol" error on
> the anonymous label - will be fixed in the next release.

> I'm going to update this extension again soon.

Means 1.67.25 will get out soon - with this bug fixed, built-in listing feature, and maybe some improvements in FASMD ? Smile
Post 12 Dec 2007, 06:21
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.