Energy Micro IEC60355 Library Project 1.037 GCC-Version
IEC60355 Library documentation and API

iec60335_class_b_cpureg_test_bist_gcc.asm File Reference

assemble based BIST CPU register test for GCC compiler ; * IEC60335 Class B CPU register tests ; * More...

Go to the source code of this file.

Variables

text syntax unified
global ASMCPUregTestLOW type ASMCPUregTestLOW
global ASMCPUregTestLOW type
function global
ASMCPUregTestHIGH type 
ASMCPUregTestHIGH
global ASMCPUregTestLOW type
function global
ASMCPUregTestHIGH type
function global
ASMCPUregTestSP type 
ASMCPUregTestSP
global ASMCPUregTestLOW type
function global
ASMCPUregTestHIGH type
function global
ASMCPUregTestSP type function
global ASMCPUregTestSPEC type 
ASMCPUregTestSPEC
global ASMCPUregTestLOW type
function global
ASMCPUregTestHIGH type
function global
ASMCPUregTestSP type function
global ASMCPUregTestSPEC type 
function
equ testState
equ equ testResult
equ equ equ pattern1
equ equ equ equ pattern2
equ equ equ equ equ pattern3
equ equ equ equ equ equ pattern4
equ equ equ equ equ equ equ pattern5
equ equ equ equ equ equ equ equ pattern6
equ equ equ equ equ equ equ equ equ pattern7
equ equ equ equ equ equ equ
equ equ equ 
pattern8
equ equ equ equ equ equ equ
equ equ equ equ 
TestClear
equ equ equ equ equ equ equ
equ equ equ equ equ 
TestState_r0
equ equ equ equ equ equ equ
equ equ equ equ equ equ 
TestState_r1r7
equ equ equ equ equ equ equ
equ equ equ equ equ equ equ 
TestState_r8r12
equ equ equ equ equ equ equ
equ equ equ equ equ equ equ
equ 
TestStateMSP
equ equ equ equ equ equ equ
equ equ equ equ equ equ equ
equ equ 
TestStatePSP
equ equ equ equ equ equ equ
equ equ equ equ equ equ equ
equ equ equ 
TestStateLR
equ equ equ equ equ equ equ
equ equ equ equ equ equ equ
equ equ equ equ 
TestStateAPSR
equ equ equ equ equ equ equ
equ equ equ equ equ equ equ
equ equ equ equ equ 
TestStatePRIMASK
equ equ equ equ equ equ equ
equ equ equ equ equ equ equ
equ equ equ equ equ equ 
TestStateFAULTMASK
equ equ equ equ equ equ equ
equ equ equ equ equ equ equ
equ equ equ equ equ equ equ 
TestStateBASEPRI
equ equ equ equ equ equ equ
equ equ equ equ equ equ equ
equ equ equ equ equ equ equ
equ 
TestResult_fail
equ equ equ equ equ equ equ
equ equ equ equ equ equ equ
equ equ equ equ equ equ equ
equ equ 
TestResult_pass
ldr r0
ldr orr r8 = pattern1
ldr orr r10 str str movw movt
lsr cmp bne 
Test_r0_Exit
Test_r0_pass __pad0__
ldr b Test_r1_r7
Test_r1_r7 __pad1__
ldr orr r10 str str ldr mov r1 = pattern1
ldr orr r10 str str ldr mov r0 mov r2
ldr orr r10 str str ldr mov r0
mov r0 mov 
r3
ldr orr r10 str str ldr mov r0
mov r0 mov r0 mov 
r4
ldr orr r10 str str ldr mov r0
mov r0 mov r0 mov r0 mov 
r5
ldr orr r10 str str ldr mov r0
mov r0 mov r0 mov r0 mov r0
mov 
r6
ldr orr r10 str str ldr mov r0
mov r0 mov r0 mov r0 mov r0
mov r0 mov 
r7
cmp r0 bne Test_r1_r7_Exit cmp
r0 bne Test_r1_r7_Exit cmp r0
bne Test_r1_r7_Exit cmp r0 bne
Test_r1_r7_Exit cmp r0 bne
Test_r1_r7_Exit cmp r0 bne
Test_r1_r7_Exit cmp r0 bne 
Test_r1_r7_Exit
cmp r0 bne Test_r1_r7_Exit cmp
r0 bne Test_r1_r7_Exit cmp r0
bne Test_r1_r7_Exit cmp r0 bne
Test_r1_r7_Exit cmp r0 bne
Test_r1_r7_Exit cmp r0 bne
Test_r1_r7_Exit cmp r0 bne
Test_r1_r7_Exit 
Test_r1_r7_pass
bx lr
Test_r8_r12 __pad2__
ldr orr r7 str str ldr mov r0 mov r9
ldr orr r7 str str ldr mov r0
mov r0 mov 
r10
ldr orr r7 str str ldr mov r0
mov r0 mov r0 mov 
r11
ldr orr r7 str str ldr mov r0
mov r0 mov r0 mov r0 mov 
r12
cmp r0 bne Test_r8_r12_Exit
cmp r0 bne Test_r8_r12_Exit
cmp r0 bne Test_r8_r12_Exit
cmp r0 bne Test_r8_r12_Exit
cmp r0 bne 
Test_r8_r12_Exit
cmp r0 bne Test_r8_r12_Exit
cmp r0 bne Test_r8_r12_Exit
cmp r0 bne Test_r8_r12_Exit
cmp r0 bne Test_r8_r12_Exit
cmp r0 bne Test_r8_r12_Exit 
Test_r8_r12_pass
Test_MSP __pad3__
mov msr PRIMASK
mrs CONTROL
mov r13
mrs MSP cmp r5 bne Test_MSP_Exit
ldr r0 mrs MSP
cmp r0 bne Test_MSP_Exit Test_MSP_pass
ldr b Test_PSP
Test_PSP __pad4__
mrs PSP
mrs PSP cmp r5 bne Test_PSP_Exit
cmp r0 bne Test_PSP_Exit Test_PSP_pass
msr r4 msr r3 Test_SP_Exit
Test_LR __pad5__
mov r14
cmp r0 bne Test_LR_Exit
cmp r0 bne Test_LR_Exit Test_LR_pass
mov r3Test_CPU_SFR_fail
Test_APSR __pad6__
mrs APSR
mrs APSR cmp r0 bne Test_APSR_Exit
mrs APSR cmp r0 bne Test_APSR_Exit Test_APSR_pass
Test_PRIMASK __pad7__
mrs PRIMASK cmp r0 bne Test_PRIMASK_Exit
mrs PRIMASK cmp r0 bne
Test_PRIMASK_Exit 
Test_PRIMASK_pass
Test_FAULTMASK __pad8__
mrs FAULTMASK
mrs FAULTMASK cmp r0 bne Test_FAULTMASK_Exit
mrs FAULTMASK cmp r0 bne
Test_FAULTMASK_Exit 
Test_FAULTMASK_pass
Test_BASEPRI __pad9__
mrs BASEPRI
mrs BASEPRI cmp r0 bne Test_BASEPRI_Exit
mrs BASEPRI cmp r0 bne
Test_BASEPRI_Exit 
Test_BASEPRI_pass
ldr Test_CPU_SFR_Exit

Detailed Description

assemble based BIST CPU register test for GCC compiler ; * IEC60335 Class B CPU register tests ; *

; * ; *

Author:
Energy Micro AS ; *
Version:
1.0.0 ; ******************************************************************************* ; *

License

; * (C) Copyright 2010 Energy Micro AS, http://www.energymicro.com ; ******************************************************************************* ; * ; * This source code is the property of Energy Micro AS. The source and compiled ; * code may only be used on Energy Micro "EFM32" microcontrollers. ; * ; * This copyright notice may not be removed from the source code nor changed. ; * ; * DISCLAIMER OF WARRANTY/LIMITATION OF REMEDIES: Energy Micro AS has no ; * obligation to support this Software. Energy Micro AS is providing the ; * Software "AS IS", with no express or implied warranties of any kind, ; * including, but not limited to, any implied warranties of merchantability ; * or fitness for any particular purpose or warranties against infringement ; * of any proprietary rights of a third party. ; * ; * Energy Micro AS will not be liable for any consequential, incidental, or ; * special damages, or any other relief, or for any claim by any third party, ; * arising from your use of this Software. ; * ;

Definition in file iec60335_class_b_cpureg_test_bist_gcc.asm.


Variable Documentation

msr APSR

Definition at line 546 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

thumb_func ASMCPUregTestHIGH

Definition at line 35 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ thumb thumb_func ASMCPUregTestLOW

Definition at line 35 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

thumb_func ASMCPUregTestSP

Definition at line 35 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

thumb_func ASMCPUregTestSPEC

Definition at line 35 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

msr BASEPRI

Definition at line 699 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

msr r4 msr CONTROL

Definition at line 326 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

msr FAULTMASK

Definition at line 648 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

global ASMCPUregTestLOW type function global ASMCPUregTestHIGH type function global ASMCPUregTestSP type function global ASMCPUregTestSPEC type function

Definition at line 35 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

bx lr

Definition at line 228 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

ldr r0 mrs MSP

Definition at line 365 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

equ equ equ pattern1

Definition at line 44 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

equ equ equ equ pattern2

Definition at line 44 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

equ equ equ equ equ pattern3

Definition at line 44 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

equ equ equ equ equ equ pattern4

Definition at line 44 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

equ equ equ equ equ equ equ pattern5

Definition at line 44 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

equ equ equ equ equ equ equ equ pattern6

Definition at line 44 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

equ equ equ equ equ equ equ equ equ pattern7

Definition at line 44 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

equ equ equ equ equ equ equ equ equ equ pattern8

Definition at line 44 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

msr PRIMASK

Definition at line 321 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

msr PSP

Definition at line 414 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

ldr r0

Definition at line 83 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

mrs BASEPRI cmp r1 = pattern1

Definition at line 167 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

cmp r0 bne Test_r8_r12_Exit cmp r0 bne Test_r8_r12_Exit cmp r10

Definition at line 256 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

msr r3 mov r13

Definition at line 342 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

mov r14

Definition at line 496 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

cmp r0 bne Test_r1_r7_Exit cmp r2

Definition at line 167 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

msr r3

Definition at line 167 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

mrs PSP cmp r4

Definition at line 167 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

mrs r5

Definition at line 167 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

ldr orr r10 str str mov msr r6

Definition at line 167 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

ldr orr r10 str r8 = pattern1

Definition at line 92 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

cmp r0 bne Test_r8_r12_Exit cmp r9

Definition at line 256 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

ldr b Test_PSP

Definition at line 384 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

ldr b Test_r1_r7

Definition at line 146 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

msr r4 msr r3 Test_SP_Exit

Definition at line 467 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

equ equ equ equ equ equ equ equ equ equ equ TestClear

Definition at line 44 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

equ equ testResult

Definition at line 44 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ TestResult_fail

Definition at line 44 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ TestResult_pass

Definition at line 44 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

equ testState

Definition at line 44 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

equ equ equ equ equ equ equ equ equ equ equ equ TestState_r0

Definition at line 44 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

equ equ equ equ equ equ equ equ equ equ equ equ equ TestState_r1r7

Definition at line 44 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

equ equ equ equ equ equ equ equ equ equ equ equ equ equ TestState_r8r12

Definition at line 44 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ TestStateAPSR

Definition at line 44 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ TestStateBASEPRI

Definition at line 44 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ TestStateFAULTMASK

Definition at line 44 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ TestStateLR

Definition at line 44 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ TestStateMSP

Definition at line 44 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ TestStatePRIMASK

Definition at line 44 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ equ TestStatePSP

Definition at line 44 of file iec60335_class_b_cpureg_test_bist_gcc.asm.

text syntax unified

Definition at line 33 of file iec60335_class_b_cpureg_test_bist_gcc.asm.