Developed in Emu8086 Simulator
Secure Login System
in Assembly
Language
MUHAMMAD AYAAN SALMAN
FA22-BCS-152
What is this
project?
A simple yet secure login system using assembly language.
Why assembly
language?
It allows low-level control, optimized performance,
and a deeper understanding of hardware interaction
Objective?
Verify user IDs and passwords, ensuring correct
credentials grant access.
The
challenge
How can we implement a secure
authentication system using limited
instructions in assembly?
1 Input user ID and password.
Compare inputs with stored
2 credentials.
Grant or deny access based on
3 verification.
Logical Flow
of the Program
05
Step 1: Initialize Data Segment.
Step 2: Input User ID and Password.
Step 3: Match credentials against stored data.
Step 4: Handle errors or grant access.
Step 5: Loop for retries if incorrect.
Data Segment
Breakdown
CONSTANTS VARIABLES PROMTS ARRAYS
IDS1: High priority
TOTA L: IDINPUT DATA 1 accounts
Number of IDs PASSINPUT DATA 2 IDS2: normal
accounts
and passwords. DATA 3 PASS1/2:passwords
DATA 4 for the segregated
accounts
Data Segment
CODE SEGMENT
CODE SEGMENT
Finally
Future
Improvements 50
Series 1 Series 2 Series 3
40
Add encryption for passwords.
30
Support longer passwords
using additional logic.
20
Expand to handle larger
datasets. 10
0
Item 1 Item 2 Item 3 Item 4 Item 5
Emu8086
Insights
Debugging tools
1 Step-by-step execution.
Simulator-specific features
2 Pseudo-instructions and memory view.
String Operations
3 string instructions like MOVSB, MOVSW,
REP, and CMPSB for bulk data
manipulation. They are optimized for
performance.
Learning Outcomes
Gained an in-depth understanding of assembly
language programming.
Learned how to use EMU8086 for simulating and
debugging low-level programs.
Understood the importance of memory management,
addressing modes, and stack operations.
Improved problem-solving skills by optimizing code
for 8086 architecture.
Final Thoughts
Foundation for Low-Level Programming: Provides a clear understanding
of how hardware and software interact.
Performance Optimization: Insight into crafting highly efficient programs.
Debugging Proficiency: Enhanced ability to troubleshoot programs at a
micro-level.
ank Yo
h
T
u
Thank you for your attention! I hope this
presentation has deepened your
appreciation for the power and precision of
assembly language.