Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Mupi
1. Memmory Address M/C code Label Mnemonics Comments
LDA 4050 (A) ˂ ((40)(50))
MOV B,A (B) < (A)
LDA 4051 (A) ˂ ((40)(51))
ADD B (A) < (A)+(B)
STA 4052 ((40)(52)) < (A)
HLT STOP
Memmory Address M/C code Label Mnemonics Comments
LXI H, 4050 (L) ˂ (50) (H) < (40)
MOV A,M (A) < ((H)(L))
INX H (H)(L) < (H)(L)+1
ADD M (A) < (A)+ ((H)(L))
INX H (H)(L) < (H)(L)+1
MOV M,A ((H)(L)) < (A)
HLT STOP
Memmory Address M/C code Label Mnemonics Comments
MVI A,00H InitialIze sum = 00H
MOV B,A Carry is initialized to 00H
LXI H, 5500 (L) ˂ (00) (H) < (55)
MOV C,M Count in C regiter
LOOP : INX H (H)(L) < (H)(L)+1
ADD M (A) < (A)+ ((H)(L))
JNC SKIP if no carry go to SKIP
INR B (D) < (D)+1
SKIP : DCR C Decrement count
JNZ LOOP if count is not zero,go to LOOP
STA XX50 Store LSB of Sum
MOV A,B (A) < MSB of Sum
STA XX50 Store MSB of Sum
HLT STOP
stored in location XX00
memmory location XX50 and XX51 and store the result in XX52
1.Write and execute an ALP to add two 8 bit numbers which are stored in
2.Write and execute an ALP to add two 8 bit numbers which are stored in
memmory location XX50 and XX51 and store the result in XX52.Use HL pair as pointer
3.n 8 bit numbers are stored in memmory location starting from XX01. Add these numbers and
store the 16 bit result in memmory location in XX50 and XX51. The number of eliments on the array is