answersLogoWhite

0

.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
4y ago

What else can I help you with?

Related Questions

What is a sentace for Assembly?

Assembly language allows programmers to write instructions using mnemonic codes that are translated into machine code by an assembler. It provides more control over hardware resources and is closer to the computer's architecture compared to high-level languages.Programming in assembly requires a deep understanding of the underlying hardware and is often used for tasks that require precise control over system resources.


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.


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 is assembly language and how is it used in computer programming?

Assembly language is a low-level programming language that uses mnemonic codes to represent machine instructions. It is used in computer programming to directly communicate with the computer's hardware and control its operations. Programmers write code in assembly language to perform tasks that require precise control over the hardware, such as device drivers and operating systems.


What is assembly language used for in computer programming?

Assembly language is used in computer programming to write low-level instructions that directly correspond to the machine code of a computer's processor, allowing for precise control over hardware and efficient execution of tasks.


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 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.


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 is assembly code and how is it used in computer programming?

Assembly code is a low-level programming language that uses mnemonic instructions to communicate directly with a computer's hardware. It is used in computer programming to write programs that are more efficient and faster than those written in higher-level languages. Programmers use assembly code to control hardware components and optimize performance in tasks that require precise control over the computer's resources.


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.