Colin
admin
- Posts
- 928
- Threads
- 49
- Location
- Bulgaria
I have fixed this in latest beta :)
program WIN32CUI 'Test';
#include 'ch.zir';
inline function Absi($x) {
eax = $x;
test eax, eax
jns @notsigned;
neg eax
@notsigned:
$return eax;
}
print(-100, ' ', Absi(-100) , ' ', Absi(100), '\r\n');
wait_key();
ExitProcess(0);
0CodErr
member
- Posts
- 201
- Threads
- 37
- Location
- Unknown
This seems works
program RAW_IMAGE 'test';
#set bits 32;
inline procedure test($a){
$a = eax;
}
Dword a;
test(a);
But this not(just changed name $a to $p1)
program RAW_IMAGE 'test';
#set bits 32;
inline procedure test($p1){
$p1 = eax;
}
Dword a;
test(a);
Instruction usage is not supported!
Colin
admin
- Posts
- 928
- Threads
- 49
- Location
- Bulgaria
This was actually part of a much bigger problem which is now fixed for next release. Thanks.