Register | Login
Forum Index > Bugs and Fixes > logical error 'imul'
Author Message
Pages: 1
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[710] logical error 'imul' - posted: 2011-11-16 17:26:23
this code must print this result

1
255

Code:
program WIN32CUI 'test';

#include 'console.zir';
#include 'zirutils.zir';

dword indx;
char tmp[255];

   indx = 1;

   eax = indx
   imul  eax,255
   IntToStr(indx,@tmp);
   print(@tmp,'\r\n');
   IntToStr(eax,@tmp);
   print(@tmp,'\r\n');  
   
wait_key(nil);
ExitProcess(0);               


but it prints that

1
12593


http://www.freewebs.com/ogremagic/index.htm
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[711] - posted: 2011-11-16 17:46:28
eax has been changed by "print"

I also think you require imul in the opposite direction smile

I need to go out right now, but i will be back and can add the opposite, ie..

Code:
imul value, reg


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 9 user(s) online. 0 member(s) and 9 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