Lab 04
Lab 04
8. Encode a string:
Choose your own 1-byte KEY value.
Encode a string by XORing each character with KEY, print out the enciphered string
9. Traverse a 2-dimensional array
Declare an initialized 2-D array of bytes. Compute the sum of each row and store the results in an
array of 16-bit words.
10. Print out:
a) The value of dl register in hex:
e.g: mov dl, 15 → 0F
b) The value of dl register in binary
e.g: mov dl, 49 → 0011 0000
c) The value of dx register in decimal
e.g: mov dx, 1234 → 1234