https://github.com/kali-in-batch/linux-on-batch-on-windows
Linux on Batch on Windows.
https://github.com/kali-in-batch/linux-on-batch-on-windows
amd64 asm assembly batch batchfile cli emulation emulator emulator-programming gas linux nasm powershell ps1 pwsh skid wine x86 x86-64
Last synced: 3 months ago
JSON representation
Linux on Batch on Windows.
- Host: GitHub
- URL: https://github.com/kali-in-batch/linux-on-batch-on-windows
- Owner: Kali-in-Batch
- License: mit
- Created: 2025-06-03T02:24:36.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-06-19T00:47:16.000Z (4 months ago)
- Last Synced: 2025-06-19T01:33:01.414Z (4 months ago)
- Topics: amd64, asm, assembly, batch, batchfile, cli, emulation, emulator, emulator-programming, gas, linux, nasm, powershell, ps1, pwsh, skid, wine, x86, x86-64
- Language: Batchfile
- Homepage:
- Size: 22.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Linux on Batch on Windows
Basic Linux emulator written in batch. Currently doesn't have a lot of syscalls and may be buggy.
*Note: This is alpha-quality software. Do not use this for testing Linux assembly code.*
## Usage
```batch
.\emulator.bat foo.asm
```Nasm-style assembly will work best.
Whitespace after instructions may break the emulator.
Inline comments are not supported. They must be on their own line.
Jumping to labels is not supported.Example of functioning code:
```assembly
section .data
msg db "Hello, world!", 0x0A
msg_len equ $ - msg
msg2 db "Goodbye, world!", 0x0A
msg2_len equ $ - msg2section .text
global _start_start:
mov rax, 1
mov rdi, 1
mov rsi, msg
mov rdx, msg_len
syscallmov rax, 1
mov rdi, 1
mov rsi, msg2
mov rdx, msg2_len
syscallmov rax, 60
mov rdi, rdi
syscall
```
You may also try the [hello-world.asm](./src/hello-world.asm) file:
```batch
.\emulator.bat hello-world.asm
```## Downloads
For the latest features and updates, check out our [nightly builds!](https://github.com/benja2998/linux-on-batch-on-windows/releases/)
For the most stable features and updates, check out the [latest release!](https://github.com/benja2998/linux-on-batch-on-windows/releases/latest)
## Contributing
See [CONTRIBUTING.md](./CONTRIBUTING.md) for more information.
---
Copyright (c) 2025 benja2998. Licensed under the [MIT License](./LICENSE).