Bibliothèque★ 63mis à jour nov. 2023Pas de licencePawnsampctl
Ouvrir sur GitHubCe dépôt n’a pas de fichier de licence. Il est public en lecture, mais cela ne donne pas à lui seul le droit de le réutiliser.
Installer avec sampctl
sampctl package install pawn-lang/amx_assembly
Lance ceci dans le dossier de ton projet. sampctl télécharge le paquet et ce dont il dépend.
L’essayer dans le compilateur Pawn →
Ajoute ses fichiers include, avec les bibliothèques dont il dépend, au compilateur Pawn de ton navigateur, prêts à être inclus dans un script.
README.md
Overview
addressof.inc- Provideaddressofto get the compiled address of a function, plus runtime compilation to a simple constant, and a lightweight version with no disasm dependency.amx.inc- Read/write contents of the AMX structure (AMXstruct in C code).amx_base.inc- Get base address of the AMX in memory (amx->base).amx_header.inc- Read contents of the AMX header (AMX_HEADER) and query header tables such as publics, natives, tags, etc.amx_memory.inc- Read/write contents of variables using their AMX address (kind of like pointers in C).asm.inc-@emit()for generating new assembly at runtime, similar to what#emitand__emitare for compile-time.codescan.inc- Find patterns in bytecode.disasm.inc- Example of how to disassemble AMX bytecode (i.e. self-disassembly).dynamic_call.inc- Call any function by address or index. Can be very powerful in combination withamx_header.inc.frame_info.inc- Get information about call frames from the stack.heap_alloc.inc- Allocate memory on the AMX heap.jit.inc- Check if running under the JIT plugin.opcode.inc- List of AMX opcodes and utility functions for (un-)relocating opcodes on Linux.os.inc- Detect operating system (Windows vs Linux).phys_memory.inc- Read/write memory of the host process (outside of AMX data).profiler.inc- Simple profiler written purely in Pawn. It can measure execution time of public functions.shellcode.inc- Execute arbitrary native code (doesn't work on Linux).stack_dump.inc- Print stack contents to the console.stack_trace.inc- Print stack trace.windows/import_table.inc- Read the PE import table of the host process.windows/ShellExecute.inc- How to useshellcodeandimport_tableto call a Win32 API function (in this caseShellExecuteA).
Installation
Simply install to your project:
sampctl package install amx_assembly
Include in your code and begin using the library:
#include <amx_assembly\include_name_here>
Usage
There are a few example scripts in the test directory that show how to use some of these includes.
amxassemblypawnpawn-packagesa-mp
Cette page est construite à partir de ce que GitHub publie sur le dépôt. samp.directory n’héberge pas le code. Signaler un problème avec cette fiche