unify asciidump and hexdump to memdump