From 0f23dacaef1fcd52573805a1ace817066a4ede93 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Sun, 24 Mar 2019 08:55:28 +0000 Subject: add missing asm demo files. that was lame, sorry about that. --- my-common-code/api-asm.S | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 my-common-code/api-asm.S (limited to 'my-common-code/api-asm.S') diff --git a/my-common-code/api-asm.S b/my-common-code/api-asm.S new file mode 100644 index 0000000..93419fd --- /dev/null +++ b/my-common-code/api-asm.S @@ -0,0 +1,19 @@ +/* + * Example of a pure assembly file + * For most people, this is normally unnecessary, you can use inline + * ASM in a C file, if you even need to use ASM at all. + * However, if you reallllly like doing this sort of thing, here's how :) + */ + +.syntax unified +.thumb +.section .text + +#include + +.global rev_bytes +.func rev_bytes /* only used for debugger */ +.type rev_bytes, STT_FUNC +rev_bytes: + rev r0, r0 + bx lr -- cgit v1.2.3-70-g09d2