×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Assembly language Search Words with meanings in Array of String.

Assembly language Search Words with meanings in Array of String.

Assembly language Search Words with meanings in Array of String.

(OP)
I know in Dictionary program we can search any word and find meaning but in my project I want to add some words with their meanings (before execution). when program run it ask the user to enter the word for search meaning of that pre-defined word that is already saved( maybe in array of string or any file).when user enter the word program search that word and display that word with meaning to user if exist otherwise it says not found..

here is my code help me please to find meaning

.model small
.stack 100h
.data
CLASS DB "Aftab","Ahmad"
DB 'Hello','gbolo'
DB 'afraz','altaf'
DB 'nagin','cobra'
DB 'happy','joy '
invalid db 10,13,10,13,10,13,"Invalid input$"
choice db 10,13,10,13,"Enter Choice",63,10,13,"$"
menu db 10,13,10,13,10,13," ",4,4,4,4,4," Welcome IN English Urdu Dictionary ",4,4,4,4,4,10,13,10,13,10,13,"$"
op1 db 10,13, "Press 1 for find meaning",63,"$"
op2 db 10,13, "Press 2 for display Dictionary$"
op3 db 10,13, "Press 3 for Agian$"
op4 db 10,13, "Press 4 for Exit$"
op5 db 10,13,10,13,10,13,10,13,10,13,"-------------------------------$"
.code
main proc
start:
mov ax,@data
mov ds,ax
mov dx,offset menu
mov ah,9
int 21h

mov dx,offset op1
mov ah,9
int 21h

mov dx,offset op2
mov ah,9
int 21h

mov dx,offset op3
mov ah,9
int 21h

mov dx,offset op4
mov ah,9
int 21h


mov dx,offset op5
mov ah,9
int 21h


mov dx,offset choice
mov ah,9
int 21h

mov ah,1
int 21h

cmp al,'1'
call Dictionary
cmp al,'2'
je start
cmp al,'3'
je start
cmp al,'4'
je exit




mov dx,offset invalid
mov ah,9
int 21h

Dictionary proc
..?
..?
..?





end Dictionary

exit:
mov ah,4ch
int 21h

main endp
end main




Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close