Skip to content

Instantly share code, notes, and snippets.

@aurorapar
Created November 10, 2016 00:39
Show Gist options
  • Save aurorapar/10442c2525f31609424cfd69177d795c to your computer and use it in GitHub Desktop.
Save aurorapar/10442c2525f31609424cfd69177d795c to your computer and use it in GitHub Desktop.
CLR R5
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 N 0
Z 0
V 0
C 0
SEC
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 N 0
Z 0
V 0
C 1
ASL
First, the high order bit is removed
V
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 N 0
Z 0
V 0
C 1
Then, all the other bits are shifted left
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 N 0
Z 0
V 0
C 1
FInally, the carry bit is set as the low order bit
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 N 0
Z 0
V 0
C 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment