answersLogoWhite

0


Best Answer

Data segment

msg1 db 10,13,'enter the string: $'

msg2 db 10,13,'string is palindrome$'

msg3 db 10,13,'string is not palindrome$'

new db 10,13,'$'

inst db 20 dup(0)

data ends

code segment

assume cs:code,ds:data

start:

mov ax,data

mov ds,ax

lea dx,msg1

mov ah,09h

int 21h

mov bx,00

up:

mov ah,01h

int 21h

cmp al,0dh

je down

mov [inst+bx],al

inc bx

loop up

down:

mov di,0

dec bx

jnz check

check:

mov al,[inst+bx]

cmp al,[inst+di]

jne fail

inc di

dec bx

jnz check

lea dx,new

mov ah,09h

int 21h

lea dx,msg2

mov ah,09h

int 21h

jmp finish

fail:

lea dx,msg3

mov ah,09h

int 21h

finish:

int 3

code ends

end start

end

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: ALP program for palindrome number in 8086?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the assembly language program for GCD of two 16 bit unsigned integers using Intel 8086?

alp for lcm of a no


What is Alp for multiplication of two digit BCD numbers in 8086?

Assembly language programe for multiplication


What company uses the acronym ALP?

The Austrian Labor Party uses the acronym ALP for their company. The acronym ALP is also used to represent the company of the Accelerated Learning Program.


What is a yodelers perch?

alp , as in the mountains


What does ALP mean?

ALP means Australian liberal party ALP means Australian liberal party


How do you write the 8051 micro controller alp for finding the largest number in an array?

1


What does ALP stand for in politics?

in politics what do the letters ALP stand for


When was Alp Haydar born?

Alp Haydar was born in 1982.


When was Çetin Alp born?

Çetin Alp was born in 1947.


When did Çetin Alp die?

Çetin Alp died in 2004.


When was Nejat Alp born?

Nejat Alp was born in 1952.


When did Sedat Alp die?

Sedat Alp died in 2006.