Mic Project
Mic Project
A PROJECT REPORT ON
CERTIFICATE
THIS IS CERTIFY THAT THE PROJECT ENTITLED
(Mr.Gawali S.P)
Project Guide
(Prof.Bharti S.M)
Principal
INDEX
Last but not least, we are thankful to our parents, all faculty
members and friends who
have directly and indirectly helped us in completing our project.
Micro-Project Report
1.0 Rationale:
Books Used:
Step 1: Start
Step 2:Create a string
Step 3:Traverse to the end of the string
Step 4:Get the address of the end of the string, DI
Step 5:Load the starting address of the string, SI
Step 6: Compare the value stored at the address
Step 7: Increment the pointer, SI
Step 8: Decrements the pointer, DI
Step 9: Compare again the value stored at si and di
Step 10: Repeat the steps until SI<=DI
Step 11: If all the characters match print string is palindrome
else print not palindrome.
Step 12: Stop.
8.0 Program Code:
Data Segment
str1 db 'PHP','$'
strlen1 dw $-str1
strrev db 20 dup(' ')
str_palin db 'String is Palindrome.','$'
str_not_palin db 'String is not Palindrome.','$'
Data Ends
Code Segment
Assume cs:code, ds:data
Begin:
mov ax, data
mov ds, ax
mov es, ax
mov cx, strlen1
add cx, -2
Palin_Check:
lea si, str1
lea di, strrev
repe cmpsb
jne Not_Palin
Palin:
mov ah, 09h
lea dx, str_palin
int 21h
jmp Exit
Not_Palin:
mov ah, 09h
lea dx, str_not_palin
int 21h
Exit:
mov ax, 4c00h
int 21h
Code Ends
End Begin
....