mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 19:21:35 +01:00
arm assembly: move some more in
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* https://github.com/cirosantilli/arm-assembly-cheat#adr */
|
||||
/* https://github.com/cirosantilli/linux-kernel-module-cheat#adr */
|
||||
|
||||
#include "common.h"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* https://github.com/cirosantilli/arm-assembly-cheat#adr */
|
||||
/* https://github.com/cirosantilli/linux-kernel-module-cheat#adr */
|
||||
|
||||
#include "common.h"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* https://github.com/cirosantilli/arm-assembly-cheat#cbz */
|
||||
/* https://github.com/cirosantilli/linux-kernel-module-cheat#cbz */
|
||||
|
||||
#include "common.h"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* https://github.com/cirosantilli/arm-assembly-cheat#bfi */
|
||||
/* https://github.com/cirosantilli/linux-kernel-module-cheat#bfi */
|
||||
|
||||
#include "common.h"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* https://github.com/cirosantilli/arm-assembly-cheat#cbz */
|
||||
/* https://github.com/cirosantilli/linux-kernel-module-cheat#cbz */
|
||||
|
||||
#include "common.h"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* https://github.com/cirosantilli/arm-assembly-cheat#cset */
|
||||
/* https://github.com/cirosantilli/linux-kernel-module-cheat#cset */
|
||||
|
||||
#include "common.h"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* https://github.com/cirosantilli/arm-assembly-cheat#movk */
|
||||
/* https://github.com/cirosantilli/linux-kernel-module-cheat#movk */
|
||||
|
||||
#include "common.h"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* https://github.com/cirosantilli/arm-assembly-cheat#movn */
|
||||
/* https://github.com/cirosantilli/linux-kernel-module-cheat#movn */
|
||||
|
||||
#include "common.h"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* https://github.com/cirosantilli/arm-assembly-cheat#bl */
|
||||
/* https://github.com/cirosantilli/linux-kernel-module-cheat#bl */
|
||||
|
||||
#include "common.h"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* https://github.com/cirosantilli/arm-assembly-cheat#ubfm */
|
||||
/* https://github.com/cirosantilli/linux-kernel-module-cheat#ubfm */
|
||||
|
||||
#include "common.h"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* https://github.com/cirosantilli/arm-assembly-cheat#ubfx */
|
||||
/* https://github.com/cirosantilli/linux-kernel-module-cheat#ubfx */
|
||||
|
||||
#include "common.h"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* https://github.com/cirosantilli/arm-assembly-cheat#x31 */
|
||||
/* https://github.com/cirosantilli/linux-kernel-module-cheat#x31 */
|
||||
|
||||
#include "common.h"
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* https://github.com/cirosantilli/arm-assembly-cheat#adr */
|
||||
/* https://github.com/cirosantilli/linux-kernel-module-cheat#adr */
|
||||
|
||||
#include "common.h"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* https://github.com/cirosantilli/arm-assembly-cheat#beq */
|
||||
/* https://github.com/cirosantilli/linux-kernel-module-cheat#beq */
|
||||
|
||||
#include "common.h"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* https://github.com/cirosantilli/arm-assembly-cheat#bfi */
|
||||
/* https://github.com/cirosantilli/linux-kernel-module-cheat#bfi */
|
||||
|
||||
#include "common.h"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* https://github.com/cirosantilli/arm-assembly-cheat#bic */
|
||||
/* https://github.com/cirosantilli/linux-kernel-module-cheat#bic */
|
||||
|
||||
#include "common.h"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* https://github.com/cirosantilli/arm-assembly-cheat#bl */
|
||||
/* https://github.com/cirosantilli/linux-kernel-module-cheat#bl */
|
||||
|
||||
#include "common.h"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* https://github.com/cirosantilli/arm-assembly-cheat#mov */
|
||||
/* https://github.com/cirosantilli/linux-kernel-module-cheat#mov */
|
||||
|
||||
#include "common.h"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* https://github.com/cirosantilli/arm-assembly-cheat#nop */
|
||||
/* https://github.com/cirosantilli/linux-kernel-module-cheat#nop */
|
||||
|
||||
#include "common.h"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* https://github.com/cirosantilli/arm-assembly-cheat#ldmia */
|
||||
/* https://github.com/cirosantilli/linux-kernel-module-cheat#ldmia */
|
||||
|
||||
#include "common.h"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* https://github.com/cirosantilli/arm-assembly-cheat#rbit */
|
||||
/* https://github.com/cirosantilli/linux-kernel-module-cheat#rbit */
|
||||
|
||||
#include "common.h"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* https://github.com/cirosantilli/arm-assembly-cheat#vcvt */
|
||||
/* https://github.com/cirosantilli/linux-kernel-module-cheat#vcvt */
|
||||
|
||||
#include "common.h"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* https://github.com/cirosantilli/arm-assembly-cheat#vcvta */
|
||||
/* https://github.com/cirosantilli/linux-kernel-module-cheat#vcvta */
|
||||
|
||||
#include "common.h"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* https://github.com/cirosantilli/arm-assembly-cheat#vcvtrr */
|
||||
/* https://github.com/cirosantilli/linux-kernel-module-cheat#vcvtrr */
|
||||
|
||||
#include "common.h"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user