shikhar-scs / Assembly-with-MacOS

Collection of Assembly Programs in 8086

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Assembly-with-MacOS

A collection of assembly programs specifically with MacOS system calls and nasm intruction set for 8086 microprocessor.

Setup

MacOS

brew install nasm
git clone https://github.com/PikkaPikkachu/Assembly-with-MacOS
cd Assembly-with-MacOS

Now cd into any program and run it with the specified intruction at the end of code!

Linux

git clone https://github.com/PikkaPikkachu/Assembly-with-MacOS
cd Assembly-with-MacOS

Running the programs

1. Run on Masm using Dosbox

To run programs in dosbox

To open Dosbox : Open Terminal, type and press enter

dosbox

This should open the pre-installed dosbox. Now inside dosbox type

mount c /path/to/directory/of/asm/file

c:

masm <fileName.asm>

link <fileName.obj>

<fileName.exe>

Currently the required .exe files have been added in the sub-directory itself which can be run directly.

2. Run with emu8086 and Wine (faster and better)

To setup Wine :

In a terminal session (CTRL+ALT+T). Simply type:

sudo apt-get update
sudo apt-get install wine
sudo apt-get install virtualbox

Download the 8086emu.exe file from /Linux directory.
Right click and open-with Wine.

Install and get started by directly editing and running .asm files in the IDE.

Tutorials

Get started with Hello World program in 8086.

Contributions

Open to contributions of other programs as well!

About

Collection of Assembly Programs in 8086

License:Apache License 2.0


Languages

Language:Assembly 100.0%