using sq_is8bit function instead of ereg. Code reuse and fixes some problems