Question: I am having trouble writing an assembly language code that sorts the components of Array = [-13, 4, 0, 7, 66, -200, 400, 3, 87]

I am having trouble writing an assembly language code that sorts the components of Array = [-13, 4, 0, 7, 66, -200, 400, 3, 87] in ascending order.

I am currently using an MSP430 Microcontroller with RISC instruction set and Von Nuemann architecture for Code Composer Studio (Texas Instruments):

I am having trouble writing an assembly language code that sorts the

2 MSP430 Assembler Code Template for use with TI Code Composer Studio 4 6 7 cdecls C, LIST, "msp430.h ;Include device header file def RESET 9 10 Export program entry-point to ; make it known to linker. ; Assemble into program memory 12 13 14 15 16 17 .text retain Override ELF conditional linking ; and retain current section retainrefs And retain any sections that have ; references to current section Initialize stackpointer 19 RESET 20 StopWDT 21 mov.w # STACK END , SP mov.w #ADTPWIDTHOLD,&WDTCTL ; Stop watchdog timer 24 ; Main loop here 26 27 28 30 Stack Pointer definition globalSTACK_END sect 32 stack 34 36 Interrupt Vectors 38 39 40 sect ".reset" short RESET ; MSP430 RESET Vector 2 MSP430 Assembler Code Template for use with TI Code Composer Studio 4 6 7 cdecls C, LIST, "msp430.h ;Include device header file def RESET 9 10 Export program entry-point to ; make it known to linker. ; Assemble into program memory 12 13 14 15 16 17 .text retain Override ELF conditional linking ; and retain current section retainrefs And retain any sections that have ; references to current section Initialize stackpointer 19 RESET 20 StopWDT 21 mov.w # STACK END , SP mov.w #ADTPWIDTHOLD,&WDTCTL ; Stop watchdog timer 24 ; Main loop here 26 27 28 30 Stack Pointer definition globalSTACK_END sect 32 stack 34 36 Interrupt Vectors 38 39 40 sect ".reset" short RESET ; MSP430 RESET Vector

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!