-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path4B89.c
40 lines (33 loc) · 1.04 KB
/
4B89.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
/*
* File - sub_4B89.c Created 09.03.2019 Last Modified 30.05.2020
*/
#include "stdio.h"
#include "cgen.h"
/*********************************************************
* sub_4B89 OK+ Used in: sub_4C12, sub_54B6
*
* Minor differences in the generated code.
* Function is assigned the uchar type to avoid casting
* type when it is called in other functions and generating
* code corresponding to binary image.
* Function is logically correct.
*********************************************************/
uchar sub_4B89(register struct aaa * sa) {
#ifdef DEBUG
printf("\tsub_4B89(%x)\n", sa);
#endif
if((dopetab[sa->a_c0] & 0x10) == 0) { /* Any operator except "#", "..", "CONST" */
if((sa->a_c0 != GADDR) || (sa->a_l15.wi[0]->a_c0 != IDOP)) {
if(sa->a_c0 == ADD) {
if(sa->a_l15.wi[1]->a_c0 == CONST) {
if(sub_4B89(sa->a_l15.wi[0]) != 0) {
return 1;
}
}
}
return 0; /* m2: */
}
}
return 1; /* m3: */
}
/* End of file sub_4B89.c */