Last active
December 31, 2022 18:34
-
-
Save max-programming/f30691fe784542ebad4f7eaf47cfa78d to your computer and use it in GitHub Desktop.
All of my MI Assembly Codes
This file contains hidden or 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 hidden or 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