https://github.com/qluana7/asmlib
Collection of algorithms, data structures, and other functions implemented in assembly.
https://github.com/qluana7/asmlib
assembly assembly-x86 library presets
Last synced: 1 day ago
JSON representation
Collection of algorithms, data structures, and other functions implemented in assembly.
- Host: GitHub
- URL: https://github.com/qluana7/asmlib
- Owner: qluana7
- Created: 2024-09-16T07:19:05.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-02T06:36:12.000Z (over 1 year ago)
- Last Synced: 2025-10-31T03:58:11.901Z (8 months ago)
- Topics: assembly, assembly-x86, library, presets
- Language: Assembly
- Homepage:
- Size: 79.1 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Assembly Preset Library
Collection of algorithms, data structures, and other functions implemented in assembly.
## Features
- **Collection of assembly presets**: Includes algorithms, data structures, and implementations of functions.
- **Use of Netwide Assembly (NASM)**: Most of the code is written using NASM, targeting the x86_64 architecture.
- **Linking with GCC**: Designed with the assumption that linking will be performed using GCC.
## How to use
Copy the entire source from the file and paste it into your code. The `extern` part indicates the dependency functions required by the implementation. If there are `global` directives, ensure to utilize the functions associated with those directives; functions not designated as `global` in this case should be considered private. If there are no `global` directives, all functions will be considered public.
Here's template of main code.
```nasm
; Declare global variables required by some functions.
section .data
...
section .text
; Do not use the global directive for functions, as it is only intended to mark them as public.
; Example: global func (do not use this)
; Declare the main function as global
global main
; Declare extern functions required by the copied code from the repository
extern ...
; Additional extern dependencies
extern ...
; Add any required functions from the copied code here
dependency_func:
...
; Function implementation from the copied code
func:
...
; Main code execution
main:
...
```
## Contribute
Please submit a pull request while adhering to the rules outlined in the [RULES.md](https://github.com/qluana7/asmlib/blob/main/RULES.md)
## Collaborator
ku7431