From 9897bfc3aab309cb3867af8f154b601118d366c9 Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Sat, 31 Jan 2009 00:32:49 +0100 Subject: [PATCH 1/1] fn_5980c implemented --- rsb-lz.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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[]) -- 2.39.5