Added cur_code and cur_code_cnt

Works OK. Have to start implementing branch prediction now.