Transcribed Image Text: Given the following declarations, write an assembly program segment that prompts the user to

Transcribed Image Text: Given the following declarations, write an assembly program segment that prompts the user to
enter a 6-character secret word and an encryption key (a digit from I to 9). Then encrypt the
secret word entered by adding the encryption key value to each of the character in the secret
word and show the result of the encryption. Transcribed Image Text: Given Data Segment declarations:
DATA
BYTE “Enter secret word :”, 0
BYTE 10, 13 , “Enter encryption key (1-9)
BYTE 10, 13, “The encrypted word is
BΥTE ?
MSGI
MSG2
MSG3
KEY
BUFFER BYTE 7 DUP(?)
(Note: KEY is a variable declared to store encryption key number entered by a user and BUFFER is an
array declared to store secret word value entered by a user.)
Output required:
Enter secret word
:ABCDEF
Enter encryption key(1-9) :2
The encrypted word is
:CDEFGH

-25-


Buy plagiarism free, original and professional custom paper online now at a cheaper price. Submit your order proudly with us



Essay Hope