🆚 Comparing Two Strings Using 8086 Assembly Language | Microprocessor Lab Experiment 🆚
In this video, we demonstrate how to compare two strings character by character using 8086 Assembly Language. This experiment helps students understand how to use basic instructions and loops to match strings manually in assembly.
📘 What You’ll Learn:
How to store and access strings in the .DATA segment
Use of SI, DI, and CX registers for string traversal
Comparing ASCII characters using CMP and conditional jumps
Decision-making using flags (equal or not equal)
Displaying the result using DOS interrupt (INT 21H)
🛠️ Tools Used:
MASM / TASM Assembler
8086 Emulator or Microprocessor Kit
🧪 Example:
Input Strings: HELLO, HELLO
Output: ✅ Strings are equal
Input Strings: HELLO, WORLD
Output: ❌ Strings are not equal
📌 Perfect for:
B.Tech / Diploma Students working on Microprocessor and Microcontroller lab experiments.
💬 Drop your doubts or suggestions in the comments!
🔔 Don't forget to Like, Share, and Subscribe for more such tutorials!
#8086 #Microprocessor #AssemblyLanguage #StringComparison #8086Tutorial #MASM #TASM #MicroprocessorLab #8086Programming