{"id":15064071,"url":"https://github.com/abdullahbrashid/assembly-tools","last_synced_at":"2025-09-07T14:42:30.524Z","repository":{"id":254439431,"uuid":"846509432","full_name":"AbdullahBRashid/Assembly-Tools","owner":"AbdullahBRashid","description":"Assembly Tools installation scripts. NASM, DosBox, AFD (Along with run scripts).","archived":false,"fork":false,"pushed_at":"2024-08-27T07:51:11.000Z","size":65,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T09:28:03.649Z","etag":null,"topics":["afd","dosbox","dosbox-x","nasm","powershell","script"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AbdullahBRashid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-23T11:10:06.000Z","updated_at":"2024-08-27T07:51:04.000Z","dependencies_parsed_at":"2024-10-13T00:11:35.573Z","dependency_job_id":null,"html_url":"https://github.com/AbdullahBRashid/Assembly-Tools","commit_stats":null,"previous_names":["abdullahbrashid/assembly-tools"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdullahBRashid%2FAssembly-Tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdullahBRashid%2FAssembly-Tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdullahBRashid%2FAssembly-Tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdullahBRashid%2FAssembly-Tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AbdullahBRashid","download_url":"https://codeload.github.com/AbdullahBRashid/Assembly-Tools/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243786231,"owners_count":20347603,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["afd","dosbox","dosbox-x","nasm","powershell","script"],"created_at":"2024-09-25T00:11:03.655Z","updated_at":"2025-03-15T20:22:04.893Z","avatar_url":"https://github.com/AbdullahBRashid.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Contents\n- [Easy Install](#easy-installation)\n    - [Windows](#windows---easy-installation)\n\n- [Prerequisites](#prerequisites)\n- [Usages](#usages)\n  - [VS Code - Code Runner](#vs-code---code-runner)\n    - [Copy AFD \u0026 Compile with NASM \u0026 Debug in DosBox](#command-for-copy-afd-compile-using-nasm-and-run-with-afd-in-dosbox)\n\n# Easy Installation\n## Windows - Easy Installation\n\nFirst Run in PowerShell (As Admin):\n```ps1\nSet-ExecutionPolicy Bypass\n```\n\nInstall [winget](https://aka.ms/getwinget), if not installed already.\n\nRun in PowerShell (Non Admin):\n```ps1\ncurl \"https://raw.githubusercontent.com/AbdullahBRashid/Assembly-Tools/main/afd-setup.ps1\" -o ./afd-setup.ps1\npowershell ./afd-setup.ps1\n```\n\nAfter setup.\ncd to the working directory with the assembly file and run:\n```ps1\nafd \u003cfilename.asm\u003e # Replace \u003cfilenmae.asm\u003e with your filename.\n```\n\n# Prerequisites\nDownload [**AFD**](https://github.com/AbdullahBRashid/Assembly-Tools/blob/main/afd.exe) and copy it to `$HOME` to follow easily.\n\nOR\n\nRun in terminal:\n```ps1\ncurl \"https://raw.githubusercontent.com/AbdullahBRashid/Assembly-Tools/main/afd.exe\" -o $HOME/afd.exe\n```\n\nOR\n\nRun in terminal:\n```ps1\n# PATH to AFD\n# Add the downloaded AFD Path.\nset PathName = \nif (PathName != \"\") {\n    copy PathName $HOME\n} else {\n    echo \"Please fix the PathName variable correctly.\"\n}\n```\n\n\nDownload [**Netwide Assembler (NASM)**](https://www.nasm.us), and add it to PATH.\\\nDownload [**DosBox**](https://www.dosbox.com), and add it to PATH.\n\n**Note:** As of writing this [**DosBox**](https://www.dosbox.com) SourceForge page is not functioning.\\\n[Softonic](https://dosbox.en.softonic.com/download) seems to be providing a valid download. Download at your own risk.\n\nReopen terminal and run:\n```ps1\n$ nasm --version\n```\n```ps1\n$ dosbox --version\n```\n\nIf they output a version number, then continue.\\\nIf not then make sure the binaries are installed properly and  added to PATH.\n\n\n# Usages\n\n## VS Code - Code Runner\n\n### Command for: Copy AFD, Compile using NASM and Run with AFD in DosBox\n\nAFD Binary should be in Home Directory of User. To change: (Replace `copy $HOME/afd.exe` to `copy \u003cpath-to-afd\u003e`).\n\nDownload [`Code Runner`](https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner) Extension in VS Code.\n\nCopy the below snippet in `settings.json` file.\n```json\n{\n    ...\n    \"code-runner.executorMapByFileExtension\": {\n        ...\n        \".asm\": \"copy $HOME/afd.exe \u0026\u0026 nasm $fileName -l $fileNameWithoutExt.lst -o $fileNameWithoutExt.com \u0026\u0026 dosbox -c \\\"mount C .\\\" -c \\\"C:\\\" -c \\\"afd $fileNameWithoutExt.com\\\"\"\n        ...\n    }\n    ...\n}\n```\n\n## Windows Shell\n\nReplace \\\u003cfilename\u003e with name of file.\n\n### Compiling\n\nWith list file:\n\n```ps1\nnasm \u003cfilename\u003e.asm -l \u003cfilename\u003e.lst -o \u003cfilename\u003e.com\n```\n\nWithout list file:\n\n```ps1\nnasm \u003cfilename\u003e.asm -o \u003cfilename\u003e.com\n```\n\n### Running AFD with DosBox\n\nEnsure **AFD** and the **.com** Binary are in the directory of command execution.\n\n```ps1\ndosbox -c \"mount C .\" -c \"C: \" -c \"afd \u003cfilename\u003e.com\"\n```\n\n\n## Linux Shell\n\nReplace \\\u003cfilename\u003e with name of file.\n\n### Compiling\n\nWith list file:\n\n```sh\n$ nasm \u003cfilename\u003e.asm -l \u003cfilename\u003e.lst -o \u003cfilename\u003e.com\n```\n\nWithout list file:\n\n```sh\n$ nasm \u003cfilename\u003e.asm -o \u003cfilename\u003e.com\n```\n\n### Running AFD with DosBox\n\nEnsure **AFD** and the **.com** Binary are in the directory of command execution.\n\n```sh\n$ dosbox -c \"mount C .\" -c \"C: \" -c \"afd \u003cfilename\u003e.com\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullahbrashid%2Fassembly-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdullahbrashid%2Fassembly-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullahbrashid%2Fassembly-tools/lists"}