Simple program in assembly using Tiva C launchpad?

  • Thread starter jean28
  • Start date
  • #1
85
0

Main Question or Discussion Point

Hey guys!

I just got a new Tiva C MCU. It's architecture is ARM, and I have no experience programming in assembly using said architecture. To start, I'm trying to run a simple program that puts a value in a register. In an MSP430, the project I'm trying to do would look something like this:

Code:
#include 	"msp430.h"
;---------------------------------------
	ORG	0f800h	; Program Start
;---------------------------------------
RESET 	mov 	#0280h,SP	; Stack Pointer Initialized
StopWDT	mov	#WDTPW+WDTHOLD,&WDTCTL	; Stop WDT

	mov	#5, R15	; Delay to R15z

	ORG	0FFFEh		; MSP430 RESET Vector
	END
Would somebody be kind enough to show me the code of how to write this in ARM architecture (specially with the Tiva C series Launchpad)? I think I know how to write the mov, but the other parts (such as the ORG, RESET, and END) don't seem to work the same way that they do in the MSP.

Thank you all very much!!
 

Answers and Replies

  • #2
meBigGuy
Gold Member
2,323
405
I can't help you, but you need to read the ARM programmers reference manual so that you understand the register/memory/alu architecture. Also, the branch instructions, how you test alu results, etc. Every processor is different.
 

Related Threads on Simple program in assembly using Tiva C launchpad?

Replies
1
Views
5K
  • Last Post
Replies
3
Views
1K
  • Last Post
Replies
8
Views
5K
Replies
1
Views
2K
  • Last Post
Replies
2
Views
1K
  • Last Post
Replies
4
Views
1K
  • Last Post
Replies
5
Views
4K
  • Last Post
Replies
10
Views
32K
Replies
7
Views
2K
Replies
10
Views
8K
Top