mov dx,pa8255 mov al,7fh out dx,al
mov ah,7fh mov cx,0008h L1:cmp cx,0000h jnz L0
mov dx,p8259com1 mov al,0ffh out dx,al sti hlt L0:sti jmp L1
interrupt :stc rcr ah,1 mov al,ah mov dx,pa8255 out dx,al dec cx
mov dx,p8259com0 mov al,20h out dx,al iret code ends end start