source:
trunk/platform/a420/sub/100b/stubs_asm.h
@
1736
| Revision 1736, 335 bytes checked in by reyalp, 14 months ago (diff) | |
|---|---|
|
|
| Rev | Line | |
|---|---|---|
| [1736] | 1 | .text |
| 2 | ||
| 3 | #define DEF(n,a) \ | |
| 4 | .globl n; n = a | |
| 5 | ||
| 6 | #define NSTUB(name, addr)\ | |
| 7 | .globl _##name ;\ | |
| 8 | .weak _##name ;\ | |
| 9 | _##name: ;\ | |
| 10 | ldr pc, = ## addr | |
| 11 | ||
| 12 | #define NHSTUB(name, addr)\ | |
| 13 | .globl _##name ;\ | |
| 14 | _##name: ;\ | |
| 15 | ldr pc, = ## addr | |
| 16 | ||
| 17 | #define STUB(addr)\ | |
| 18 | .globl sub_ ## addr ;\ | |
| 19 | sub_ ## addr: ;\ | |
| 20 | ldr pc, =0x ## addr |
Note: See TracBrowser
for help on using the repository browser.