]>
Commit | Line | Data |
---|---|---|
2ef2b01e A |
1 | ;%HEADER%\r |
2 | ;/** @file\r | |
3 | ; Macros to work around lack of Apple support for LDR register, =expr\r | |
4 | ;\r | |
d6ebcab7 | 5 | ; Copyright (c) 2009, Apple Inc. All rights reserved.<BR>\r |
1377db63 | 6 | ; Copyright (c) 2011-2012, ARM Ltd. All rights reserved.<BR>\r |
7 | ;\r | |
3402aac7 RC |
8 | ; This program and the accompanying materials\r |
9 | ; are licensed and made available under the terms and conditions of the BSD License\r | |
10 | ; which accompanies this distribution. The full text of the license may be found at\r | |
11 | ; http://opensource.org/licenses/bsd-license.php\r | |
12 | ;\r | |
13 | ; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
14 | ; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
2ef2b01e A |
15 | ;\r |
16 | ;**/\r | |
17 | \r | |
18 | \r | |
3402aac7 RC |
19 | MACRO\r |
20 | LoadConstantMacro $Data\r | |
21 | ldr r0, =($Data)\r | |
2ef2b01e A |
22 | MEND\r |
23 | \r | |
3402aac7 RC |
24 | MACRO\r |
25 | LoadConstantToRegMacro $Data, $Reg\r | |
26 | ldr $Reg, =($Data)\r | |
2ef2b01e A |
27 | MEND\r |
28 | \r | |
2ef2b01e | 29 | END\r |