arm assembly: move some more in

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-05-12 00:00:06 +00:00
parent 192a657250
commit 64855767b4
46 changed files with 568 additions and 50 deletions

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#data-processing-instructions */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#data-processing-instructions */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#adr */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#adr */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#adr */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#adr */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#cbz */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#cbz */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#bfi */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#bfi */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#cbz */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#cbz */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#cset */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#cset */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#advanced-simd-instructions */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#advanced-simd-instructions */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#movk */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#movk */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#movn */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#movn */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#bl */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#bl */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#simd-interleaving */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#simd-interleaving */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#armv8-str */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#armv8-str */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#ubfm */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#ubfm */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#ubfx */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#ubfx */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#x31 */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#x31 */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#data-processing-instructions */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#data-processing-instructions */
#include "common.h"
@@ -28,7 +28,7 @@ ENTRY
#if 0
/* But we cannot omit the register if there is a shift when using .syntx unified:
* https://github.com/cirosantilli/arm-assembly-cheat#shift-suffixes
* https://github.com/cirosantilli/linux-kernel-module-cheat#shift-suffixes
*/
.syntax unified
/* Error: garbage following instruction */

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#addressing-modes */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#addressing-modes */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#adr */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#adr */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#b */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#b */
#include "common.h"
ENTRY

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#beq */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#beq */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#bfi */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#bfi */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#bic */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#bic */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#bl */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#bl */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#data-processing-instructions */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#data-processing-instructions */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#conditional-execution */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#conditional-execution */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#loop-over-array */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#loop-over-array */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#loop-over-array */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#loop-over-array */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#ldr-pseudo-instruction */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#ldr-pseudo-instruction */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#ldrh-and-ldrb */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#ldrh-and-ldrb */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#ldrh-and-ldrb */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#ldrh-and-ldrb */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#calling-convention */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#calling-convention */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#mov */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#mov */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#movw-and-movt */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#movw-and-movt */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#nop */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#nop */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#ldmia */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#ldmia */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#rbit */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#rbit */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#data-processing-instructions */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#data-processing-instructions */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#s-suffix */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#s-suffix */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#shift-suffixes */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#shift-suffixes */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#load-and-store-instructions */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#load-and-store-instructions */
#include "common.h"
@@ -44,7 +44,7 @@ ENTRY
* but it will always segfault under Linux because the text segment is read-only.
* This is however useful in baremetal programming.
* This construct is not possible in ARMv8 for str:
* https://github.com/cirosantilli/arm-assembly-cheat#armv8-str
* https://github.com/cirosantilli/linux-kernel-module-cheat#armv8-str
*/
str r1, var_in_same_section
var_in_same_section:

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#vcvt */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#vcvt */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#vcvta */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#vcvta */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#vcvtrr */
/* https://github.com/cirosantilli/linux-kernel-module-cheat#vcvtrr */
#include "common.h"

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#vfp
/* https://github.com/cirosantilli/linux-kernel-module-cheat#vfp
* Adapted from: https://mindplusplus.wordpress.com/2013/06/27/arm-vfp-vector-programming-part-2-examples/ */
#include "common.h"