version with conditional check of 0E register