Help - Search - Members - Calendar
Full Version: Modulo bug in Dualis r10
1Emulation.Com > Official Emulator Forums > Dualis
Mollusk
It looks like I fell on a weird bug :

- Each time I used a modulo (%), like x = a%b; it return b...
- The same test on DS shows the correct answer though.

Any idea why ?
Robert
Let's hope someone can contact Mic, as he hasn't signed on for a month.
mic
If you have a.bin/.nds that does this, i can check it out.
Mollusk
http://palib.pizz.biz/LargeMaps.zip

Basicly : this example loads a map, maptile per maptile, using a modulo... On DS it shows normally, on Dualis it doesn't show right.... (always the same tile shown...)
Mollusk
http://palib.pizz.biz/test.zip

In this example, you chose a, b, and it shows a%b... You'll see the correct result on DS, and the wrong one on dualis...
(don't chose b =0 though )
mic
Well i extracted the modulo code from libgcc (which is also the one i found in your ROM) and ran it in Dualis - worked properly, so that doesn't seem to be the problem. So the bug most be occuring at a later point..
mic
I had the division software interrupt mapped to the wrong number. Both demos now work.
Mollusk
nice ! any idea when the next update will be then ? tongue.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.