GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — linux_syscall_hook/assembler/assembler.c at main · 3intermute/linux_syscall_hook
This repository was archived by the owner on Mar 19, 2023. It is now read-only.
Expand file tree/ Copy pathassembler.cMore file actions 17 lines (15 loc) · 890 Bytes / Copy pathassembler.cFile metadata and controls17 lines (15 loc) · 890 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 #include "assembler.h" // https://developer.arm.com/documentation/ddi0596/2021-12/Base-Instructions/MOVK--Move-wide-with-keep-?lang=en // movk encoding: // 0 | 1 1 1 0 0 1 0 1 | 0 0 | 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | 0 0 0 0 0 //------------------------------------------------------------------------ // sf|opc |hw |imm16 |rd static uint32_t assemble_movk(uint32_t imm16, uint32_t hw, uint32_t rd) { return 0xf2800000 | (imm16 << 5) | (hw << 21) | rd; } void assemble_absolute_load(uint32_t rd, uintptr_t addr, uint32_t *arr) { arr[0] = cpu_to_le32(assemble_movk(addr & 0xffff, 0b0, rd)); arr[1] = cpu_to_le32(assemble_movk((addr & 0xffff0000) >> 16, 0b1, rd)); arr[2] = cpu_to_le32(assemble_movk((addr & 0xffff00000000) >> 32, 0b10, rd)); arr[3] = cpu_to_le32(assemble_movk((addr & 0xffff000000000000) >> 48, 0b11, rd)); } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |