mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 19:21:35 +01:00
13 lines
215 B
ArmAsm
13 lines
215 B
ArmAsm
/* https://github.com/cirosantilli/arm-assembly-cheat#ldrh-and-ldrb */
|
|
|
|
#include "common.h"
|
|
|
|
ENTRY
|
|
ldr r0, =myvar
|
|
mov r1, 0x0
|
|
ldrh r1, [r0]
|
|
ASSERT_EQ(r1, 0x00005678)
|
|
EXIT
|
|
myvar:
|
|
.word 0x12345678
|