Register | Login
Forum Index > Bugs and Fixes > Wrong address used
Author Message
Pages: 1
0CodErr
Ziron Guru
(send private message)

Posts: 199
Topics: 37

Location:
[1501] Wrong address used - posted: 2015-01-21 21:20:37
Code:
program RAW_IMAGE 'test';

#set bits 32;

byte  my_byte  = 9;
word  my_word  = 0x7;
dword my_dword = 0b1;

al  = my_byte;
ax  = my_word;
eax = my_dword;


Result is:
Code:
00000000  A0D0282501        mov al,[0x12528d0]
00000005  66A1D1282501      mov ax,[0x12528d1]
0000000B  A1D3282501        mov eax,[0x12528d3]
00000010  0907              or [edi],eax
00000012  0001              add [ecx],al
00000014  0000              add [eax],al
00000016  00                db 0x00


I think should be:
Code:
00000000  A010000000        mov al,[0x10]
00000005  66A111000000      mov ax,[0x11]
0000000B  A113000000        mov eax,[0x13]
00000010  0907              or [edi],eax
00000012  0001              add [ecx],al
00000014  0000              add [eax],al
00000016  00                db 0x00
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[1504] - posted: 2015-01-22 00:53:29
Fixed this, was a small issue with an uninitialized return value. Thanks for the report.

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Pages: 1
create new reply


Quick reply:

Message:



Currently Active Users:
There are currently 1 user(s) online. 0 member(s) and 1 guest(s)
Most users ever online was 1046, January 28, 2022, 2:08 pm.


Statistics:
Threads: 225 | Posts: 1848 | Members: 51 | Active Members: 51
Welcome to our newest member, yecate
const Copyright = '2011-2024 © OverHertz Ltd. All rights reserved.';
Web development by OverHertz Ltd