$ 0 0 A man allegedly murdered yards from his home armed himself with a knife hours before his death, a jury has heard.