Said with a southern accent, this is what you say when you want to swear but there are kids present. May sound like "hem slem demmeh" when properly pronounced (with the "e" said like "pet" or "eh").
"Oh, my wife cheated? Ham Slam Damnit!"
"Ham Slam Damnit, I stubbed my toe!"