8086中斷:
| 內(nèi)中斷 | CPU內(nèi)部產(chǎn)生的中斷 |
| 外中斷 | 外設(shè)產(chǎn)生的中斷 |
內(nèi)中斷:
| 內(nèi)中斷類型 | 中斷號(hào) |
| 除法錯(cuò)誤 | 0 |
| 單步執(zhí)行 | 1 |
| into指令 | 4 |
| int 指令 | 指令格式:int n,n為字節(jié)型立即數(shù) |
外中斷:
| 內(nèi)中斷類型 | 中斷號(hào) |
| 可屏蔽中斷 | |
| 不可屏蔽中斷 | 2 |
中斷向量表:
8086中中斷向量表只能位于0000:0000 ~ 0000:03FF.
| 0x00000 | ip0 |
| 0x00002 | CS0 |
| 0x00004 | IP1 |
| 0x00006 | CS1 |
| ... | |
| ... | |
| 0x003FC | IP255 |
| 0x003FE | CS255 |
程序?qū)嵗?
org 0x7c00mov ax,0x0mov ds,axmov ax,showmov Word [ds:0x0],ax //設(shè)置0號(hào)中斷向量mov word [ds:0x2],0x0int 0show: //顯示字母'h' mov ax,0xb800 mov es,ax mov byte [es:0],'h' jmp $times 510-($-$$) db 0db 0x55,0xaa
新聞熱點(diǎn)
疑難解答
圖片精選
網(wǎng)友關(guān)注