From: Michael Gernoth Date: Fri, 30 Jan 2009 23:54:56 +0000 (+0100) Subject: fn_597c8 implemented X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/rsbs2/commitdiff_plain/5e9ad31fe23727bc37e4b50aec6abc5a6bc0c78d fn_597c8 implemented --- diff --git a/rsb-lz.c b/rsb-lz.c index 4f077b1..4dc9ba6 100644 --- a/rsb-lz.c +++ b/rsb-lz.c @@ -443,8 +443,8 @@ void fn_59788() } struct s_59b78 { - unsigned char *start; - unsigned char *stop; + unsigned char *start; /* 0 */ + unsigned char *stop; /* 4 */ unsigned char y; /* 8 */ unsigned char x; /* 9 */ }; @@ -455,10 +455,25 @@ unsigned int fn_59848(struct s_59b78 *data) return 0; } -unsigned int fn_597c8(struct s_59b78 *r11_data) +unsigned int fn_597c8(struct s_59b78 *r6_data) { - fprintf(stderr,"%s\n", __func__); - return 0; + unsigned char *r0; + unsigned char *r1; + unsigned char r5; + + r5 = 0; + + r0 = r6_data->start; + r1 = r6_data->stop; + + if (r1 < r0) + fn_59788(); + + r5 = *r0; + r0++; + r6_data->start = r0; + + return r5; } unsigned int fn_598b4(struct s_59b78 *r11_data, unsigned int r10_arg2) @@ -468,8 +483,6 @@ unsigned int fn_598b4(struct s_59b78 *r11_data, unsigned int r10_arg2) unsigned int r6; unsigned int r7; - fprintf(stderr,"%s\n", __func__); - r1 = r10_arg2 - 1; r6 = 1 << r1;