All of my MI Assembly Codes
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
; Program to multiply two 8 bit numbers | |
LDA 2000H | |
MOV B, A | |
LDA 2001H | |
MOV C, A | |
MVI A, 00H | |
LOOP: ADD C | |
DCR B | |
JNZ LOOP | |
STA 2003H | |
HLT |
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
; Program to calculate square of one 8 bit number | |
LDA 2000H | |
MOV B, A | |
MVI A, 00H | |
MOV C, B | |
LOOP: ADD C | |
DCR B | |
JNZ LOOP | |
STA 2001H | |
HLT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment