Git Product home page Git Product logo

experiment--01-alp-for-8086's Introduction

EXPERIMENT--01-ALP-FOR-8086

Name : MUKESH V

Roll no : 212222230086

Date of experiment :

Aim: To Write and execute ALP on fundamental arithmetic and logical operations

Components required: 8086 emulator

Theory

Running The Emulator (emu8086) Intro 8086 Microprocessor Emulator, also known as EMU8086, is an emulator of the program 8086 microprocessor. It is developed with a built-in 8086 assembler. This application is able to run programs on both PC desktops and laptops. This tool is primarily designed to copy or emulate hardware. These include the memory of a program, CPU, RAM, input and output devices, and even the display screen. There are instructions to follow when using this emulator. It can be executed into one of the two ways: backward or forward. There are also examples of assembly source code included. With this, it allows the programming of assembly language, reverse engineering, hardware architecture, and creating miniature operating system (OS). The user interface of 8086 Microprocessor Emulator is simple and easy to manage. There are five major buttons with icons and titles included. These are “Load”, “Reload”, “Step Back”, “Single Step”, and “Run”. Above those buttons is the menu that includes “File”, “View”, “Virtual Devices”, “Virtual Drive”, and “Help”. Below the buttons is a series of choices that are usually in numbers and codes. At the leftmost part is an area called “Registers” with an indication of either “H” or “L”. The other side is divided into two, which enables users to manually reset, debug, flag, etc. What is 8086 emulator emu8086 is an emulator of Intel 8086 (AMD compatible) microprocessor with integrated 8086 assembler and tutorials for beginners. Emulator runs programs like the real microprocessor in step-by-step mode. it shows registers, memory, stack, variables and flags.

Running the Emulator :

  1. Download and install emu8086 (www.emu8086.com) It is usually installed in C:\EMU8086 subfolder in the “Windows” directory

  2. Run emu8086 icon (on the desktop or in the c:\EMU8086 folder of window) It has green color

  3. write the code for the appropriate program for ADDITION,SUBTRACTION, MULTIPLICATION, DIVISION operations

  4. Compile the program and check for the errors

  5. Run (once there is no syntax error)

  6. Click OK to see/view the output of your program on the Emulator screen.

  7. After running the program, another menu screen will be displayed, where you have the option to “View” symbol table,

image

  1. Click on emulate to start emulation

image

  1. If no errors are found click on run the program and check the status of various flags in the flags tab as shown below

image

Programs for arithmetic operations

Addition of 8 bit ALP

Mov AL,74H
Mov BL,69H
Add AL,BL
HLT

Output

Addition

Subtraction of 8 bit ALP

Mov AL,84H
Mov BL,63H
Sub AL,BL
HLT

Output

Subtraction

Multiplication ALP

org 100h
MOV AL,75H
MOV BL,32H
MUL BL
HLT

ret

Output

multi

Division ALP

org 100h
MOV AL,68H
MOV BL,18H
DIV BL
HLT


ret

Output

Div

Programs for logical operations

AND

Mov AL,33H
Mov BL,44H
AND AL,BL
HLT

Output

AND_operation

OR

Mov AL,45H
Mov BL,66H
OR AL,BL
HLT

Output

OR_Operation

NOT

Mov AL,65H
NOT AL
HLT

Output

NOT_Operation

XOR

org 100h
MOV AL,66H
MOV BL,77H
XOR AL,BL
HLT
ret

Output

Xor

Result :

Thus, ALP for fundamental arithmetic and logical operations are executed successfully.

experiment--01-alp-for-8086's People

Contributors

mukeshvelmurugan avatar vasanthkumarch avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.