Source: https://dankohn.info/projects/68HC11/Other/68HC11_Notes.pdf