forked from urxp/dRally
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path___25a74h.c
80 lines (63 loc) · 2.75 KB
/
___25a74h.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#include "drally.h"
#include "drally_fonts.h"
#include "drally_structs_free.h"
extern __POINTER__ ___1a112ch__VESA101_ACTIVESCREEN_PTR;
extern __POINTER__ ___1a1e6ch;
extern __BYTE__ ___1a1ee4h[];
extern __POINTER__ ___1a1ea8h;
#define CARENCS ___185cbch
extern __DWORD__ ___185cbch[][0x40];
extern __BYTE__ ___1a1ed0h[];
extern __POINTER__ ___1a01b8h[6];
extern __BYTE__ ___185a14h_UseWeapons[];
extern cardata_t ___18e298h[6];
extern __POINTER__ ___1a1e78h;
void ___259e0h_cdecl(int dx, int dy, int aFrameIdx, __POINTER__ aEncoded, int * aOffsets);
int ___25180h_cdecl(const char * A1);
void ___12f60h_cdecl(const char * A1, __DWORD__ A2);
void ___13248h_cdecl(__DWORD__, __DWORD__ ,__DWORD__, __DWORD__, __DWORD__);
char * itoa_watcom106(int value, char * buffer, int radix);
void ___25a74h(void){
char buff[20];
__BYTE__ px;
int i, j;
j = -1;
while(++j < 0x60){
i = -1;
while(++i < 0x60) write_b(___1a112ch__VESA101_ACTIVESCREEN_PTR+0x13890+0x280*j+i, read_b(___1a1e6ch+0x60*j+i));
}
j = -1;
while(++j < 0x10){
i = -1;
while(++i < 0x60) write_b(___1a112ch__VESA101_ACTIVESCREEN_PTR+0x13890+0x280*j+i, read_b(___1a1ea8h+0x600*D(___1a1ee4h)+0x60*j+i));
}
___259e0h_cdecl(0x10, 0x8d, D(___1a1ed0h), ___1a01b8h[D(___1a1ee4h)], CARENCS[D(___1a1ee4h)]);
___12f60h_cdecl(buff, ___25180h_cdecl(itoa_watcom106(___18e298h[D(___1a1ee4h)].price, strcpy(buff, "$")+1, 0xa)-1)+0x20590);
___13248h_cdecl(0x90, 0x72, 0x180, 0x77, 1);
if(D(___185a14h_UseWeapons)){
VESA101_16X16_FORMAT_PRINT(___18e298h[D(___1a1ee4h)].txt_winfo[0], 170, 124);
VESA101_16X16_FORMAT_PRINT(___18e298h[D(___1a1ee4h)].txt_winfo[1], 170, 140);
VESA101_16X16_FORMAT_PRINT(___18e298h[D(___1a1ee4h)].txt_winfo[2], 170, 156);
VESA101_16X16_FORMAT_PRINT(___18e298h[D(___1a1ee4h)].txt_winfo[3], 170, 172);
VESA101_16X16_FORMAT_PRINT(___18e298h[D(___1a1ee4h)].txt_winfo[4], 170, 188);
VESA101_16X16_FORMAT_PRINT(___18e298h[D(___1a1ee4h)].txt_winfo[5], 170, 204);
}
else {
VESA101_16X16_FORMAT_PRINT(___18e298h[D(___1a1ee4h)].txt_info[0], 170, 124);
VESA101_16X16_FORMAT_PRINT(___18e298h[D(___1a1ee4h)].txt_info[1], 170, 140);
VESA101_16X16_FORMAT_PRINT(___18e298h[D(___1a1ee4h)].txt_info[2], 170, 156);
VESA101_16X16_FORMAT_PRINT(___18e298h[D(___1a1ee4h)].txt_info[3], 170, 172);
VESA101_16X16_FORMAT_PRINT(___18e298h[D(___1a1ee4h)].txt_info[4], 170, 188);
VESA101_16X16_FORMAT_PRINT(___18e298h[D(___1a1ee4h)].txt_info[5], 170, 204);
}
j = -1;
while(++j < 0x40){
i = -1;
while(++i < 0x10) if((px = read_b(___1a1e78h+0x10*j+i))) write_b(___1a112ch__VESA101_ACTIVESCREEN_PTR+0x16080+0x280*j+i, px);
}
j = -1;
while(++j < 0x40){
i = -1;
while(++i < 0x10) if((px = read_b(___1a1e78h+0x400+0x10*j+i))) write_b(___1a112ch__VESA101_ACTIVESCREEN_PTR+0x160f0+0x280*j+i, px);
}
}