Mercurial > pub > dyncall > dyncall
comparison dyncall/dyncall_call_arm32_thumb_apple.s @ 406:351bb41d3bb1
- removed %-prefixes for register names from arm assembly files (was wrong to begin with, gas accepted them but the clang integrated assembler does not)
author | Tassilo Philipp |
---|---|
date | Sun, 03 Oct 2021 10:34:56 +0200 |
parents | 3e629dc19168 |
children |
comparison
equal
deleted
inserted
replaced
405:e221473a8217 | 406:351bb41d3bb1 |
---|---|
69 bne pushArgs | 69 bne pushArgs |
70 .thumb_func | 70 .thumb_func |
71 call: | 71 call: |
72 ldmia r5!, {r0-r3} /* Load first 4 arguments for new call into r0-r3. */ | 72 ldmia r5!, {r0-r3} /* Load first 4 arguments for new call into r0-r3. */ |
73 | 73 |
74 /* 'blx %r4' workaround for ARMv4t in THUMB: */ | 74 /* 'blx r4' workaround for ARMv4t in THUMB: */ |
75 blx r4 /* Branch and force THUMB-mode return (LR bit 0 set). */ | 75 blx r4 /* Branch and force THUMB-mode return (LR bit 0 set). */ |
76 | 76 |
77 /* Epilog. */ | 77 /* Epilog. */ |
78 mov r13, r7 /* Reset stack ptr. */ | 78 mov r13, r7 /* Reset stack ptr. */ |
79 pop {r4-r7, r15} /* Restore permanent registers and program counter. (Force a stay in THUMB in ARMv4, whether ARMv5 can return in ARM or THUMB depending on the bit 0. */ | 79 pop {r4-r7, r15} /* Restore permanent registers and program counter. (Force a stay in THUMB in ARMv4, whether ARMv5 can return in ARM or THUMB depending on the bit 0. */ |