Created
November 10, 2016 00:39
-
-
Save aurorapar/10442c2525f31609424cfd69177d795c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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