a3d_read_packet
if (a3d_read_packet(a3d->gameport, a3d->length, data) != a3d->length ||
i = a3d_read_packet(gameport, A3D_MAX_LENGTH, data);