Skip to content

Simukas1/Disassembler-8086

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Disassembler-8086

Version: 1.0
Author: Simonas Jarukaitis
E-mail: [email protected]

Introduction

A disassembler is software, that converts machine language instructions into assembly language instructions.
This disassembler for 8086/8088 processor. It converts .com program instructions to assembly language. For example, 04 17 means add al, 17.
It should work with all commands, presented at file instr86.pdf.

If Disassembler does not understand command, it will return "db xx" (xx - byte).

Template for disassembler was provided by my professor, Irus Grinis. it had simple 1 byte instructions, function to open, read, close files.
Grinis also provided libraries "yasmlib.asm" and "yasmmac.inc".

Usage

First, we will need these files:

Then, launch DEBUG.com, and write these instructions:

  • mount c: 'folder with dsmnulis.asm file'.
  • c:
  • yasm dsmnulis.asm -fbin -o dsmnulis.com OR cl dsmnulis, if you have cl.bat file
  • debug
  • a100
  • Now write assembly commands
  • When you are done writing, press enter and write r cx
  • enter how many bytes you used (You can see them on the left, behind the assembly commands)
  • n 'file_name.com'
  • w
  • q
  • dsmnulis 'file_name'

Copyright (C) 2021 Simonas Jarukaitis, Vilnius University.

Releases

No releases published

Packages

No packages published