Skip to content

A microprocessor-based project to determine if a given year is a leap year using 8086 Assembly Language. Built and executed using TASM, it demonstrates core microprocessor concepts such as input handling, division, conditional jumps, and interrupt usage for DOS I/O.

Notifications You must be signed in to change notification settings

harshad8782/Leap-Year-Checker-8086-Microprocessor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Leap Year Checker – 8086 Assembly Language Project

This project demonstrates a simple 8086 microprocessor program written in Assembly Language using TASM to determine whether a given year is a leap year or not.


πŸ“Œ Project Overview

A leap year has 366 days instead of 365, with an extra day added to February (Feb 29). This Assembly program takes a year as input and checks whether it's a leap year based on the standard rules:

  • Divisible by 4
  • Not divisible by 100 unless divisible by 400

🎯 Objective

To build a microprocessor-based solution that:

  • Accepts a year as input.
  • Uses basic arithmetic and conditional logic to check leap year status.
  • Displays the appropriate result.

βš™οΈ Technologies Used

  • 8086 Assembly Language
  • TASM 1.7 (Turbo Assembler)
  • DOS Interrupts (INT 21H)
  • Windows 10 for execution

πŸ§‘β€πŸ’» Team Members

  • Harshad Raurale
  • Kaushik Shigavan
  • Shrey Raut

πŸ“₯ Input Format

The user is prompted to enter a year. Input must be a 2-digit or 4-digit number using keyboard input.


πŸ’» Sample Code Snippet

LEA DX,MSG  
MOV AH,09H  
INT 21H     ; Display message

LEA DX,NUMBER  
MOV AH,0AH  
INT 21H     ; Accept user input

AAD         ; Convert ASCII to binary
MOV BL,04H  
DIV BL      ; Check divisibility by 4
JZ YES      ; If zero remainder, it's a leap year

βœ… Output Displays either:

YES, IT IS A LEAP YEAR

NO, IT IS NOT A LEAP YEAR

About

A microprocessor-based project to determine if a given year is a leap year using 8086 Assembly Language. Built and executed using TASM, it demonstrates core microprocessor concepts such as input handling, division, conditional jumps, and interrupt usage for DOS I/O.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published