mirror of
https://github.com/caperren/school_archives.git
synced 2025-11-09 21:51:15 +00:00
125 lines
4.4 KiB
Plaintext
125 lines
4.4 KiB
Plaintext
|
|
|
|
|
|
ARM Macro Assembler Page 1
|
|
|
|
|
|
1 00000000 AREA ConstrainProg, CODE, READWRITE
|
|
2 00000000 ENTRY
|
|
3 00000000 Start
|
|
4 00000000 E28FD054 ADR sp, Base ;Point to the base
|
|
of the stack
|
|
5 00000004 E59F004C LDR r0, LowerVal ;Load the lower va
|
|
lue into r0
|
|
6 00000008 E59F1044 LDR r1, UpperVal ;Load the upper va
|
|
lue in r1
|
|
7 0000000C E59F203C LDR r2, ParamToConstrain ;Load the
|
|
value to constrain
|
|
into r2
|
|
8 00000010 E50D0004 STR r0,[sp,#-4] ;Load r0 onto the s
|
|
tack pointer
|
|
9 00000014 E50D1004 STR r1,[sp,#-4] ;Load r1 onto the s
|
|
tack pointer
|
|
10 00000018 E50D2004 STR r2,[sp,#-4] ;Load r2 onto the s
|
|
tack pointer
|
|
11 0000001C EB000001 BL Constrain ;Call constrain pro
|
|
cedure
|
|
12 00000020 E59D2000 LDR r2, [sp] ;Load constrained v
|
|
alue back into r2
|
|
13 00000024 ;r2 should now contain 2000
|
|
14 00000024 E28DD008 ADD sp, sp, #8 ;Fix the stack poin
|
|
ter
|
|
15 00000028 Constrain
|
|
16 00000028 E50DE004 STR LR, [sp, #-4]
|
|
17 0000002C E59D500C LDR r5, [sp, #12]
|
|
18 00000030 E59D4008 LDR r4, [sp, #8]
|
|
19 00000034 E59D3004 LDR r3, [sp, #4]
|
|
20 00000038 E1530004 CMP r3, r4
|
|
21 0000003C 359D3008 LDRLO r3, [sp, #8]
|
|
22 00000040 E1530005 CMP r3, r5
|
|
23 00000044 859D300C LDRHI r3, [sp, #12]
|
|
24 00000048 E58D3004 STR r3, [sp, #4]
|
|
25 0000004C E49DF004 LDR PC, [sp], #4
|
|
26 00000050 00000898
|
|
ParamToConstrain
|
|
DCD 2200 ;Value to constrain
|
|
|
|
27 00000054 000007D0
|
|
UpperVal
|
|
DCD 2000 ;Value to constrain
|
|
|
|
28 00000058 000003E8
|
|
LowerVal
|
|
DCD 1000 ;Value to constrain
|
|
|
|
29 0000005C AAAAAAAA
|
|
Base DCD 0xAAAAAAAA
|
|
30 00000060 END
|
|
Command Line: --debug --xref --apcs=interwork --depend=.\assem.d -o.\assem.o -I
|
|
C:\Keil\ARM\RV31\INC -IC:\Keil\ARM\CMSIS\Include --predefine="__EVAL SETA 1" --
|
|
list=.\assem.lst assem.s
|
|
|
|
|
|
|
|
ARM Macro Assembler Page 1 Alphabetic symbol ordering
|
|
Relocatable symbols
|
|
|
|
Base 0000005C
|
|
|
|
Symbol: Base
|
|
Definitions
|
|
At line 29 in file assem.s
|
|
Uses
|
|
At line 4 in file assem.s
|
|
Comment: Base used once
|
|
Constrain 00000028
|
|
|
|
Symbol: Constrain
|
|
Definitions
|
|
At line 15 in file assem.s
|
|
Uses
|
|
At line 11 in file assem.s
|
|
Comment: Constrain used once
|
|
ConstrainProg 00000000
|
|
|
|
Symbol: ConstrainProg
|
|
Definitions
|
|
At line 1 in file assem.s
|
|
Uses
|
|
None
|
|
Comment: ConstrainProg unused
|
|
LowerVal 00000058
|
|
|
|
Symbol: LowerVal
|
|
Definitions
|
|
At line 28 in file assem.s
|
|
Uses
|
|
At line 5 in file assem.s
|
|
Comment: LowerVal used once
|
|
ParamToConstrain 00000050
|
|
|
|
Symbol: ParamToConstrain
|
|
Definitions
|
|
At line 26 in file assem.s
|
|
Uses
|
|
At line 7 in file assem.s
|
|
Comment: ParamToConstrain used once
|
|
Start 00000000
|
|
|
|
Symbol: Start
|
|
Definitions
|
|
At line 3 in file assem.s
|
|
Uses
|
|
None
|
|
Comment: Start unused
|
|
UpperVal 00000054
|
|
|
|
Symbol: UpperVal
|
|
Definitions
|
|
At line 27 in file assem.s
|
|
Uses
|
|
At line 6 in file assem.s
|
|
Comment: UpperVal used once
|
|
7 symbols
|
|
338 symbols in table
|