Skip to content

Intro

We are using ‘Assembly Language’, which is a lower level language compared to C, C++, Java, Python, etc…

It uses an assembler to convert the code into machine language the processor can understand. (high level languages use compiler/interpreter).

Installation

Windows

MacOS

  1. Install dosbox
  2. https://www.dosbox.com/download.php?main=1
  3. Copy 8086 files to ahmedthahir/dosbox; basically the root folder (next to Desktop, Documents, etc)
  4. https://www.mediafire.com/file/mm7cjztce9efj4w/8086.zip/file
  5. open dosbox
  6. mount c ~/dosbox/8086
  7. c:

Basics

Skeleton Program

.model small
.stack 20

.data
org 1000h
num1 db 05h
num2 db 03h

.code
start:
mov ax, @data
mov ds, ax

mov al, num1
add num2, al

int 3
end start
code ends

Steps

  1. Open up TurboAssembler

  2. Editing

  3. Assembling Type tasm fileName.asm

  4. Linking Type tlink fileName.obj

  5. Execution

  6. Type td fileName.exe
  7. Click F7 to execute the required lines

  8. Viewing results

  9. Click Tab key until focus reaches the address-value thing at the bottom
  10. Click Ctrl-G
  11. Enter ds:address for eg ds:1000

Saving

on your keyboard, click

  1. Alt+f
  2. then s
Last Updated: 2023-01-25 ; Contributors: AhmedThahir

Comments