王爽彙編語言 實驗17 中斷例程測試程序
一、實驗要求
測試實驗17中斷例程
二、測試思路
1、編寫程序A,實現將顯存中第一屏4000個字節(8個扇區)寫入軟盤
2、編寫程序B,實現將軟盤中8個扇區的數據讀出到顯存第一屏中
3、運行實驗17的中斷安裝程序,然後運行程序A,清屏後運行程序B。正常狀況下屏幕內容恢復
三、詳細設計
1、程序A
assume cs:code
code segment
start:
mov ax,0b800h
mov es,ax
mov si,0
mov ah,1
mov dx,0
mov al,8
mov bl,0
int 7ch
mov ax,4c00h
int 21h
code ends
end start
2、程序B
assume cs:code
code segment
start:
mov ax,0b800h
mov es,ax
mov si,0
mov ah,0
mov dx,0
mov al,8
mov bl,0
int 7ch
mov ax,4c00h
int 21h
code ends
end start
四、測試結果
待補充