The document summarizes a student project to simulate an 8-lane traffic light controller using assembly language on an 8086 microprocessor. The project controls traffic flow by turning on lights in different combinations (green, yellow, red) for each lane in sequence using OUT instructions. It defines symbols for the light patterns and uses labels and jumps to continuously cycle through turning on the lights for each lane. The project aims to avoid vehicle collisions by allowing different directions to proceed safely for limited time slots in a repeating cycle.
Clean Code - Design Patterns and Best Practices at Silicon Valley Code CampTheo Jungeblut
Why writing Clean Code makes us more efficient Over the lifetime of a product, maintaining the product is actually one - if not the most - expensive area(s) of the overall product costs.
Writing clean code can significantly lower these costs. However, writing clean code also makes you more efficient during the initial development time and results in more stable code.
You will be presented design patterns and best practices which will make you write better and more easily maintainable code, seeing code in a holistic way. You will learn how to apply them by using an existing implementation as the starting point of the presentation. Finally, patterns & practices benefits are explained. This presentation is based on C# and Visual Studio 2012.
However, the demonstrated patterns and practice can be applied to almost every other programming language too.
Introduction to kotlin for android app development gdg ahmedabad dev fest 2017Hardik Trivedi
The presentation was given in Ahmedabad GDG DevFest 2017. It has introduction to Kotlin for Android App Development.
Talk will is specially designed for beginners, who has heard about Kotlin but couldn’t explore it till date. The talk will take attendees to the journey where they can know Kotlin as a programming language. What Kotlin offers for Android? How to start the development using Kotlin, Features of Kotlin, Some of the disadvantages of Kotlin.
I will be discussing about following topics
- What’s Kotlin
- Why Kotlin
- Setting up Kotlin
- Features of Kotlin
- Syntax crash course
- Classes
- Features of function programming like Lamdabs and Higher order functions
- Usage of Anko
- Migrating from Java project to Kotlin
- Future of Kotlin
- Disadvantages of Kotlin
The lazy programmer's guide to writing thousands of testsScott Wlaschin
We are all familiar with example-based testing, as typified by TDD and BDD, where each test is hand-crafted.
But there's another approach to writing tests. In the "property-based testing" approach, a single test is run hundreds of times with randomly generated inputs. Property-based testing is a great way to find edge cases, and also helps you to understand and document the behavior of your code under all conditions.
This talk will introduce property-based testing, show you how it works, and demonstrate why you should consider adding this powerful technique to your toolbelt.
In this you learn about the topic multiplexer and De-multiplexer in a very easy method.
You learn types of Multiplexer, Types of De-multiplexer,
Relation between Multiplexer (MUX) and De-Multiplexer (Dmux).
Difference between MUX and DMUX
1. Python Presented By: Rajesh Kumar Guided By: Mr. Jaishankar Bhatt
2. Content Python Introduction Python Code Execution Python Comments & Indentation Variables Data Types Strings Collections (Arrays)
3. Python Introduction What is Python? Python is an interpreted, high-level, general-purpose programming language. Created by Guido van Rossum Released in 1991
4. Python Code Execution Source code extension is .py Byte code extension is .pyc (compiled python code) Python’s runtime execution model:
5. Comments •Creating a Comment: Ex: Comments starts with a # Output:
6. Comments •Multi Line Comments: Ex: or:
7. Python Indentation •Indentation refers to the spaces at the beginning of a code line. Ex1: Ex2:
8. Variables •Variables are containers for storing data values. Ex:
9. Data Types •Built-in Data Types
10. Getting the Data Type •You can get the data type of any object by using the type() method. Ex: Print the data type of the variable x: Output:
11. Setting the Data Type •In Python, the data type is set when you assign a value to a variable:
12. Strings •String literals in python are surrounded by either single quotation marks, or double quotation marks. •'hello' is the same as "hello". Ex:
13. Multiline Strings •You can assign a multiline string to a variable by using three quotes Ex: Output:
14. Slicing •You can return a range of characters by using the slice syntax. Ex:Get the characters from position 2 to position 5. Output:
15. String Methods Method Description len() Returns the length of a string. lower() Returns the string in lower case. upper() Returns the string in upper case. count() Returns the number of times a specified value appears in the string.
16. Collections (Arrays) •There are four collection data types in the Python programming language. Types: 1. List 2. Tuple 3. Set 4. Dictionary
17. Python Lists •A list is a collection which is ordered and changeable. In Python lists are written with square brackets. Ex: Create a List: Output:
18. Python Tuples •A tuple is a collection which is ordered and unchangeable. In Python tuples are written with round brackets. Ex: Create a Tuple: Output:
19. Python Sets •A set is a collection which is unordered and unindexed. In Python sets are written with curly brackets. Ex: Create a Set:
20. Python Dictionaries •A dictionary is a collection which is unordered, changeable and indexed. In Python dictionaries are written with curly brackets. Ex: Create a Dictionary:
21. Conclusion Python is a great option, whether you are a beginning programmer looking to learn the basics, an experienced programmer designing a large application, or anywhere in between. The basics of Python are easily grasped, and yet its capabilities are vast.
22. Reference https://www.udemy.com/course/learn- programming-with-python https://www.w3schools.com/python/default.asp
Latches
– Flip-Flops - SR, JK, D and T
– Master Slave Flip Flops
• Shift Registers
– SISO, SIPO, PISO, PIPO and Universal
• Binary Counters
– Synchronous and asynchronous up/down counters
– mod - N counter
– Counters for random sequence
– Johnson counter and Ring counter
The traffic light sequence works on the specific switching of Red, Green and Yellow lights in a particular way with stipulated time form. The normal function of traffic lights requires sophisticated control and coordination to ensure that traffic moves as smoothly and safely as possible and that pedestrians are protected when they cross the roads [1].This Traffic Light sequence is generated using a specific switching mechanism which will help to control a traffic light system on a road in a specified sequence. This paper focuses on the fact that the traffic lights can be varied in the day and night mode depending on the intensity of the traffic. It plays a vital role in supervising and running the metropolitan traffic and evade the possibilities of any unfortunate mishaps happening in and around the cities. It is a sequential machine to be scrutinized as per the requirements and programmed through a multistep development process. The methods that are used in this project are proposing the circuit, write a code, simulate, synthesis and implement on the hardware [8]. In this project, XILINX Software was chosen to devise a schematic using schematic edit, write a code using Verilog HDL (Hardware Description Language) text editor and implements the circuit on Programmable Logic Device [PLD].The system has been successfully tested and implemented in hardware using Nexys 2 Digilent FPGA.
Clean Code - Design Patterns and Best Practices at Silicon Valley Code CampTheo Jungeblut
Why writing Clean Code makes us more efficient Over the lifetime of a product, maintaining the product is actually one - if not the most - expensive area(s) of the overall product costs.
Writing clean code can significantly lower these costs. However, writing clean code also makes you more efficient during the initial development time and results in more stable code.
You will be presented design patterns and best practices which will make you write better and more easily maintainable code, seeing code in a holistic way. You will learn how to apply them by using an existing implementation as the starting point of the presentation. Finally, patterns & practices benefits are explained. This presentation is based on C# and Visual Studio 2012.
However, the demonstrated patterns and practice can be applied to almost every other programming language too.
Introduction to kotlin for android app development gdg ahmedabad dev fest 2017Hardik Trivedi
The presentation was given in Ahmedabad GDG DevFest 2017. It has introduction to Kotlin for Android App Development.
Talk will is specially designed for beginners, who has heard about Kotlin but couldn’t explore it till date. The talk will take attendees to the journey where they can know Kotlin as a programming language. What Kotlin offers for Android? How to start the development using Kotlin, Features of Kotlin, Some of the disadvantages of Kotlin.
I will be discussing about following topics
- What’s Kotlin
- Why Kotlin
- Setting up Kotlin
- Features of Kotlin
- Syntax crash course
- Classes
- Features of function programming like Lamdabs and Higher order functions
- Usage of Anko
- Migrating from Java project to Kotlin
- Future of Kotlin
- Disadvantages of Kotlin
The lazy programmer's guide to writing thousands of testsScott Wlaschin
We are all familiar with example-based testing, as typified by TDD and BDD, where each test is hand-crafted.
But there's another approach to writing tests. In the "property-based testing" approach, a single test is run hundreds of times with randomly generated inputs. Property-based testing is a great way to find edge cases, and also helps you to understand and document the behavior of your code under all conditions.
This talk will introduce property-based testing, show you how it works, and demonstrate why you should consider adding this powerful technique to your toolbelt.
In this you learn about the topic multiplexer and De-multiplexer in a very easy method.
You learn types of Multiplexer, Types of De-multiplexer,
Relation between Multiplexer (MUX) and De-Multiplexer (Dmux).
Difference between MUX and DMUX
1. Python Presented By: Rajesh Kumar Guided By: Mr. Jaishankar Bhatt
2. Content Python Introduction Python Code Execution Python Comments & Indentation Variables Data Types Strings Collections (Arrays)
3. Python Introduction What is Python? Python is an interpreted, high-level, general-purpose programming language. Created by Guido van Rossum Released in 1991
4. Python Code Execution Source code extension is .py Byte code extension is .pyc (compiled python code) Python’s runtime execution model:
5. Comments •Creating a Comment: Ex: Comments starts with a # Output:
6. Comments •Multi Line Comments: Ex: or:
7. Python Indentation •Indentation refers to the spaces at the beginning of a code line. Ex1: Ex2:
8. Variables •Variables are containers for storing data values. Ex:
9. Data Types •Built-in Data Types
10. Getting the Data Type •You can get the data type of any object by using the type() method. Ex: Print the data type of the variable x: Output:
11. Setting the Data Type •In Python, the data type is set when you assign a value to a variable:
12. Strings •String literals in python are surrounded by either single quotation marks, or double quotation marks. •'hello' is the same as "hello". Ex:
13. Multiline Strings •You can assign a multiline string to a variable by using three quotes Ex: Output:
14. Slicing •You can return a range of characters by using the slice syntax. Ex:Get the characters from position 2 to position 5. Output:
15. String Methods Method Description len() Returns the length of a string. lower() Returns the string in lower case. upper() Returns the string in upper case. count() Returns the number of times a specified value appears in the string.
16. Collections (Arrays) •There are four collection data types in the Python programming language. Types: 1. List 2. Tuple 3. Set 4. Dictionary
17. Python Lists •A list is a collection which is ordered and changeable. In Python lists are written with square brackets. Ex: Create a List: Output:
18. Python Tuples •A tuple is a collection which is ordered and unchangeable. In Python tuples are written with round brackets. Ex: Create a Tuple: Output:
19. Python Sets •A set is a collection which is unordered and unindexed. In Python sets are written with curly brackets. Ex: Create a Set:
20. Python Dictionaries •A dictionary is a collection which is unordered, changeable and indexed. In Python dictionaries are written with curly brackets. Ex: Create a Dictionary:
21. Conclusion Python is a great option, whether you are a beginning programmer looking to learn the basics, an experienced programmer designing a large application, or anywhere in between. The basics of Python are easily grasped, and yet its capabilities are vast.
22. Reference https://www.udemy.com/course/learn- programming-with-python https://www.w3schools.com/python/default.asp
Latches
– Flip-Flops - SR, JK, D and T
– Master Slave Flip Flops
• Shift Registers
– SISO, SIPO, PISO, PIPO and Universal
• Binary Counters
– Synchronous and asynchronous up/down counters
– mod - N counter
– Counters for random sequence
– Johnson counter and Ring counter
The traffic light sequence works on the specific switching of Red, Green and Yellow lights in a particular way with stipulated time form. The normal function of traffic lights requires sophisticated control and coordination to ensure that traffic moves as smoothly and safely as possible and that pedestrians are protected when they cross the roads [1].This Traffic Light sequence is generated using a specific switching mechanism which will help to control a traffic light system on a road in a specified sequence. This paper focuses on the fact that the traffic lights can be varied in the day and night mode depending on the intensity of the traffic. It plays a vital role in supervising and running the metropolitan traffic and evade the possibilities of any unfortunate mishaps happening in and around the cities. It is a sequential machine to be scrutinized as per the requirements and programmed through a multistep development process. The methods that are used in this project are proposing the circuit, write a code, simulate, synthesis and implement on the hardware [8]. In this project, XILINX Software was chosen to devise a schematic using schematic edit, write a code using Verilog HDL (Hardware Description Language) text editor and implements the circuit on Programmable Logic Device [PLD].The system has been successfully tested and implemented in hardware using Nexys 2 Digilent FPGA.
An automobile shop (also known regionally as a
garage or a workshop) is an establishment where
automobiles are repaired by auto mechanics and
technician
Traditionally, computer software has been written for serial computation. To solve a problem, an algorithm is constructed and implemented as a serial stream of instructions. These instructions are executed on a central processing unit on one computer. Only one instruction may execute at a time—after that instruction is finished, the next is executed.
Fundamental of Information Technology - UNIT 6Shipra Swati
Computer Programming and Languages : algorithm, Flow Chart, Pseudo Code, Program
Control Structures, Programming Languages, Generation of Programming Languages and
etc.
IMPLEMENTATION OF FRACTIONAL ORDER TRANSFER FUNCTION USING LOW COST DSPIAEME Publication
In this paper, different fractional order transfer functions are taken first and discretized them using available methods and filters (i.e. Oustaloup or modified Oustaloup). Coefficients of discretized transfer function are calculated and scaled using Q15 number system to get the coefficients in the range between -1 to 1, and converted into equivalent hexadecimal number. These coefficients are entered into the Micro C code that is generated using filter design tool of Micro C for dsPIC microcontroller. Also the simulation results are validated using EasydsPIC4 development board.
I am Frank Allen. I am a Computer Architecture Assignment Expert at architectureassignmenthelp.com. I hold a Master's in Computer Architecture from, Ontario Tech University, Canada. I have been helping students with their assignments for the past 10 years. I solve assignments related to Computer Architecture.
Visit architectureassignmenthelp.com or email info@architectureassignmenthelp.com. You can also call on +1 678 648 4277 for any assistance with Computer Architecture Assignments.
This project is based on Data Path Architecture which consists of Shift register, MAC Unit, 16-Bit ALU and Tri-State Buffer. This whole architecture is implemented by using VHDL and simulated by using Modelsim.
Immunizing Image Classifiers Against Localized Adversary Attacksgerogepatton
This paper addresses the vulnerability of deep learning models, particularly convolutional neural networks
(CNN)s, to adversarial attacks and presents a proactive training technique designed to counter them. We
introduce a novel volumization algorithm, which transforms 2D images into 3D volumetric representations.
When combined with 3D convolution and deep curriculum learning optimization (CLO), itsignificantly improves
the immunity of models against localized universal attacks by up to 40%. We evaluate our proposed approach
using contemporary CNN architectures and the modified Canadian Institute for Advanced Research (CIFAR-10
and CIFAR-100) and ImageNet Large Scale Visual Recognition Challenge (ILSVRC12) datasets, showcasing
accuracy improvements over previous techniques. The results indicate that the combination of the volumetric
input and curriculum learning holds significant promise for mitigating adversarial attacks without necessitating
adversary training.
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Dr.Costas Sachpazis
Terzaghi's soil bearing capacity theory, developed by Karl Terzaghi, is a fundamental principle in geotechnical engineering used to determine the bearing capacity of shallow foundations. This theory provides a method to calculate the ultimate bearing capacity of soil, which is the maximum load per unit area that the soil can support without undergoing shear failure. The Calculation HTML Code included.
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdffxintegritypublishin
Advancements in technology unveil a myriad of electrical and electronic breakthroughs geared towards efficiently harnessing limited resources to meet human energy demands. The optimization of hybrid solar PV panels and pumped hydro energy supply systems plays a pivotal role in utilizing natural resources effectively. This initiative not only benefits humanity but also fosters environmental sustainability. The study investigated the design optimization of these hybrid systems, focusing on understanding solar radiation patterns, identifying geographical influences on solar radiation, formulating a mathematical model for system optimization, and determining the optimal configuration of PV panels and pumped hydro storage. Through a comparative analysis approach and eight weeks of data collection, the study addressed key research questions related to solar radiation patterns and optimal system design. The findings highlighted regions with heightened solar radiation levels, showcasing substantial potential for power generation and emphasizing the system's efficiency. Optimizing system design significantly boosted power generation, promoted renewable energy utilization, and enhanced energy storage capacity. The study underscored the benefits of optimizing hybrid solar PV panels and pumped hydro energy supply systems for sustainable energy usage. Optimizing the design of solar PV panels and pumped hydro energy supply systems as examined across diverse climatic conditions in a developing country, not only enhances power generation but also improves the integration of renewable energy sources and boosts energy storage capacities, particularly beneficial for less economically prosperous regions. Additionally, the study provides valuable insights for advancing energy research in economically viable areas. Recommendations included conducting site-specific assessments, utilizing advanced modeling tools, implementing regular maintenance protocols, and enhancing communication among system components.
Final project report on grocery store management system..pdfKamal Acharya
In today’s fast-changing business environment, it’s extremely important to be able to respond to client needs in the most effective and timely manner. If your customers wish to see your business online and have instant access to your products or services.
Online Grocery Store is an e-commerce website, which retails various grocery products. This project allows viewing various products available enables registered users to purchase desired products instantly using Paytm, UPI payment processor (Instant Pay) and also can place order by using Cash on Delivery (Pay Later) option. This project provides an easy access to Administrators and Managers to view orders placed using Pay Later and Instant Pay options.
In order to develop an e-commerce website, a number of Technologies must be studied and understood. These include multi-tiered architecture, server and client-side scripting techniques, implementation technologies, programming language (such as PHP, HTML, CSS, JavaScript) and MySQL relational databases. This is a project with the objective to develop a basic website where a consumer is provided with a shopping cart website and also to know about the technologies used to develop such a website.
This document will discuss each of the underlying technologies to create and implement an e- commerce website.
Water scarcity is the lack of fresh water resources to meet the standard water demand. There are two type of water scarcity. One is physical. The other is economic water scarcity.
Hierarchical Digital Twin of a Naval Power SystemKerry Sado
A hierarchical digital twin of a Naval DC power system has been developed and experimentally verified. Similar to other state-of-the-art digital twins, this technology creates a digital replica of the physical system executed in real-time or faster, which can modify hardware controls. However, its advantage stems from distributing computational efforts by utilizing a hierarchical structure composed of lower-level digital twin blocks and a higher-level system digital twin. Each digital twin block is associated with a physical subsystem of the hardware and communicates with a singular system digital twin, which creates a system-level response. By extracting information from each level of the hierarchy, power system controls of the hardware were reconfigured autonomously. This hierarchical digital twin development offers several advantages over other digital twins, particularly in the field of naval power systems. The hierarchical structure allows for greater computational efficiency and scalability while the ability to autonomously reconfigure hardware controls offers increased flexibility and responsiveness. The hierarchical decomposition and models utilized were well aligned with the physical twin, as indicated by the maximum deviations between the developed digital twin hierarchy and the hardware.
Explore the innovative world of trenchless pipe repair with our comprehensive guide, "The Benefits and Techniques of Trenchless Pipe Repair." This document delves into the modern methods of repairing underground pipes without the need for extensive excavation, highlighting the numerous advantages and the latest techniques used in the industry.
Learn about the cost savings, reduced environmental impact, and minimal disruption associated with trenchless technology. Discover detailed explanations of popular techniques such as pipe bursting, cured-in-place pipe (CIPP) lining, and directional drilling. Understand how these methods can be applied to various types of infrastructure, from residential plumbing to large-scale municipal systems.
Ideal for homeowners, contractors, engineers, and anyone interested in modern plumbing solutions, this guide provides valuable insights into why trenchless pipe repair is becoming the preferred choice for pipe rehabilitation. Stay informed about the latest advancements and best practices in the field.
1. Department of Computer Science & Engineering
Course Title: Microprocessor &Assembly Language
Report On: Traffic-Lights-System-2
Report NO. 1
Submitted To:
Ahmed Al Marouf
Lecturer Daffodil International University
Submitted By:
M M Rayhan Parvez 143-15-4617
Tuhin Suad 143-15-4614
Jiya Uddin ahmed 143-15-4593
Asif Ahmed 143-15-4664
2. Fazle Karim 143-15-4492
Section: F
Submission Date: 5-4-2016
Traffic lights 2
1. ABSTRACT
On this paper we are going to discuss about
emu8086 example project the Traffic Lights 2 and
how it works. The aim of this project is to control
traffic system. The project is done by assembly
language which work on 8086 micro-processors. The
function of traffic lights is to provide sophisticated
control and coordination to ensure that traffic moves
as smoothly and safely as possible.
2. INTRODUCTION
Traffic signals are used to control the flow of
vehicles. In the recent years,the need of transportation
has gain immense importance for logistics as well as
for common human. This has given rise to the number
of vehicles on the road. Due to this reason, traffic jams
and road accidents are a common sight in any busy
city. Traffic Signals provide an easy,cheap, automatic
and justified solution to the road points where the
vehicles may turn to otherdirections e.g. roundabouts,
culverts, busy walk throughs etc.
Basic Idea The project we have chosen is an
8-lane traffic controller. The basic idea behind the
design is to avoid the collision of vehicles by
providing appropriate signals to different directions
for a limited time slot, after which the next waiting
drivers will be given same treatment. In This way a
cycle will be established which will control the traffic.
Control Signals The control signals are 3-
lights. Top light is Red(Stop), Middle light is
Yellow(Wait) Bottom light is Green(Go). States
of Traffic Flow There are 8-lanes and at most two
ways can be safely open. In this way a minimum of 4-
states are possible for which different vehicles will
pass through
2.1 WORKING PROCESS
In emu8086 We use some register and
segment to generate a code.We also use some built-in
default instruction to execute the desired output.
In here we use #start=Traffic_Lights.exe# for running
the whole code from c drive. The whole code is written
below with the comment of each line describe how the
code work as traffic light 2.
name "traffic2"; name the emulator ‘traffic2’
yellow_and_green equ 0000_0110b ;Assigns the
value 0000_0110b to the symbol yellow_and_green.
red equ 0000_0001b ;Assigns the value
0000_0110b to the symbol red.
3. yellow_and_red equ 0000_0011b ;Assigns the
value 0000_0110b to the symbol yellow and red.
green equ 0000_0100b ;Assigns the value
0000_0110b to the symbol green.
all_red equ 0010_0100_1001b ;Assigns the
value 0000_0110b to the symbol all_red.
start: ;label named start
nop ; do nothing
; 0,1,2
mov ax, green ;copy value of green symbol to ax
out 4, ax ;turn on green
mov ax, yellow_and_green ;copy value of
yellow_and_green symbol to ax
out 4, ax ;turn on yellow and green
mov ax,red ;copy value of red symbol to ax
out 4, ax ;turn on red
mov ax, yellow_and_red ;copy value of
yellow_and_red symbol to ax
out 4, ax ;turn on yellow and red
; 3,4,5
mov ax, green << 3 ;copy value of green symbol to
ax for 3,4,5 lights
out 4, ax ;turn on green
mov ax, yellow_and_green << 3 ;copy value of
yellow_and_green symbol to ax for 3,4,5 lights.
out 4, ax ;turn on yellow and green
mov ax,red << 3 ;copy value of red symbol to ax for
3,4,5 lights.
out 4, ax ;turn on red
mov ax, yellow_and_red << 3 ;copy value of
yellow_and_red symbol to ax for 3,4,5 lights
out 4, ax ;turn on yellow and red
; 6,7,8
mov ax, green << 6 ;copy value of green symbol to
ax for 6,7,8 lights
out 4, ax ;turn on green
mov ax, yellow_and_green << 6 ;copy value of
yellow_and_green symbol to ax for 6,7,8 lights
out 4, ax ;turn on yellow and green
mov ax,red << 6 ;copy value of red symbol to ax for
6,7,8 lights
out 4, ax ;turn on red
mov ax, yellow_and_red << 6 ;copy value of
yellow_and_red symbol to ax for 6,7,8 lights
out 4, ax ;turn on yellow and red
; 9,A,B
mov ax, green << 9 ;copy value of green symbol to
ax for 9,A,B lights
out 4, ax ;turn on green
mov ax, yellow_and_green << 9 ;copy value of
yellow_and_green symbol to ax for 9,A,B lights
out 4, ax ;turn on yellow and green
mov ax,red << 9 ;copy value of red symbol to ax for
9,A,B lights
out 4, ax ;turn on red
mov ax, yellow_and_red << 9 ;copy value of
yellow_and_red symbol to ax for 9,A,B lights
out 4, ax ;turn on yellow and red
; all
mov ax, all_red ;copy value of all_red symbol to ax
for all lights
out 4, ax ;turn on all red
mov ax, all_red << 1 ; all yellow
out 4, ax ;turn on all yellow
mov ax, all_red << 2 ; all green
out 4, ax ;turn on all green
jmp start ; jump to the start label
3.SYSTEM ARCHITECTURE
In this pro0ject we use a Traffic Light
Diagram and showing the functions of Traffic Light.
4. Fig1: Vehicles are going in Root1 when the Light is
Green.
Fig1: Vehicles are going in Root1 when the Light is
Green & Yellow.
Fig1: Vehicles are stop in Root1 when the Light is
Red.
Root1
Root3
Root2
Root4
5. Fig1: Vehicles are stop in all when the all Lights are
Red.
Fig1: Vehicles are stop in all when the all Lights are
Green.
4.CODE KEYWORDS (PROCEDURE
/MACROS/
FUNCTIONS/INSTRUCTION/LABEL)
Description of code keywords is given bellow: -
4.1 In " #start=Traffic_Lights.exe# " it runs an .exe
file of traffic lights 2 assembly code.
4.2 LABEL:
4.2.1 START:
In this label program start with copying the symbol of
green into the ax register. Then its moved out 4.
Similarly, Red & Green symbol copying in the register
then moved out. For every lights this process is
happening. At last all the similar lights fulfill the
condition. Again jump to the Start label. This process
is continuing until the program exit.
4.3 Instructions:(Describe Chronologically)
4.3.1 MOV: Copy operand2 to operand1.
The MOV instruction cannot:
set the value of the CS and IP registers.
copy value of one segment register to another
segment register.
copy immediate value to segment register
4.3.2 OUT: Output from AL or AX to port.
First operand is a port number. If required to access
port number over 255 - DX register should be used.
4.3.3 JMP: Unconditional Jump. Transfers control to
another part of the program. 4-byte address may be
entered in this form: 1234h:5678h, first value is a
segment second value is an offset.
Algorithm:
always jump
4.3.4 NOP: No Operation.
Algorithm:
Do nothing
6. Example:
; do nothing,3 times:
NOP
NOP
NOP
RET
C Z S O P A
unchanged
5. SPECIAL INSTRUCTION
In this project basically we don’t use many
instructions. Among them we use OUT instruction
specially because we use themfor port value.
5.1 OUT INSTRUCTION:
Operand:
im.byte,AL
im.byte,AX
DX,AL
DX, AX
Effect on Flags:
C Z S O P A
Unchanged
6. OUTCOME OF THE PRODUCT
Outcome of this project is knowing the basic of
Traffic light control and using the assembly
programming language syntax writing the logic of
Traffic light controlling and showit by a special
diagram.
7. WHAT’S NEW?
1. Use of graphical interface in assembly language.
2. Accessing .exe file using start instruction.
3. NOP instruction and its function
4.OUT instruction and its function
8. CONCLUSION
7. This is a program that maintain the traffic control. In
this project we compare different root vehicles
number. If the Light is Green of any root then that’s
root vehicles are running. If the Light is Red of any
root then that’s root vehicles are stop. If the Light is
Yellow ofany root then that’s root vehicles are waiting
for the next instructions.
REFERENCES
1. Google
2. Emu8086 Tutorial
3. Emu8086 Instruction Set
M M Rayhan Parvez
20%
Asif Ahmed
20%
Fazle Karim
20%
MD Tuhin Saud
20%
Jiya Uddin Ahmad
20%
CONTRIBUTION