Skip to content

Instantly share code, notes, and snippets.

@max-programming
Last active December 31, 2022 18:34
Embed
What would you like to do?
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