IRC logs for #opendune on OFTC at 2010-10-30
            
00:03:42 *** glx has quit IRC
00:29:13 *** Yexo has quit IRC
01:53:51 *** TrueBrain has quit IRC
01:53:51 *** blathijs has quit IRC
01:53:51 *** fjb has quit IRC
01:53:51 *** Guest1157 has quit IRC
01:53:51 *** TinoDidriksen has quit IRC
01:53:51 *** Xaroth_ has quit IRC
01:53:52 *** glevans2 has quit IRC
01:53:52 *** proyvind has quit IRC
01:57:23 *** TinoDidriksen has joined #openDune
01:57:23 *** Guest1157 has joined #openDune
01:57:23 *** fjb has joined #openDune
01:57:23 *** TrueBrain has joined #openDune
01:57:23 *** blathijs has joined #openDune
01:57:23 *** reticulum.oftc.net sets mode: +v Guest1157
01:57:59 *** glevans2 has joined #openDune
01:57:59 *** proyvind has joined #openDune
01:58:24 *** Xaroth_ has joined #openDune
02:09:20 *** ChanServ sets mode: +v DorpsGek
02:09:20 *** ChanServ sets mode: +o TrueBrain
02:15:23 *** proyvind has quit IRC
02:43:55 *** proyvind has joined #openDune
02:44:13 *** ChanServ sets mode: +v TrueBrain
04:52:18 *** fjb has quit IRC
09:55:03 *** SmatZ has joined #openDune
09:55:27 <SmatZ> hello
09:55:56 <TrueBrain> :D
10:34:28 *** fjb has joined #openDune
11:33:54 *** Yexo has joined #openDune
12:17:12 *** glx has joined #openDune
12:17:12 *** ChanServ sets mode: +o glx
12:17:46 <glx> hello
12:23:52 <glx> hmm, TrueBrain forgot to set some svn:keywords stuff
12:24:15 <glx> and probably eol-style too
12:24:40 <TrueBrain> I ran my script ...
12:25:06 <DorpsGek> SVN: truebrain (r1168) -Fix: my svn-propset script did not run :(
12:25:27 <glx> I use autoprop
12:26:17 <glx> hmm gcc doesn't like loc10 = *((uint16 *)sprite)++; :(
12:27:31 <glx> and msvc warns a lot with your changes ;)
12:28:36 <glx> about uint16 to uint8 conversions
12:28:42 <glx> (fileno)
12:28:45 <TrueBrain> owh, that shit :p
12:28:53 <TrueBrain> I can't see those warnings, so if you can check them out :)
12:29:02 <TrueBrain> and that line you wrote, is not a line I wrote, right?
12:29:46 <glx> it's my line :)
12:29:56 <TrueBrain> pfew :)
12:30:21 <glx> works in msvc, but gcc says src/unknown/emu_2903.c:677:2: error: lvalue required as increment operand
12:30:45 <TrueBrain> do you want sprite++
12:30:49 <TrueBrain> or value + 1
12:30:51 <TrueBrain> ?
12:30:56 <SmatZ> that ++ is meaningless
12:31:04 <TrueBrain> as indeed that piece of code is ambigious
12:31:08 <TrueBrain> and no compiler should accept it :)
12:31:17 <glx> sprite++ but for uint16* and not uint8*
12:31:28 <TrueBrain> you can't do that :)
12:31:43 <glx> but it works with msvc
12:31:51 <TrueBrain> MSVC is not a standard to base stuff on :D
12:31:55 <SmatZ> :)
12:32:08 <SmatZ> does it really do sprite+=2, or sprite+=1?
12:33:10 <glx> it does +2
12:39:33 <glx> loc10 = *(uint16 *)sprite;
12:39:33 <glx> sprite += 2;
12:39:33 <glx> that works too, and it's accepted by gcc
12:43:32 <TrueBrain> that is also more readable :)
12:43:47 <TrueBrain> I avoided casting to uint16 btw, dunno why ...
12:44:04 <TrueBrain> I did: a = *sprite++; a += (*sprite++) << 8;
12:44:07 <TrueBrain> no clue why ...
12:44:12 <TrueBrain> casting would work too (on LE systems)
12:44:36 <glx> indeed on BE it will be a problem
12:44:43 <glx> casting that is
12:45:30 <glx> loc10 = *(uint16 *)sprite;
12:45:30 <glx> sprite += 2;
12:45:30 <glx> sprite_csip.s.ip += 2;
12:45:30 <glx> emu_si += 2;
12:45:42 <glx> anyway I increment many things ;)
12:46:12 <glx> as some stuff still uses ES:DI and some uses csip
12:46:28 <glx> hmm DS:SI, not ES:DI
12:47:54 <TrueBrain> I need 2 more functions in the WSA loader to remove most of the csip stuff
12:48:05 <TrueBrain> maybe even I can change the memory from emulated memory to real memory :)
13:17:51 * glx likes to abuse local variables just to not use registers ;)
13:18:15 <TrueBrain> I always rename emu_si to locsi
13:18:17 <TrueBrain> :p
13:18:31 <glx> in my case it's emu_ax and emu_bx
13:18:55 <glx> I just replace them with not yet used local variables
13:19:48 <glx> emu_ax = loc1E;
13:19:49 <glx> emu_xchgw(&loc20, &emu_ax);
13:19:49 <glx> loc1E = emu_ax;
13:20:12 <TrueBrain> lol
13:20:21 <TrueBrain> restrictions of instructions
13:20:23 <TrueBrain> you got to love it :)
13:22:15 <glx> my technic is now convert a thing, compile, run
13:22:29 <glx> errors are easy to see ;)
13:22:42 <glx> as sprites are used everywhere
13:24:06 <TrueBrain> yup :)
13:24:15 <TrueBrain> Format80 is also used by sprites, was easy to test it with :D
13:24:37 <glx> write only variables are nice too
13:26:40 <glx> but loc20 = 0;
13:26:40 <glx> emu_xorw(&emu_dx, emu_dx);
13:26:40 <glx> emu_ax = loc1E;
13:26:40 <glx> loc44 = loc1E;
13:26:40 <glx> emu_xchgb(&emu_ah, &emu_dl);
13:26:41 <glx> emu_xchgb(&emu_al, &emu_ah);
13:26:41 <glx> emu_divw(&emu_ax, loc30);
13:26:43 <glx> loc1E = emu_ax;
13:26:43 <glx> emu_negw(&emu_dx, emu_dx);
13:26:45 <glx> loc42 = emu_dx;
13:26:58 <glx> loc44 is write only but I will need to read it ;)
13:27:24 <glx> for loc1E = (loc44 << 8) / loc30 and loc42 = (loc44 << 8) % loc30 ;)
13:28:02 <glx> hmm with a - at the right place of course
13:28:11 <TrueBrain> for Format80 yesterday, I made first in text what it did, then just implemented that
13:28:13 <TrueBrain> worked fine :)
13:48:25 *** Yexo_ has joined #openDune
13:49:59 *** Yexo_ has quit IRC
13:54:46 *** Yexo has quit IRC
14:00:34 <glx> ok emu_GUI_DrawSprite is almost converted
14:00:45 <glx> now I need to do the subfunctions
15:09:35 <glx> grr I broken something :(
15:09:50 <glx> -n
15:10:27 <Xaroth_> lol
15:28:14 <glx> ok fixed
15:28:31 <glx> emu_al value is important :)
15:31:54 <glx> all DS:SI replaced, and it still works
15:57:02 <glx> hmm there is still some corruption
17:45:53 *** fjb is now known as Guest1260
17:45:55 *** fjb has joined #openDune
17:46:00 *** Xaroth_ is now known as Xaroth
17:52:58 *** Guest1260 has quit IRC
19:41:55 <glx> segfault :(
21:22:51 <glx> but the segfault is probably caused by the corruption
22:12:22 <glx> yeah asserts are my friend :)
22:12:36 <glx> I know where the error should be
22:51:35 *** SmatZ has quit IRC