-
Notifications
You must be signed in to change notification settings - Fork 13
/
___27f80h.c
41 lines (30 loc) · 1.32 KB
/
___27f80h.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
#include "drally.h"
extern __POINTER__ ___1a112ch__VESA101_ACTIVESCREEN_PTR;
extern __POINTER__ ___1a1eb0h;
// SHOP, UNDERGROUND, RACE SIGNUP COPPER FRAME
void ___27f80h_cdecl(__DWORD__ A1, __DWORD__ A2, __DWORD__ A3, __DWORD__ A4){
int i, j, n;
__BYTE__ px;
j = -1;
while(++j < 0x18){
i = -1;
while(++i < 0x18){
if((px = read_b(___1a1eb0h +0x18*j+i)) != 0) write_b(___1a112ch__VESA101_ACTIVESCREEN_PTR+0x280*A2+A1+0x280*j+i, px);
if((px = read_b(___1a1eb0h+0x240+0x18*j+i)) != 0) write_b(___1a112ch__VESA101_ACTIVESCREEN_PTR+0x280*A2+A1+A3-0x18+0x280*j+i, px);
if((px = read_b(___1a1eb0h+0x480+0x18*j+i)) != 0) write_b(___1a112ch__VESA101_ACTIVESCREEN_PTR+0x280*(A2+A4-0x18)+A1+0x280*j+i, px);
if((px = read_b(___1a1eb0h+0x6c0+0x18*j+i)) != 0) write_b(___1a112ch__VESA101_ACTIVESCREEN_PTR+0x280*(A2+A4-0x18)+A1+A3-0x18+0x280*j+i, px);
}
}
n = A3-0x30;
i = -1;
while(++i < n){
write_b(___1a112ch__VESA101_ACTIVESCREEN_PTR+0x280*(A2+0x2)+A1+i+0x18, 0x16);
write_b(___1a112ch__VESA101_ACTIVESCREEN_PTR+0x280*(A2+A4-0x3)+A1+i+0x18, 0x16);
}
n = A4-0x30;
i = -1;
while(++i < n){
write_b(___1a112ch__VESA101_ACTIVESCREEN_PTR+0x280*A2+0x3c00+0x280*i+A1+0x2, 0x16);
write_b(___1a112ch__VESA101_ACTIVESCREEN_PTR+0x280*A2+0x3c00+0x280*i+A1+A3-0x3, 0x16);
}
}