diff options
author | Michael Pavone <pavone@retrodev.com> | 2014-02-23 22:17:43 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2014-02-23 22:17:43 -0800 |
commit | 3bd0223c1d99e76292db756c454c77e29eb4f7dc (patch) | |
tree | 8822b3589d5b899e0c2c419178178d9ed31f7258 /test_arm.c | |
parent | 16a6bd520191171fe6741c45eb823a4f0053e14a (diff) |
Fix ARM code generation and test program
Diffstat (limited to 'test_arm.c')
-rw-r--r-- | test_arm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -20,7 +20,7 @@ int main(int arc, char **argv) bl(&code, fib); add(&code, r0, r4, r0, NO_COND); popm(&code, LR | R4); - bx(&code, LR); + bx(&code, lr); fib_fun fibc = (fib_fun)fib; printf("fib(10): %d\n", fibc(10)); |