Write a short assembly language program


1. What addressing modes are supported by the following instructions:
a. LDAB
b. ASLD
c. BSR
d. DEC
e. STX
2. How do the following instructions affect the condition code register?
a. LDX
b. ADDA
c. PSHB
d. BSET
e. TAP

3. Each of the following instructions uses a different addressing mode. Where would you find the operand (data) for each?
a. LDA #$55 (Immediate)
b. LDA $2000 (Extended)
c. LDA 5,X (Indexed)


Write a short assembly language program for the following task. Assume that your program start at $C000. Write the assembly code required and then convert it to machine code via the HC12/S12 Instruction Reference summary.

4. Write a program that will send the data patterns $00, $55, $AA, then $FF to an output port located at memory location $1004 (port B). The program should stay in an infinite loop.

Request for Solution File

Ask an Expert for Answer!!
Assembly Language: Write a short assembly language program
Reference No:- TGS089584

Expected delivery within 24 Hours