-
;When debugging, you need to change the Chinese punctuation marks to English punctuation marks, otherwise the out of memory prompt message will appear.
data segment;Define data segments.
adr db 10,-31,-45,67,80,46,0,-31,0,77
num equ $-adr;num is the number of data DA1 DB 0; da1 is used to store the number of positive numbers, and the initial value is 0da2 db 0; da2 is used to store the number of negative numbers, and the initial value is 0da3 db 0; da3 is used to store the number of 0s, and the initial value is 0data ends
code segment;Define the paragraph.
assume ds:data,cs:codestart: mov ax,data;The data segment address is loaded into MOV DS, AX
lea si,adr
mov cx,num
mov al,0;AL clears.
don1:mov al,[si]
cmp al,0
jge don2
inc da2
jmp end0
don2:cmp al,0
jz don3
inc da1
jmp end0
don3:inc da3
end0:inc si
dec cx
jnz don1
mov ah,4ch
int 21h
code ends
end start
-
03hx4 =0ch, the interrupt service entry address of int 3 is stored in 0ch 0fh of the interrupt vector table, 4 units.
-
Second, the purpose of the experiment.
1. Understand the basic working principle of traffic light management.
2. Familiar with the working principle and application programming rights of the 8259A interrupt controller 3. Familiar with the various working methods and applications of the 8255A parallel interface 4. Learn the method of extending the simple IO interface in single-board mode to use two-color lights.
5. Further learn the programming technology of microprocessor.
-
What age, still playing 8086, it's really outdated! Consider using ARM or DSP to do this. At least 51.
-
This needs to be written in C, in fact, the principle is through the counter chip. Connection ports, specific examples are available online.
The main purpose of the mechanical principles course is to provide students with a more complete curriculum after completing the basic content of classroom teaching. >>>More
Abstract:The spot machining industry is undergoing structural changes, the design and improvement of process tooling has become a necessary condition for the survival and development of enterprises, and the design and improvement of process tooling directly affects the quality and performance of valve rocker arm shaft bearing. As a traditional and dynamic industry, the diesel engine industry has made rapid progress in the past ten years, and in the new economic era, the diesel engine industry has shown a new development trend, which has made new changes to other quality and performance. >>>More
Ah. That's a lot.
I have a database course design report.
First of all, think about what data is stored in memory and what data is stored in files. >>>More