Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/supakornn/asm-bubble-sort
👾 Bubble Sort with Assembly - MASM
https://github.com/supakornn/asm-bubble-sort
algorithms assembly bubble-sort
Last synced: 16 days ago
JSON representation
👾 Bubble Sort with Assembly - MASM
- Host: GitHub
- URL: https://github.com/supakornn/asm-bubble-sort
- Owner: Supakornn
- Created: 2025-01-08T01:46:35.000Z (29 days ago)
- Default Branch: main
- Last Pushed: 2025-01-10T04:53:58.000Z (27 days ago)
- Last Synced: 2025-01-18T09:10:29.874Z (19 days ago)
- Topics: algorithms, assembly, bubble-sort
- Language: Assembly
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🛠️ Bubble Sort with Assembly (MASM)
## 🚀 How to Run
### Requirements:
- [MASM32 SDK](https://www.masm32.com/)
- [Visual Studio Developer Command Prompt](https://docs.microsoft.com/en-us/dotnet/framework/tools/developer-command-prompt-for-vs)### Steps:
1. **📄 Prepare the Input File:**
- Edit the `input.txt` file to contain the array you want to sort, with each element separated by a space.
```txt
5 2 3 1 4
```2. **🔧 Assemble the Code:**
- Open the Developer Command Prompt for Visual Studio.
- Navigate to the directory containing your assembly file (`main.asm`).
- Assemble the code:
```sh
ml /c /coff main.asm
```3. **🔗 Link the Object File:**
- Link the object file to create an executable:
```sh
link /subsystem:console main.obj
```4. **▶️ Run the Executable:**
- Run the executable to perform the bubble sort:
```sh
main.exe
```5. **📊 Check the Output:**
- The sorted array will be displayed in the console.