1. In the HCS12 Core User Guide, look over Table 4-26 Stacking Instructions (p. 89) to get a better idea of what stacking instructions are available to manipulate the stack. Write down the Operations...


Can I get some help on 2 and 3?


1. In the HCS12 Core User Guide, look over Table 4-26 Stacking Instructions (p. 89) to<br>get a better idea of what stacking instructions are available to manipulate the stack.<br>Write down the Operations for the PSHA and PULA instructions, and the PSHD<br>and PULD instructions for your prelab. What is different between these two<br>pairs of instructions?<br>2. Write a program to do the following:<br>o Using a loop, push the first 10 natural numbers (1,2,3, ..., 10) onto the stack.<br>Use register A and the PSHA instruction.<br>o Using another loop, pop those 10 numbers off the stack into register B using<br>the PULB instruction.<br>3. Draw a figure similar to the one shown below, which shows the contents of the stack<br>after the first 10 natural numbers have been pushed onto it. Note that the stack starts<br>at address $1100, and that the SP is decremented BEFORE a value is pushed to the<br>stack.<br>$??<br>$1100<br>$??<br>$10FF<br>$??<br>$10FE<br>$??<br>$10FD<br>$??<br>$10FC<br>

Extracted text: 1. In the HCS12 Core User Guide, look over Table 4-26 Stacking Instructions (p. 89) to get a better idea of what stacking instructions are available to manipulate the stack. Write down the Operations for the PSHA and PULA instructions, and the PSHD and PULD instructions for your prelab. What is different between these two pairs of instructions? 2. Write a program to do the following: o Using a loop, push the first 10 natural numbers (1,2,3, ..., 10) onto the stack. Use register A and the PSHA instruction. o Using another loop, pop those 10 numbers off the stack into register B using the PULB instruction. 3. Draw a figure similar to the one shown below, which shows the contents of the stack after the first 10 natural numbers have been pushed onto it. Note that the stack starts at address $1100, and that the SP is decremented BEFORE a value is pushed to the stack. $?? $1100 $?? $10FF $?? $10FE $?? $10FD $?? $10FC

Jun 02, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here