From f62de4c3eff32c4f3709d5d690671771fd453701 Mon Sep 17 00:00:00 2001 From: iximeow Date: Mon, 18 Feb 2019 18:06:24 -0800 Subject: add some notes in README --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..ce8775d --- /dev/null +++ b/README.md @@ -0,0 +1,17 @@ +## ARM arch notes: + +### Register Names +Reproduced from [infocenter.arm.com](http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0473c/CJAJBFHC.html): +| Name | Maps To | Meaning | +| ---- | ------- | ------- | +| r0-r15 | r0-r15 | These are the the registers! | +| a1-a4 | r0-r3 | Argument, result, or scratch registers | +| v1-v8 | r4-r11 | Variable registers | +| sb | r9 | Static base register | +| fp | r11 | Frame pointer\* | +| ip | r12 | Intra-procedure call register | +| sp | r13 | Stack pointer | +| lr | r14 | link register | +| pc | r15 | program counter | + +\* `fp` does not appear to be explicitly referenced in ARM documentation, and mapping to r11 looks to be OS (Windows/Linux?) convention. -- cgit v1.1