Skip to content

Files

Latest commit

974d7c7 · Jan 2, 2022

History

History

Microprocessor_Interfacing_CSE_2006

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Nov 20, 2021
Nov 27, 2021
Nov 20, 2021
Nov 26, 2021
Nov 26, 2021
Nov 26, 2021
Nov 26, 2021
Nov 26, 2021
Nov 26, 2021
Nov 26, 2021
Nov 27, 2021
Jan 2, 2022

Microprocessor and Interfacing - CSE2006

Setup

These labs require the use of an 8086 MASM compiler, and in order to simulate the actual 8086 architecture, we will use the DOSBOX application.

The setup procedure for this might not be as simple as the other courses, because we would have to place the masm compiler files in a particular location, and also the individual program files also in a particular location so that they are accessible both inside dosbox and can be compiled by the masm compiler.

If you are using a Windows OS, then follow this Video Tutorial which demonstrates the setting up procedure. And in case you are using a MacOS device, then follow this Article which explains the setting up of these both in a MacOS X environment. Both of these processes are similar with just a few minor changes.

Also feel free to follow any other tutorial if you find it simpler, and if you do find any add them here for others to use.

I would suggest the use of any code editors like VS Code or Sublime for programming, as they provide syntax highlighting and have intellisense features which simplify your coding process.

Steps For Execution

In order to compile and execute the programs, we would need a MASM compiler, and as specfied above, we will be using it in a DOS BOX environment.

  • Perform the following stels after opening the dosbox application
mount c ~/8086
c:
cd bin
  • To Create or edit a file from inside the DOSBOX environment
edit <filename.asm>
  • To compile and execute the code (we use debug command)
masm <filename.asm>
link <filename.obj>
debug <filename.exe>

The debug command has a few flags as follows, which serve a specfic purpose :

  • -u - To display all instructions
  • -g <instruction code of hlt instruction>
  • -q - To quit
  • -d <address of ds>:<offset of data segment if specfied otherwise 0000> - To get data segment

List of Programs

S.no Title
1 Addition of two Numbers
S.no Title
1 Addition with 16 bit registers
2 Addition with 8 bit registers
3 Multiplication
S.no Title
1 Addition
2 Multiplication
3 Fibonacci Series
S.no Title
1 Sort Array in Descending order
2 Sort Array in Ascending order
3 Smallest number in array
4 Largest number in array
S.no Title
1 BCD to Hexadecimal
2 Sum of Matrices
S.no Title
1 Two's Complement
2 Permutation
3 Combination
S.no Title
1 Scan data
2 Equal Strings
3 String Reverse
S.no Title
1 STEP Motor Simulation
2 Rotate Motor
S.no Title
1 Analog to Digital Converter
S.no Title
1 Divisibility
2 Time Delays
3 Number Comparator
4 Sorting Array

Note : The PDF version of the submissions for the labs 1 till 9 are available together as a single file uploaded to this folder. You can access it in this location : Microprocessor_Labs.pdf.