diff options
author | Iru Cai <mytbk920423@gmail.com> | 2018-09-03 15:52:36 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2018-09-03 15:52:36 +0800 |
commit | 40437b955bb7fccb3ec6480982cad5b79670b6bd (patch) | |
tree | ad8d4e69b396c266c5a3a0d5a2f9fb356e067064 /csrc/game_init.c | |
parent | 69d17d3c5b4024d04b70bfe2e2f635fff0a5a3e5 (diff) | |
download | rich4-40437b955bb7fccb3ec6480982cad5b79670b6bd.tar.xz |
move fcn_004552b7 to bit_functions.c and complete it
Diffstat (limited to 'csrc/game_init.c')
-rw-r--r-- | csrc/game_init.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/csrc/game_init.c b/csrc/game_init.c index d2cdcfe..ea2c16f 100644 --- a/csrc/game_init.c +++ b/csrc/game_init.c @@ -8,21 +8,6 @@ int winning_condition[6] = { 0, 100, 50, 10, 5, 3 }; // 0x46cc00 int game_initial_fund; // 0x49908c int traffic_initial; // 0x46cb44 -const uint32_t ftable_485958[] = { - 0x00455337U, 0x0045536cU, 0x0045536cU, 0x004553a1U, 0x00455442U, - 0x00455480U, 0x00455480U, 0x004554beU, 0x004555ebU, 0x00455628U, - 0x0045566eU, 0x004556abU -}; /* TODO: analyze these functions */ - -void fcn_004552b7(void * a1, void * a2, int a3, int a4) -{ - edi = a1; - esi = a2; - ecx = a3 >> 1; - ebx = 0x485d68 + (a4 << 5); - ftable_485958[dw_47637c](); /* function using esi, edi, ebx, ecx registers */ -} - void fcn_00445a4d(int a1, int a2) { int t = a1 * 15; @@ -48,7 +33,7 @@ int init_new_game(int a0) dw_48a358 = malloc(0x96000); mkf_jump = load_mkf("JUMP.MKF"); read_mkf(mkf_jump, w_4991b6*4+w_4991b8 /* sign ext */, dw_48a358, NULL); - fcn_004552b7(dw_48a354, dw_48a358, 0x96000, -16); + fcn_004552b7(dw_48a354, dw_48a358, 0x96000, -16); /* @ bit_functions.c */ dw_48a3a4 = allocate_some_struct(440, 155, 0, 0); dw_48a3a0 = allocate_some_struct(192, 461, 0, 0); dw_48a3b8 = read_mkf(dw_48a3b0, 8, NULL, NULL); |