flat assembler
Message board for the users of flat assembler.
Index
> IDE Development > Problems Compiling app with fresh |
Author |
|
decard 22 Jul 2004, 11:59
can you attach whole program so we could try to compile it?
|
|||
22 Jul 2004, 11:59 |
|
pelaillo 22 Jul 2004, 13:39
Code: mov eax, [.wParam] Maybe the new fresh includes? Arguments are dotted as local variables. Fasm includes are still in the old manner. |
|||
22 Jul 2004, 13:39 |
|
JohnFound 22 Jul 2004, 13:56
Yea, arguments have to be dotted. But the error message "invalid value" looks strange.
What is the type of the file: .asm or .frm? There is small bug in the .frm files editor that causes wrong line positioning on error. What exactly is the error message? Regards. |
|||
22 Jul 2004, 13:56 |
|
silkodyssey 22 Jul 2004, 20:40
The source type is asm not frm. I tried prefixing wParam with the dot character but that didn't help. I didn't think that was the problem because if it were the other procedures would have produced errors also and from a glimpse at the fresh source code I see that the procedures are defined the same way as mine without the dot.
The exact error message is this. Code: Error:invalid value <<jb .buffer_not_full>> processmessages.asm[36] _________________ silkodyssey |
|||
22 Jul 2004, 20:40 |
|
JohnFound 22 Jul 2004, 21:30
silkodyssey wrote: ... I see that the procedures are defined the same way as mine without the dot. Definition of the argument in the "proc" statement have to be without dot, but when you are using this argument in the procedure, you MUST use it with dot. (for the latest version of stdcallex.inc) Simply the macro "proc" adds this dot for you at the front of every argument. Here is small example: Code: proc ProcessKeys, wParam, lParam ; it is right... begin ...... mov eax, [.wParam] ; this is right to... mov eax, [wParam] ; this is wrong... ......... endp Regards. |
|||
22 Jul 2004, 21:30 |
|
silkodyssey 22 Jul 2004, 21:45
I've added the dot to all function parameters but I am still getting the same error. I am using fresh1_0_1c.
_________________ silkodyssey |
|||
22 Jul 2004, 21:45 |
|
JohnFound 22 Jul 2004, 22:03
silkodyssey wrote: I am using fresh1_0_1c. Change it. It is too old (and probably buggy and with old version of FASM inside). Actually, I will remove it from the site very soon, because of comming the next stable version. If you are using 1.0.1c - your code is OK. Forget about dots - it is for latest versions. Regards. |
|||
22 Jul 2004, 22:03 |
|
silkodyssey 22 Jul 2004, 22:18
I decided to try to current work version but i get the same error. I've attached the project directory so maybe you can try compiling it.
_________________ silkodyssey |
|||||||||||
22 Jul 2004, 22:18 |
|
mike.dld 22 Jul 2004, 22:52
Very strange...
Removing 'jb ...' line causes error on 'jz ...' line. Some jumps bug? |
|||
22 Jul 2004, 22:52 |
|
JohnFound 23 Jul 2004, 03:17
Ah, I found it. Missing "begin" in the both: AddIconToSysTray and CreateMenus procedures.
After that you will have to fix dots on many places on procedure arguments, but this is easy. Regards. |
|||
23 Jul 2004, 03:17 |
|
silkodyssey 23 Jul 2004, 04:54
Ok it's working now, thanks for the help.
_________________ silkodyssey |
|||
23 Jul 2004, 04:54 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.