Skip to content
Low-level programming · Higher-level thinking
Login Register
Forum / Bugs and Fixes

No error message but it should be

A community discussion post from the original code:zIRON forum.

Replies

0CodErr member
Posts
201
Threads
37
Location
Unknown

But if this will always be only cmp then it no so big problem :)

But why programmer just not write 'cmp' instead of '==' ? :)

Just if it might be a typo('==' instead of '=') then we could show warning.

Colin admin
Posts
928
Threads
49
Location
Bulgaria

I think for this, I will need to add DEBUG and RELEASE mode, DEBUG will output such "potential" errors whereas RELEASE mode will only provide fatal errors. I will think about this a little further before going ahead.

0CodErr member
Posts
201
Threads
37
Location
Unknown
program RAW_IMAGE 'test';

#set bits 32;

#set awd true;
dword Values[1] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0];
Colin admin
Posts
928
Threads
49
Location
Bulgaria

Fixed for next release.

0CodErr member
Posts
201
Threads
37
Location
Unknown

In code below parameter 'a' redeclared:

program RAW_IMAGE 'test';
#set bits 32;

procedure test(dword a, a) {eax = a;}
test(0, 0);
Colin admin
Posts
928
Threads
49
Location
Bulgaria

Today I finally got a little time to make some updates, my first task is to clear up any remaining issues/bugs before I begin adding new features I have planned.

So... this being the first fix, it is corrected for next beta/or release.

0CodErr member
Posts
201
Threads
37
Location
Unknown

This compiles but there is no parameters $b and $c

program RAW_IMAGE 'test';
#set bits 32;

inline procedure test($a){
  $a = eax; $b = eax; $c = eax;
}
Dword a;
test(a);
Colin admin
Posts
928
Threads
49
Location
Bulgaria

This is not an error... you have just created 2 new local macro variables $b and $c