IRC logs for #opendune on OFTC at 2011-04-08
            
02:44:59 *** glx has quit IRC
12:49:11 *** glx has joined #openDune
12:49:11 *** ChanServ sets mode: +o glx
12:49:28 <glx> hello
17:45:17 *** Alberth has joined #openDune
21:27:45 <Alberth> http://devs.openttd.org/~alberth/temp_f__259E_00B1_001C_4051.txt would this be a good way to have an array of 0x300 at the stack?
21:27:45 <Alberth> the two X becomes Y fragments between the long horizontal dashed lines are then how the code would change
21:27:45 <Alberth> the 'CURRENT/OLD CODE' is work in progress, partly converted and partly still with emu_*()
21:49:34 <glx> emu_get_memorycsip(emu_ss, emu_sp); <-- doesn't work ;)
21:50:27 <glx> but yes that's the idea
21:50:45 <Alberth> so it needs a push_bp etc too
21:51:24 <glx> emu_push(emu_ss);
21:51:24 <glx> emu_push(emu_bp - 0x312);
21:51:24 <glx> becomes
21:51:24 <glx> emu_push(emu_ss);
21:51:24 <glx> emu_push(emu_sp); <-- emu_push(emu_sp + 2); because there was emu_push(emu_ss)
21:52:29 <Alberth> oh, good point
21:52:37 <glx> uint8 *data = emu_get_memorycsip(emu_ss, emu_sp); <-- &emu_get_memory8(emu_ss, emu_sp, 0x0)
21:53:57 <Alberth> this magic adding of sp is a bit too messy, I'll use bp instead, like 'they' did :)
21:54:25 <Alberth> and I am obviously not awake enough any more for these things :)
21:54:41 <glx> stack is a "science" ;)
21:55:39 <Alberth> hmm, I could do 'base = emu_sp' right after emu_sp -= 0x300
21:55:59 <Alberth> so its address is stable
21:56:04 <glx> yes
21:56:31 <glx> like emu_bp without emu_ ;)
21:57:10 <Alberth> and without pushing the old one :)
21:58:32 <Alberth> ok, sounds like a plan; will work on that further tomorrow. For now, let's get some sleep
21:58:44 <Alberth> good night
22:05:32 *** Alberth has left #openDune