From: Michael Gernoth Date: Fri, 30 Jan 2009 23:32:49 +0000 (+0100) Subject: fn_5980c implemented X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/rsbs2/commitdiff_plain/9897bfc3aab309cb3867af8f154b601118d366c9 fn_5980c implemented --- diff --git a/rsb-lz.c b/rsb-lz.c index a776e8d..ed0c813 100644 --- a/rsb-lz.c +++ b/rsb-lz.c @@ -459,6 +459,19 @@ unsigned int fn_598b4(struct s_59b78 *data, unsigned int arg2) void fn_5980c(unsigned int arg1, unsigned int mem[]) { + unsigned char *r1; + unsigned char *r2; + + r1 = (unsigned char*)mem[0]; + r2 = (unsigned char*)mem[1]; + + if (r1 >= r2) + fn_59788(); + + *r1 = arg1 & 0xff; + + r1++; + mem[0] = (unsigned int)r1; } void fn_5993c(struct s_59b78 *data, unsigned int mem[])