An open API service indexing awesome lists of open source software.

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.

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 $ - msg2

section .text
global _start

_start:
mov rax, 1
mov rdi, 1
mov rsi, msg
mov rdx, msg_len
syscall

mov rax, 1
mov rdi, 1
mov rsi, msg2
mov rdx, msg2_len
syscall

mov 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).