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

Wrong opcodes

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

Replies

0CodErr member
Posts
201
Threads
37
Location
Unknown

About post [1542] above.

As for new release it looks like you corrected some errors.

But not all :)

eax = [sbyte]dl;
eax = [int16]dx;

Result:

00000000  0FB6C2            movzx eax,dl
00000003  0FB7C2            movzx eax,dx

movZx used instead of movSx

And what about:

Also suggest to add int8 type as signed byte type.
Colin admin
Posts
928
Threads
49
Location
Bulgaria

Thanks, I have corrected this for next release.

0CodErr member
Posts
201
Threads
37
Location
Unknown

Could you correct what written in [1551]? i.e. incorrect output and about pointer in documentation.

Colin admin
Posts
928
Threads
49
Location
Bulgaria

Corrected [1551], it was a small issue with the linker.dll.

I have also corrected the error when data is too large when imm_roll is off.

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

#set bits 32;

procedure p1(){
  eax = label1;
  ebx = 0;
label1:
  ecx = 0;
}
p1();
00000000  E800000000        call dword 0x5
00000005  55                push ebp
00000006  8BEC              mov ebp,esp
00000008  B80A000000        mov eax,0xa
0000000D  33DB              xor ebx,ebx
0000000F  33C9              xor ecx,ecx
00000011  8BE5              mov esp,ebp
00000013  5D                pop ebp
00000014  C3                ret
Colin admin
Posts
928
Threads
49
Location
Bulgaria

Yes, seems I broke this in a previous version when rewriting the routine, this should not have compiled, I will correct this. Thanks for report.

Colin admin
Posts
928
Threads
49
Location
Bulgaria

I have fixed this, the error was occurring but the compiler was not halting. Thanks for report.