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: 933
Topics: 55

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 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