Created
September 22, 2011 13:14
-
-
Save kingster/1234734 to your computer and use it in GitHub Desktop.
8051 Assembly IF/ELSE
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
CJNE A, #27, NOT_EQL | |
EQL: ;A=27 | |
; Your Code Here | |
SJMP END_CMP | |
NOT_EQL: ; Your Code Here | |
JC A_LESS | |
A_GREATER: ;A > 27 | |
; Your Code Here | |
SJMP END_CMP | |
A_LESS: ;A < 27 | |
; Your Code Here | |
END_CMP: ;Finished |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment