/************************************************************************
* *
* Template File for Assembly Language Programs *
* *
***********************************************************************
*/
/*
This file is meant to be used as a template (in other words, a starting
point) for any ARM assembly language programs that you write. Modify it
to suit your needs.
Ideally, every assembly language program module should be well-documented,
preferably with a high-level (pseudo-code) version included in the initial
comments.
*/
# -----------------------------------------------------------------------
# Constant values
# -----------------------------------------------------------------------
# Global pre-initialised variables and string constants
.data @ Data segment follows
# -----------------------------------------------------------------------
# Assembly-language preamble for the main module
.text @ Executable code follows
_start: .global _start @ "_start" is required by the linker
.global main @ "main" is our main program
b main @ Start running the main program
# -----------------------------------------------------------------------
# Start of the main program
main: @ Entry to the function "main"
# Insert your code here
mov pc,lr @ Return to caller (end of "main")
# -----------------------------------------------------------------------
.end