answersLogoWhite

0


Best Answer

.STACK 100

.DATA

CWR EQU 0FFC6 H

PORTA EQU 0FFC0 H

PORTB EQU 0FFC2 H

PORTC EQU 0FFC4 H

.CODE

START:

MOV AX,@DATA

MOV DS,AX

MOV AL,80H

MOV DX,CWR

OUT DX,AL

MOV AL,F3H

MOV DX,PORTC

OUT DX,AL

MOV AL,FFH

MOV DX,PORTA

OUT DX,AL

MOV AL,FFH

MOV DX,PORTB

OUT DX,AL

MOV CL,03H

CALL DELAY

TOP:

MOV AL,EEH

MOV DX,PORTA

OUT DX,AL

MOV AL,EEH

MOV DX,PORTB

OUT DX,AL

MOV CL,02H

CALL DELAY

MOV AL,FCH

MOV DX,PORTC

OUT DX,AL

MOV AL,7DH

MOV DX,PORTA

OUT DX,AL

MOV AL,57H

MOV DX,PORTB

OUT DX,AL

MOV CL,15H

CALL DELAY

MOV AL,E7H

MOV DX,PORTB

OUT DX,AL

MOV AL,FDH

MOV DX,PORTA

OUT DX,AL

MOV AL,EDH

MOV DX,PORTA

OUT DX,AL

MOV CL,02H

CALL DELAY

MOV AL,F7H

MOV DX,PORTB

OUT DX,AL

MOV AL,F0H

MOV DX,PORTC

OUT DX,AL

MOV AL,F1H

MOV DX,PORTA

OUT DX,AL

MOV CL,15H

CALL DELAY

MOV AL,FBH

MOV DX,PORTA

OUT DX,AL

MOV AL,FBH

MOV DX,PORTB

OUT DX,AL

MOV AL,50H

MOV DX,PORTC

OUT DX,AL

MOV CL,15H

CALL DELAY

MOV AL,FEH

MOV DX,PORTA

OUT DX,AL

MOV AL,FEH

MOV DX,PORTB

OUT DX,AL

MOV CL,03H

CALL DELAY

MOV AL,FFH

MOV DX,PORTA

OUT DX,AL

MOV AL,AFH

MOV DX,PORTC

OUT DX,AL

MOV AL,EEH

MOV DX,PORTA

OUT DX,AL

MOV AL,EEH

MOV DX,PORTB

OUT DX,AL

MOV CL,02H

CALL DELAY

MOV AL,BFH

MOV DX,PORTA

OUT DX,AL

MOV AL,BFH

MOV DX,PORTB

OUT DX,AL

MOV CL,15H

CALL DELAY

JMP TOP

DELAY:

MOV BX,10H

D1:

MOV CX,0FFFFH

D2:

LOOP D2

DEC BX

JNZ D1

INT 03H

END START

User Avatar

Tedo Black

Lvl 2
3y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

That's not a question.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write Assembly code for traffic light control system using 8086?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is write assembly cache?

the goal of write assembly cache is to assemble writes so that they can be transmitted to memory in an orderly way.


What organ systems do you use to write your name?

You use the nervous system. Your brain is the main organ of the nervous system or it is known as the control center of the nervous system.


How do you write an assembly language program to find the sum of n numbers using array?

write an assembly language program to find sum of N numbers


What is the purpose of a control unit?

A control unit (which is part of the computer processor) directs the flow of information. Think of it like a "traffic guard" if you may- directing traffic so the vehicles go to their destination quickly and safely. This is more or less what a control unit does, it controls where every bit of data goes.


What are the powers of the assembly?

The Maryland General Assembly is the state's legislature, made up of two chambers. The function of the Assembly is to write state laws.


How do you write assembly language?

Any text-editor will do.


Write a program in 8086 assembly language to draw a circle?

You need an 8086 assembly language pencil.


How does a microprocessor work in a microwave?

embedded control computerIt is easier to write a computer program handling all these various functions than to design a dedicated hardware control system to do it.


What are the powers of the Maryland general Assembly?

The Maryland General Assembly is the state's legislature, made up of two chambers. The function of the Assembly is to write state laws.


What is the write it once system?

The Pegboard system is referred to as the write-it-once system.


List three signals that make up the control bus?

Assuming you mean on a microprocessing system, it can be like read write and clock etc....


How can embedded the assembly language in c?

Compiler-dependent, in real life you should never do that, write separated Assembly modules instead.