Question: please do the code part in code warrior using C this is the assembly shell needed for the code ;***************************************************************** ;* This stationery serves as

please do the code part in code warrior using C please do the code part in code warrior using C this is
this is the assembly shell needed for the code
;*****************************************************************
;* This stationery serves as the framework for a *
;* user application (single file, absolute assembly application) *
;* For a more comprehensive program that *
;* demonstrates the more advanced functionality of this *
;* processor, please see the demonstration applications *
;* located in the examples subdirectory of the *
;* Freescale CodeWarrior for the HC12 Program directory *
;*****************************************************************
; export symbols
ABSENTRY Entry ; for absolute assembly: mark this as application entry point
; Include derivative-specific definitions
INCLUDE 'derivative.inc'
ROMStart EQU $4000 ; absolute address to place my code/constant data
; variable/data section
ORG $1000
; Insert here your data definition.
; code section
ORG ROMStart ; this is the same as org $4000
Entry:
;**************************************************************
;* Interrupt Vectors *
;**************************************************************
ORG $FFFE
DC.W Entry ; Reset Vector
END

Create a new assembly project called Lab2-task1 following the instructions above. Download the assembly shell from ELearning and copy its contents into the main.asm file. Using the code below, perform the following tasks: o Label the addressing mode and RTL for each instruction o Calculate the result of each instruction using hand calculations o Enter the code into the assembly shell and simulate the program step by step. After each step, take a screenshot of the register window. CLRA LDAA #$27 LDAB #$F5 ABA STAA $1000 STAB $1001 LDX $1000 LDAA 0,X LDAA 1,X+ LDAB -1,X LDAA 2,X- Create a new assembly project called Lab2-task1 following the instructions above. Download the assembly shell from ELearning and copy its contents into the main.asm file. Using the code below, perform the following tasks: o Label the addressing mode and RTL for each instruction o Calculate the result of each instruction using hand calculations o Enter the code into the assembly shell and simulate the program step by step. After each step, take a screenshot of the register window. CLRA LDAA #$27 LDAB #$F5 ABA STAA $1000 STAB $1001 LDX $1000 LDAA 0,X LDAA 1,X+ LDAB -1,X LDAA 2,X

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!