Unformatted text preview: mov esi,0 ; index 0 in buffer L1: xor buffer[esi],KEY ; translate a byte inc esi ; point to next byte loop L1 3. Rewrite the assembly code from Section 6.5.3 so it is functionally equivalent, but uses fewer instructions. 4. Write code to make the following two changes to the CPU Flags register: a. Change the ZF from 1 to 0. b. Set the TF bit. Questions Related to the Sample Project Code: 5. Describe all the hardware that pertains to the code and draw a functional block diagram of the hardware. 6. Why was it necessary to start the Hexadecimal-to-BCD Table on a page boundary in RAM? 7. What is the purpose of “stub” routines used in embedded code?...
View Full Document
- Assembly Language, X86, Control flow, .data buffer, buffer BYTE BUFMAX+1