Written in IO 8080 sequence, could not have been initialized screen, initialize array without problems, may be on the timing, but also don't know where the problem is, you can guide a labyrinth,
Write_cmd
Cs=0
Rs=0
Wr=0
Write command
Wr=1
Cs=1
Write_data
Cs=0
Rs=0
Wr=0
Write data
Wr=1
Cs=1