Instructions Match numbers 110 with their correct addressing

Instructions: Match numbers 1-10 with their correct addressing mode for the HCS12. Addressing modes may be used more than once Addressing modes may not be used at all Addressing modes may be fake Instruction or Symbolic Operation A - Accumulator Direct w/offset B - Accumulator Indexed C - Accumulator Indirect w/displacement D - Direct 5 E - Extended F - Immediate G - Indexed indirect w/accumulator offset H - Indexed indirect w/constant offset I - Indirect w/post decrement J - Indirect w/post increment K - Indirect w/pre dec L - Indirect w/pre inc M - Indexed w/Accumulator offset N - Indexed w/Decumulator offset O - Indexed w/constant offset P - Indexed w/post dec Q - Indexed w/post inc R - Indexed w/pre dec S - Indexed w/pre inc T - Inherent U - Post-indexed accumulator V - Pre-indexed accumulator W - Invalid

Solution

HCS12 Assembly Language instructions

1. LDAA $12

It is a Direct mode data assigning . It places the contents of the memory location $12 in the accumulator A. in the addressing mode A - Accumulator Direct .

2. STAA 34

Store accumulator A with value of 34 . here 34 is Decimal value because there is no $ used . Store the data in to memory of A .

3. STAB $FF, X

Store accumulator B with hexa decimal value of FF + X . It is a Extended data transfer instruction.

4. LDAA $1023

It is a Direct mode data assigning . It places the contents of the memory location $1023 in the accumulator A. in the addressing mode A - Accumulator Direct .

5. NOP

No Operation is Performed . It is used to increase processing time.

6.STD 23,Y

Store accumulator D with decimal value of 23 addition with Y . It is a Extended data transfer instruction and/ or this instruction sets the direction flag to 1.

7. ABBA - invalid

8. STAA #34

Store accumulator A with value of 34 . Here 34 is Hexadecimal value because there is $ used in prefix of 34 . Store the data in to memory of A .

9. LDAA 32, X

It is a Extended mode. Load accumulator B. It places the contents of the memory location 20 hex (decimal 32) in the accumulator B.

10. STD A, Y

Store accumulator D in to A , and addition with Y .

 Instructions: Match numbers 1-10 with their correct addressing mode for the HCS12. Addressing modes may be used more than once Addressing modes may not be used

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site