add 9605.pl and modify debug_mem