Register | Login
Forum Index > Bugs and Fixes > -= handler problem
Author Message
Pages: 1
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[1188] -= handler problem - posted: 2012-05-21 20:47:44
HI Mr Colin.

i think the is a problem in '-=' handler.

this code works well
Code:
#define getrandom(min, max) \
        ebx=max; ebx++; sub ebx,min  \
        eax=rand(); div ebx; XCHG eax,edx; eax+=min;   


but this is not.
Code:
#define getrandom(min, max) \
        ebx=max; ebx++; ebx-=min  \
        eax=rand(); div ebx; XCHG eax,edx; eax+=min;   


so the 'ebx-=min' translates as 'ebx -- $min' and it should be 'ebx -= $min' .

btw '+=' works fine here.

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

avatar

(send private message)

Posts: 932
Topics: 54

Location:
OverHertz Studio
[1191] - posted: 2012-05-21 21:27:21
I have re-updated beta, there was actually a but with pf function Ziron_GetStringValue() smile

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[1192] - posted: 2012-05-21 21:34:34

ok , works well , thanks.

http://www.freewebs.com/ogremagic/index.htm
Pages: 1
create new reply


Quick reply:

Message:



Currently Active Users:
There are currently 3 user(s) online. 0 member(s) and 3 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