Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

.text retain .retainrefs : Assemble into program menory. ; Override ELF conditional linking ; and retain current section. 23 And retain any sections that have

image text in transcribed
image text in transcribed
image text in transcribed
.text retain .retainrefs : Assemble into program menory. ; Override ELF conditional linking ; and retain current section. 23 And retain any sections that have j references to current section. 25 symconl: .set 8x0001 26 27 constword 0x1000,0x2000, 0x3000 28 29 INIT_STACK: .set x400 30 i 31 RESET 32 StopNDT nov . w #NDTPWINDTHOLD,SOTCTL mov.w # STACK-END,SP i Initialize stackpointer ; Stop watchdog tiner 34 35 ; 36 ; Main loop here 38 39 main: 40 nov-w #INTT STACK,SP 41 ov.DTPW+WDTHOLD, &NDTCTL 42 43 mov.w #0x5555, R4 ; initialize stack pointer ; stop watchdog timer 45 sub.w varW+2, R4 46 47 CHECKPOINT 1 48 49 mov. R4, &varw+2 51 mov.w Svarwt4, RS 52 53;CHECKPOINT 2 54 add.b &varB, RS 55 ;CHECKPOINT 3 56 mov.w #exFFFF, &const 57 58 59 clr.w R14 61 L1: 62 mov. R14, array (R14) 63 incd.w R14 64 cnp.w #8,R14 65 jne L1 67 5CHECKPOINT 4 69 Loop: jmp Loop 72 73 3 74; Stack Pointer definition 75: 76 global STACK END sect stack 78 79 : 80 Interrupt Vectors : NSP430 RESET Vector sectreset short RESET .text retain .retainrefs : Assemble into program menory. ; Override ELF conditional linking ; and retain current section. 23 And retain any sections that have j references to current section. 25 symconl: .set 8x0001 26 27 constword 0x1000,0x2000, 0x3000 28 29 INIT_STACK: .set x400 30 i 31 RESET 32 StopNDT nov . w #NDTPWINDTHOLD,SOTCTL mov.w # STACK-END,SP i Initialize stackpointer ; Stop watchdog tiner 34 35 ; 36 ; Main loop here 38 39 main: 40 nov-w #INTT STACK,SP 41 ov.DTPW+WDTHOLD, &NDTCTL 42 43 mov.w #0x5555, R4 ; initialize stack pointer ; stop watchdog timer 45 sub.w varW+2, R4 46 47 CHECKPOINT 1 48 49 mov. R4, &varw+2 51 mov.w Svarwt4, RS 52 53;CHECKPOINT 2 54 add.b &varB, RS 55 ;CHECKPOINT 3 56 mov.w #exFFFF, &const 57 58 59 clr.w R14 61 L1: 62 mov. R14, array (R14) 63 incd.w R14 64 cnp.w #8,R14 65 jne L1 67 5CHECKPOINT 4 69 Loop: jmp Loop 72 73 3 74; Stack Pointer definition 75: 76 global STACK END sect stack 78 79 : 80 Interrupt Vectors : NSP430 RESET Vector sectreset short RESET

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data And Databases

Authors: Jeff Mapua

1st Edition

1978502257, 978-1978502253

More Books

Students also viewed these Databases questions

Question

1. Television more Over watching faceing of many problems ?

Answered: 1 week ago