Code Porting from at89C2051

I tried porting this code but wasn't of much use.
please help me understand and port the code from at89c2051

the code is attached
my try on the code is named under arduino.c
and the header file it calls is assi.h

the reg51.h is i believe the port/pin reference library
and the following are pin declaration. however, it failed to work right for me, in case reference of datasheet would be of any help, it is attached

#include <reg51.h>
#define uint unsigned int
#define uchar unsigned char
//#include "chinese_cha.h"
#include "assii.h"

#define data_port P1

sbit cs1 = P3^2;

sbit rs = P3^1;

sbit rw =P3^3;
sbit rd =P3^4;
sbit sclk =P1^6;
sbit sda =P1^7;
sbit res =P3^0;

VTM88722A.C (13.8 KB)

arduino.c (12.2 KB)

ASSII.H (2.04 KB)

UC1610B_1.4 (1).pdf (677 KB)