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: 932
Topics: 54

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 1 user(s) online. 0 member(s) and 1 guest(s)
Most users ever online was 999, May 11, 2018, 10:01 am.


Statistics:
Threads: 224 | Posts: 1847 | Members: 50 | Active Members: 50
Welcome to our newest member, NobodyAtWork
const Copyright = '2011-2021 © OverHertz Ltd. All rights reserved.';
Web development by OverHertz Ltd