Question: Please answer the following questions: 1. DELAY_VALUE_1 EQU 0X01FF The purpose of this line is: (select best choice) A. To define a constant called DELAY_VALUE_1
Please answer the following questions:
1. DELAY_VALUE_1 EQU 0X01FF
The purpose of this line is: (select best choice)
A. To define a constant called DELAY_VALUE_1 with the value 511 in decimal
B. To define a constant called DELAY_VALUE_1 with the value 512 in decimal
C To create a one byte variable that is initialized to the value 0xFF
D. To create a two byte (one word) variable that is initialized to the value 0x01FF
E. It is an assembler directive which sets the address counter to 0x01ff
F. To create a space froa table or array in RAM space with the name DELAY_VALUE_1
G. None of the above
2. What is the value of BufferTableSize in this case (in decimal):
ORG 0200h
BufferTable DS 32
BufferTableSize EQU $-BufferTable
3. The following code is a part of the program from problem 2. The value of 0 is copied to somewhere. What address is it copied to?
mov #0200h, R14
mov.b #0, 0(R14)
4. How many times does this loop execute?
LoadDelay mov.w #000Ch, R15
LoopTop dec.w R15
jnz LoopTop
Done
5. Suppose the state of bits at P1OUT are 11001011 and the following line is executed:
xor.b #0Ch, &P1OUT
What is the new state of bits at P1OUT?
6. Execute the following lines. What is the final value in R12? (note R12 is a 16 bit register, please show the full 16 bits of content)
mov.w #4739h, R9 (note this is a word mov)
mov.b R9, R12 (note this is a byte mov)
7. Suppose SP contained the value 0x0400 and the following instruction is executed:
mov.w #02467h, R12
push.b R12 (note this is a byte operation)
What is the value in SP? (in hexadecimal)
What is the byte value stored at the top of the stack? (in hexadecimal)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
