Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MAKEING PROJECT OF EMU8086. The project is: TRAFFIC LIGHTS code. prepare a documentation including: 1-Full explanation for each line of the code below. 2- A

MAKEING PROJECT OF EMU8086. The project is: TRAFFIC LIGHTS code.

prepare a documentation including: 1-Full explanation for each line of the code below. 2- A documentation of 5-10 pages explaining project.

In the documentation make explanation of detail of the code and put some screenshots from the emu8086 to explain the program.

PLEASE WRITE EVERTHING AND PUT A SCREENSHOOT OF THE EMU8086 CODES AND EXPLAIN THEM.

THANK YOU

this is the code you will explain it:

; Traffic ligts test 2 for

; c:\emu8086\devices\Traffic_Lights.exe

; This is just an example of how to set the lights,

; better if you run it in step-by-step mode.

; DO NOT RUN AT MAXIMUM SPEED, DO NOT USE REAL CARS.

;)

#start=Traffic_Lights.exe#

name "traffic2"

yellow_and_green equ 0000_0110b

red equ 0000_0001b

yellow_and_red equ 0000_0011b

green equ 0000_0100b

all_red equ 0010_0100_1001b

start:

nop

; 0,1,2

mov ax, green

out 4, ax

mov ax, yellow_and_green

out 4, ax

mov ax,red

out 4, ax

mov ax, yellow_and_red

out 4, ax

; 3,4,5

mov ax, green << 3

out 4, ax

mov ax, yellow_and_green << 3

out 4, ax

mov ax,red << 3

out 4, ax

mov ax, yellow_and_red << 3

out 4, ax

; 6,7,8

mov ax, green << 6

out 4, ax

mov ax, yellow_and_green << 6

out 4, ax

mov ax,red << 6

out 4, ax

mov ax, yellow_and_red << 6

out 4, ax

; 9,A,B

mov ax, green << 9

out 4, ax

mov ax, yellow_and_green << 9

out 4, ax

mov ax,red << 9

out 4, ax

mov ax, yellow_and_red << 9

out 4, ax

; all

mov ax, all_red

out 4, ax

mov ax, all_red << 1 ; all yellow

out 4, ax

mov ax, all_red << 2 ; all green :)

out 4, ax

jmp start

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Exercise #3. It is desired to load A[3] into $8. In other words, S8

Answered: 1 week ago