Skip to content

Instantly share code, notes, and snippets.

@max-programming
Last active December 31, 2022 18:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save max-programming/f30691fe784542ebad4f7eaf47cfa78d to your computer and use it in GitHub Desktop.
Save max-programming/f30691fe784542ebad4f7eaf47cfa78d to your computer and use it in GitHub Desktop.
All of my MI Assembly Codes
; 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
; 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