FreeCalypso > hg > freecalypso-reveng
changeset 329:63d3afd14523
frbl/reconst/serial.c: 0x7a static function reconstructed
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 06 Mar 2020 07:42:09 +0000 |
parents | 0029db632547 |
children | 30cbf540e045 |
files | frbl/reconst/serial.c |
diffstat | 1 files changed, 48 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/frbl/reconst/serial.c Fri Mar 06 07:08:58 2020 +0000 +++ b/frbl/reconst/serial.c Fri Mar 06 07:42:09 2020 +0000 @@ -40,3 +40,51 @@ bss_0xc = 6; return retval; } + +static SYS_UWORD32 +static_func_0x7a(SYS_UWORD8 arg1, SYS_UWORD32 *arg2) +{ + SYS_UWORD32 retval = 1; + + if (!bss_7) { + if (arg1 == 'S') { + bss_7 = 1; + } else { + *arg2 = 1; + retval = 0; + } + } else { + bss_7 = 0; + if (arg1 == '0') { + if (bss_4) { + *arg2 = 1; + bss_4 = 0; + retval = 0; + } else { + bss_0xc = 2; + bss_8 = 0; + } + } else if (arg1 == '3') { + if (!bss_4) { + *arg2 = 1; + retval = 0; + } else { + bss_0xc = 4; + bss_8 = 0; + } + } else if (arg1 == '7') { + if (!bss_4) { + *arg2 = 1; + retval = 0; + } else { + bss_0xc = 3; + bss_8 = 0; + } + } else { + *arg2 = 1; + bss_4 = 0; + retval = 0; + } + } + return retval; +}