Hammett is a 1982 homage to noir films and pulp fiction produced by Francis Ford Coppola and directed by Wim Wenders. The film is a fictionalized story about writer Dashiell Hammett, based on the novel of the same name by Joe Gores. The film was entered into the 1982 Cannes Film Festival.
San Franciscobased Dashiell Hammett, trying to put his Pinkerton detective days behind him while establishing himself as a writer, finds himself drawn back into his old life one last time by the irresistible call of friendship and to honor a debt.In 1928, Hammett, known to his librarian neighbor Kit and other acquaintances as Sam, is holed up in a cheap apartment, hard at work at his typewriter each day. He drinks heavily, smokes too much and has coughing fits. ........
Source: Wikipedia