CSE 322 Summer 2018 Lab 11

August 23, 2018

Problem 1 (Chapter 10 question 9) Write a program that uses XLAT to (a) read a line of text, and (b)print It on the next line with all small letters converted to capitals. The Input line may contain any characters-small letters, capital, letters, digit characters, punctuation, and so on. //Code To be done by students

Continue Reading

CSE 322 Summer 2018 Lab 10

Problem 1 (section 10.7) Encoding and Decoding string using XLAT instruction //Code Title secret message .Model small .stack 100h .data ; ;ABCDEFGHIJKLMNOPQRSTUVWXYZ code_key db 65 dup(‘ ‘), ‘XQPOGHZBCADEIJUVFMNKLRSTWY’ db 37 dup(‘ ‘) ; ;ABCDEFGHIJKLMNOPQRSTUVWXYZ decode_key db 65 dup(‘ ‘), ‘JHIKLQEFMNTURSDCBVWXOPYAZG’ db 37 dup(‘ ‘) coded db 80 dup(‘$’) ; XQPO$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$4 prompt db ‘Enter a message

Continue Reading

CSE 322 Summer 2018 Lab 5

Task 1 (Exercise 6.8) Write a program to display a “?”, read two capital letters, and display them on the next line In alphabetical order. //Code To Be Done By Students Task 2 (Exercise 6.9) Write a program to display the extended ASCII characters (ASCII codes 80h to FFh). Display 10 characters per line, separated

Continue Reading