flat assembler
Message board for the users of flat assembler.
Index
> Windows > Odd Error! |
Author |
|
pelaillo 17 Oct 2003, 12:26
With this information, I didn't find a reason why fasm does not assemble it. Could you post a little (but complete) snippet to help you better?
I send you an example Code: proc WinProc,hwnd,wmsg,wparam,lparam .ps PAINTSTRUCT enter mov eax,[wmsg] cmp eax,WM_PAINT je .wmpaint cmp eax,WM_DESTROY je .wmdestroy cmp eax,WM_CREATE je .wmcreate .defwndproc: invoke DefWindowProc,[hwnd],[wmsg],[wparam],[lparam] jmp .finish .wmcreate: ; init stuff here jmp .finish .wmpaint: lea eax, [.ps] invoke BeginPaint,[hwnd],eax ; painting stuff here lea eax, [.ps] invoke EndPaint,[hwnd],eax xor eax,eax jmp .finish .wmdestroy: xor eax,eax .finish: return |
|||
17 Oct 2003, 12:26 |
|
roticv 17 Oct 2003, 12:42
Because he did not use "enter"?
|
|||
17 Oct 2003, 12:42 |
|
LAS3R 17 Oct 2003, 16:05
roticv is right, i typed enter also in code, and it worked, not sure why enter got to do with it but it works
|
|||
17 Oct 2003, 16:05 |
|
roticv 17 Oct 2003, 17:17
enter is a marco, but I am not too sure abt the specifics of it. For me I had been using call labels and not too bothered with marcos like "enter" and "return"
|
|||
17 Oct 2003, 17:17 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.