flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
decard
can you attach whole program so we could try to compile it?
|
|||
![]() |
|
pelaillo
Code: mov eax, [.wParam] Maybe the new fresh includes? Arguments are dotted as local variables. Fasm includes are still in the old manner. |
|||
![]() |
|
JohnFound
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. |
|||
![]() |
|
silkodyssey
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 |
|||
![]() |
|
JohnFound
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. |
|||
![]() |
|
silkodyssey
I've added the dot to all function parameters but I am still getting the same error. I am using fresh1_0_1c.
_________________ silkodyssey |
|||
![]() |
|
JohnFound
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. |
|||
![]() |
|
silkodyssey
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 |
|||||||||||
![]() |
|
mike.dld
Very strange...
Removing 'jb ...' line causes error on 'jz ...' line. Some jumps bug? |
|||
![]() |
|
JohnFound
Ah, I found it.
![]() After that you will have to fix dots on many places on procedure arguments, but this is easy. ![]() Regards. |
|||
![]() |
|
silkodyssey
Ok it's working now, thanks for the help.
![]() _________________ silkodyssey |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.