https://github.com/donno2048/nasm-quine
A quine in x86 assembly
https://github.com/donno2048/nasm-quine
nasm quine x86 x86-assembly
Last synced: 8 months ago
JSON representation
A quine in x86 assembly
- Host: GitHub
- URL: https://github.com/donno2048/nasm-quine
- Owner: donno2048
- Created: 2023-12-02T08:31:23.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-02T16:39:59.000Z (almost 2 years ago)
- Last Synced: 2025-01-06T16:49:36.726Z (9 months ago)
- Topics: nasm, quine, x86, x86-assembly
- Language: Assembly
- Homepage: https://donno2048.github.io/nasm-quine/
- Size: 788 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nasm Quine
An x86 assembly quine for DOS.
You can view the online demo [here](https://donno2048.github.io/nasm-quine/).
## Build
Compile [main.asm](./main.asm) and execute it on DOS, it'll output some nasm code.
This code is the code of [quine.asm](./quine.asm).
## Usage
Compile and run [quine.asm](./quine.asm) the output will be the code itself.
## Restrictions
- The code doesn't use any C standard library (or it'll be quite trivial to just adapt a `printf` quine to assembly)
- The code doesn't use `incbin` (again, this will be trivial by including the source code itself)
- The code doesn't take any input (as it will be trivial to provide the source as input)
- The code doesn't use interrupts (else we could just map interrupt xx to print `dw 0xcdxx` and call it)