Giter VIP home page Giter VIP logo

8086-assembly-language-programs's Introduction

8086-ASSEMBLY-LANGUAGE-PROGRAMS

๐Ÿ‘๐Ÿป Assembly Language Programming on 8086


Arithmetic

Conversion

Expression

External Add-on Devices

Note: All the given programs must be emulated using emu8086 only.

Introduction

Procedures

Searching

Simulation

  • Emulate a fire monitoring system on emu8086 for the following specifications: SOURCE CODE

    • Define the threshold for the temperature of two rooms
    • Generate the temperature value in 8b resolution
    • Switch on the alarm and display an alarm message when the threshold of either of the room is reached
    • Remove the alarm and bring the temperature below the threshold
  • Design and Emulate a smart automation system for a garment manufacturing unit with the following requirements: SOURCE CODE

    • To detect all possible defects
    • To remove the defective pieces
    • To provide comprehensive inventory report
  • Emulate water level controller on emu8086 for the following Specifications: SOURCE CODE

    • No. of water levels in the overhead tank is 8
    • Display the current level of water with a buzzer
    • Switch on the motor if the water level is 1
    • Switch off the motor if the water level is 8
    • Switch on the buzzer on water overflow

Sorting


๐Ÿ‘‰๐Ÿป Created to Learn Assembly Language Programming on 8086 ๐Ÿ‘ˆ๐Ÿป

โœŒ๐Ÿป Back To Engineering โœŒ๐Ÿป

8086-assembly-language-programs's People

Contributors

amey-thakur avatar namanlp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

8086-assembly-language-programs's Issues

Power.asm

the power.asm is wrong
.MODEL SMALL
.DATA
BASE DW ?
POW DB ?
NL1 DB 0AH,0DH,'ENTER BASE: ','$'
NL2 DB 0AH,0DH,'ENTER POWER: ','$'
RESULT DB 6 DUP('$')

.CODE
MAIN PROC

MOV AX,@DATA
MOV DS,AX

CALL ENTER_BASE
CALL ENTER_POWER

MOV AX, BASE
MOV BX, POW
CALL POWER

MOV AH, 09H     ; Print result
LEA DX, RESULT
INT 21H

MOV AH,4CH      ; Exit program
INT 21H

ENTER_BASE:
LEA DX, NL1 ; Display prompt
MOV AH, 09H
INT 21H

CALL READ_NUMBER ; Read base
MOV BASE, AX
RET

ENTER_POWER:
LEA DX, NL2 ; Display prompt
MOV AH, 09H
INT 21H

CALL READ_NUMBER ; Read power
MOV POW, AL
RET

READ_NUMBER:
XOR AX, AX ; Clear AX
MOV CX, 10 ; Multiplier
READ_LOOP:
MOV AH, 01H ; Read a character
INT 21H

CMP AL, 0DH     ; Check for Enter key
JE DONE_READ    ; If Enter, finish reading

SUB AL, 30H     ; Convert ASCII to digit
MUL CX          ; Multiply current number by 10
ADD AX, DX      ; Add new digit
MOV DX, AX      ; Store result

JMP READ_LOOP   ; Repeat

DONE_READ:
RET

POWER PROC
MOV CX, POW ; Move power to CX
MOV DX, 0 ; Clear DX (result)
MOV AX, 1 ; Set AX to 1 (base case)

POWER_LOOP:
TEST CX, 1 ; Check if power is odd
JZ EVEN_POWER ; If not odd, skip

MUL BX          ; Multiply result by base
DEC CX          ; Decrement power

EVEN_POWER:
SHR CX, 1 ; Divide power by 2
JZ POWER_DONE ; If power is zero, finish

MUL BX          ; Multiply base by itself
JMP POWER_LOOP  ; Repeat

POWER_DONE:
MOV AX, DX ; Move result to AX
RET
POWER ENDP

MAIN ENDP
END MAIN

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.