Files
Ciro Santilli 六四事件 法轮功 287c83f3f9 userland: add assembly support
Move arm assembly cheat here, and start some work on x86 cheat as well.
2019-03-22 00:00:00 +00:00

19 lines
366 B
ArmAsm

.text
.global _start
_start:
asm_main_after_prologue:
/* write */
mov $1, %rax /* stdout */
mov $1, %rdi /* buffer */
mov $msg, %rsi /* len */
mov $len, %rdx /* syscall number */
syscall
/* exit */
mov $60, %rax /* exit status */
mov $0, %rdi /* syscall number */
syscall
msg:
.ascii "hello\n"
len = . - msg