MAMEWorld Central >> EmuChat
View all threads Index   Flat Mode Flat  

dkongjr
MAME Fan
Reged: 03/25/16
Posts: 45
Send PM
Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation
03/25/16 06:18 PM


Thank you kindly. I was hoping you'd be around, wonderful! Just before I start let me make sure I understand you correctly.


1. When you say ftab_swa, you are referring to this:

Code:


// Used in swa scene 1 and unemulated:
// f14
// f49_swa
// f15_swa

const struct model1_state::function model1_state::ftab_swa[] = {
{ &model1_state::fadd, 2 }, /* 0x00 */
{ &model1_state::fsub, 2 },
{ &model1_state::fmul, 2 },
{ &model1_state::fdiv, 2 },
{ nullptr, 0 },
{ &model1_state::matrix_push, 0 },
{ &model1_state::matrix_pop, 0 },
{ &model1_state::matrix_write, 12 },
{ &model1_state::clear_stack, 0 },
{ &model1_state::matrix_mul, 12 },
{ &model1_state::anglev, 2 },
{ &model1_state::f11, 9 },
{ &model1_state::normalize, 3 },
{ &model1_state::acc_seti, 1 },
{ &model1_state::f14, 4 },
{ &model1_state::f15_swa, 0 },

{ &model1_state::matrix_ident, 0 }, /* 0x10 */
{ &model1_state::matrix_read, 0 },
{ &model1_state::matrix_trans, 3 },
{ &model1_state::matrix_scale, 3 },
{ &model1_state::matrix_rotx, 1 },
{ &model1_state::matrix_roty, 1 },
{ &model1_state::matrix_rotz, 1 },
{ nullptr, 0 },
{ &model1_state::f24_swa, 7 },
{ nullptr, 0 },
{ &model1_state::transform_point, 3 },
{ &model1_state::fsin_m1, 1 },
{ &model1_state::fcos_m1, 1 },
{ &model1_state::fsinm_m1, 2 },
{ &model1_state::fcosm_m1, 2 },
{ &model1_state::distance3, 6 },

{ nullptr, 0 }, /* 0x20 */
{ nullptr, 0 },
{ &model1_state::ftoi, 1 },
{ &model1_state::itof, 1 },
{ &model1_state::acc_set, 1 },
{ &model1_state::acc_get, 0 },
{ &model1_state::acc_add, 1 },
{ &model1_state::acc_sub, 1 },
{ &model1_state::acc_mul, 1 },
{ &model1_state::acc_div, 1 }, // not used ?
{ &model1_state::xyz2rqf, 3 },
{ &model1_state::f43_swa, 3 },
{ &model1_state::matrix_sdir, 3 },
{ &model1_state::f45, 1 },
{ &model1_state::vlength, 3 },
{ &model1_state::f47, 3 },

{ nullptr, 0 }, /* 0x30 */
{ &model1_state::f49_swa, 6 },
{ &model1_state::f50_swa, 4 },
{ nullptr, 0 },
{ &model1_state::f52, 0 },
{ &model1_state::matrix_rdir, 3 },
{ nullptr, 0 },
{ nullptr, 0 },
{ &model1_state::f56, 7 },
{ &model1_state::f57, 0 },
{ &model1_state::matrix_readt, 0 },
{ &model1_state::acc_geti, 0 },
{ &model1_state::f60, 0 },
{ nullptr, 0 },
{ nullptr, 0 },
{ nullptr, 0 },
{ nullptr, 0 },

{ &model1_state::push_and_ident, 0 }, /* 0x40 */
{ nullptr, 0 },
{ &model1_state::catmull_rom, 13 }
};



2. What is the purpose of that number on the right side which seems to range from 0 to 13, is it worth trying or advisable at all to attempt changing this:

{ &model1_state::normalize, 3 },
{ &model1_state::acc_seti, 1 },

...into this, for example:

{ &model1_state::normalize, 5 },
{ &model1_state::acc_seti, 8 },


3. Does order of the entries matter, and is it known? In other words, is it worth trying or advisable at all to attempt changing this:

{ &model1_state::matrix_write, 12 },
{ &model1_state::clear_stack, 0 },

...into this, for example:

{ &model1_state::clear_stack, 0 },
{ &model1_state::matrix_write, 12 },


4. Or better yet, can you give me some example or pointers what kind of thing should I try experimenting with?


5. Considering Wing War seems to be working fine with just those implemented functions, would you say chances are Star Wars needs coding some new function to work properly, or perhaps just shifting existing things around could solve the problem?



By the way, in the Service Mode I ran the memory test and under TGP IC57 section it said "TGP TROUBLE". Maybe this testing program and the data against which it runs the test is accessible and holds useful information to figure this TGP thing out?







Entire thread
Subject Posted by Posted on
* Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr 03/25/16 01:15 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  04/20/16 12:08 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Roman  04/20/16 12:55 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  04/20/16 01:23 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Olivier Galibert  04/20/16 04:06 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation SailorSat  06/25/16 09:03 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation John IV  04/20/16 05:24 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation R. Belmont  04/20/16 09:15 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation jonwil  04/08/16 02:23 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation jonwil  04/05/16 01:28 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation R. Belmont  04/05/16 05:15 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation AaronGiles  04/05/16 06:59 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Olivier Galibert  04/05/16 02:33 PM
. * May the Force be with you SmitdoggAdministrator  03/30/16 03:27 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  03/26/16 04:40 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation drewcifer  03/27/16 09:19 AM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  03/27/16 02:35 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation gregf  03/27/16 07:55 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation R. Belmont  03/28/16 10:31 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  03/29/16 03:28 AM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Olivier Galibert  03/29/16 03:13 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  03/29/16 06:24 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Ville Linde  03/29/16 06:35 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Osso1  03/29/16 06:43 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  03/30/16 07:15 AM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation MooglyGuy  03/30/16 08:28 AM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  03/30/16 09:23 AM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation R. Belmont  03/30/16 04:46 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Olivier Galibert  03/30/16 09:59 AM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  03/30/16 12:30 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Ville Linde  03/30/16 03:11 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Olivier Galibert  03/31/16 12:22 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Traso  04/07/16 05:37 AM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  04/02/16 06:52 AM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  04/04/16 02:53 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Ville Linde  04/04/16 05:37 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  04/04/16 09:26 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Olivier Galibert  04/04/16 10:55 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  04/05/16 07:15 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Olivier Galibert  04/05/16 10:39 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation R. Belmont  04/06/16 05:57 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Olivier Galibert  04/06/16 07:48 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  04/07/16 11:42 AM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Ville Linde  04/07/16 05:28 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  04/07/16 09:04 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Olivier Galibert  04/07/16 11:16 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  04/08/16 06:32 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Olivier Galibert  04/08/16 07:05 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  04/08/16 11:22 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  04/09/16 12:03 AM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  04/10/16 07:50 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Ville Linde  04/11/16 07:45 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  04/11/16 08:36 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Ville Linde  04/11/16 08:50 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Olivier Galibert  04/11/16 10:42 AM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  04/15/16 03:50 AM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  04/15/16 11:35 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation R. Belmont  04/19/16 07:39 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  04/20/16 12:49 AM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Haze  04/20/16 01:00 AM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation R. Belmont  04/20/16 04:38 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  04/20/16 09:35 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation R. Belmont  04/20/16 10:20 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  04/21/16 12:39 AM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  04/28/16 10:35 AM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  04/28/16 04:26 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation uman  04/29/16 01:12 AM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation lettuce  05/02/16 04:14 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation terminento  05/10/16 05:29 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation MooglyGuy  05/10/16 05:52 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation terminento  05/10/16 06:07 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Artman99  06/15/16 05:48 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation R. Belmont  06/15/16 07:36 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Ville Linde  06/16/16 07:28 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Olivier Galibert  06/16/16 07:47 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Artman99  06/16/16 02:44 AM
. * Hi Bart Simo *nt* MooglyGuy  06/16/16 06:19 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation R. Belmont  06/16/16 05:14 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Artman99  06/16/16 08:24 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation gamez fan  05/11/16 12:28 AM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation MooglyGuy  05/10/16 06:27 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation terminento  05/10/16 07:01 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation terminento  05/10/16 11:48 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  05/11/16 05:49 AM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Olivier Galibert  05/11/16 04:14 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  05/11/16 05:37 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation DarthMarino  05/11/16 02:57 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation terminento  05/11/16 02:18 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Anonymous  05/11/16 01:19 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation R. Belmont  05/12/16 04:52 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation terminento  05/14/16 04:10 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Vas Crabb  05/11/16 04:25 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Anonymous  05/11/16 07:16 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Envisaged0ne  05/11/16 06:55 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Anonymous  05/11/16 07:34 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation terminento  05/11/16 08:36 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation R. Belmont  04/22/16 05:16 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation LensLarque  04/15/16 11:47 AM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  04/11/16 09:40 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  04/13/16 07:40 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation R. Belmont  04/13/16 09:33 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  04/13/16 10:34 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation R. Belmont  04/14/16 05:02 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  04/14/16 05:57 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation MooglyGuy  04/14/16 01:41 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  04/14/16 06:22 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Master O  04/14/16 04:44 AM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Ziggy100  04/15/16 10:23 AM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Master O  04/15/16 11:42 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation joey35car  04/12/16 12:46 AM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  04/08/16 12:10 AM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Olivier Galibert  04/08/16 08:17 AM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  04/08/16 01:11 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  04/05/16 11:17 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Olivier Galibert  04/05/16 11:45 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  04/05/16 11:53 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  04/05/16 11:45 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  04/05/16 03:21 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Ville Linde  04/05/16 07:00 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  04/05/16 11:18 AM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Ville Linde  04/05/16 01:23 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  04/05/16 02:46 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation MooglyGuy  04/04/16 03:41 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation Olivier Galibert  03/25/16 02:17 PM
. * Re: Star Wars Arcade (SEGA, 1993): fixing model1 emulation dkongjr  03/25/16 06:18 PM

Extra information Permissions
Moderator:  redk9258, URherenow, Tafoid 
0 registered and 38 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 14235