⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 2.asm

📁 微机原理——接口应用编程源码
💻 ASM
字号:
stack segment stack
dw 64 dup(?)
stack ends
data segment
table db 40h,41h,49h,4eh,20h,00h
data ends
code segment
assume cs:code, ds:data

start:mov ax,data
mov ds,ax
push ds

mov ax,0000h
mov ds,ax
mov ax,offset IRQ6
add ax,2000h
mov si,0038h
mov [si],ax

mov ax,0000h
mov si,003ah
mov [si],ax
pop ax

mov al,13h
out 20h,al
mov al,08h
out 21h,al
mov al,09h
out 21h,al
mov al,7fh
out 21h,al
sti

a1:mov cx,0007h
mov ax,010dh
int 10h

a2:mov ah,06h
mov bx,offset table
int 10h

call delly
loop a2
jmp a1
IRQ6:sti

call delly

mov ax,0136h
int 10h
mov al,20h
out 20h,al
IRET
delly proc
push ax
push cx
mov cx,1000h
a:mov ax,1000h
pop cx
pop ax
delly endp
code ends
end start

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -