Make use of the .align assembler directive in the reg test asm file of the MSP430X/CCS demo.

This commit is contained in:
Richard Barry 2011-01-12 12:15:03 +00:00
parent 4b895698ca
commit 7676ec0b66

View File

@ -72,8 +72,9 @@
.def vRegTest2Task .def vRegTest2Task
.text .text
vRegTest1Task: .align 2
vRegTest1Task: .asmfunc
; Fill each general purpose register with a known value. ; Fill each general purpose register with a known value.
mov_x #0x4444, r4 mov_x #0x4444, r4
@ -126,17 +127,17 @@ prvRegTest1Loop:
; Loop again, performing the same tests. ; Loop again, performing the same tests.
jmp prvRegTest1Loop jmp prvRegTest1Loop
nop nop
vRegTest1Error: vRegTest1Error:
jmp vRegTest1Error jmp vRegTest1Error
nop nop
.endasmfunc
; ----------------------------------------------------------- ; -----------------------------------------------------------
; See the comments in vRegTest1Task. This task is the same, it just uses ; See the comments in vRegTest1Task. This task is the same, it just uses
; different values in its registers. ; different values in its registers.
vRegTest2Task: .align 2
vRegTest2Task: .asmfunc
mov_x #0x4441, r4 mov_x #0x4441, r4
mov_x #0x5551, r5 mov_x #0x5551, r5
@ -189,6 +190,7 @@ prvRegTest2Loop:
vRegTest2Error: vRegTest2Error:
jmp vRegTest2Error jmp vRegTest2Error
nop nop
.endasmfunc
; /*----------------------------------------------------------- ; /*-----------------------------------------------------------