-
室内设计及渲染动画的3D Max技术
资源介绍
求8255工作 要求8255工作在方式0 编写程序,分段函数的计算 1-50的奇数累加和 8253控制LED
在方式1,A口输入 Portk equ 1fh data segment data segment mov al ,00110101b
B口输出,PC6.PC7 Porta equ 1ch x db -25 result dw ? out 87h,al
输出,禁止B口中断 Portk equ 1dh y db ? cn equ 25 mov al,00h
Portk equ 1fh Portk equ 1dh data ends data ends out 81h,al
Porta equ 1ch ;初始化8255A code segment code segment mov al,50h
Portk equ 1dh mov al,92h assume cs:code,ds:data assume ds:data ,cs:code out 81h,al
Portk equ 1eh mov dx,portk start: mov ax,data start: mov ax,data mov al,01110111b
;初始化8255A mov dx,al mov ds,ax mov ds,ax out 87h,al
mov al,ob7h ;a口,b口,c口读写 mov al,x mov ax,0 mov al,00h
mov dx,portk mox dx,porta cmp al,0 mov cx,cn out 83h,al
out dx,al in al,dx jgp big mov bx,1 mov al,80h
mov al,09h mox dx,portb mov bl,-1 next: add ax,bx out 83h,al
out dx,al in al,dx jmp exit add bx,2
mov al,04h mox dx,portc big: je ee loop next
out dx,al mov al,data mov bl,1 mov result,ax
out dx,al jmp exit mov ah,4ch
ee: mov bl,0 int 21h
exit: mov y,bl code ends
mov ah,4ch end start
int 21h
- 上一篇: reflector7.3可用绿色版
- 下一篇: 3D MAX人形建模