update new version of z502.c and z502.h