.8086

.MODEL large

EXTRN call_int_to_vpu:BYTE

PUBLIC dummy_interrupt_mask_handler_
PUBLIC dummy_interrupt_mask_handler_end_
PUBLIC dummy_interrupt_mask_handler_cont_
PUBLIC dummy_interrupt_mask_handler_cont_end_
PUBLIC dummy_interrupt_mask_handler_prec_
PUBLIC dummy_interrupt_mask_handler_prec_end_

main_TEXT               SEGMENT BYTE PUBLIC USE16 'CODE'

dummy_interrupt_mask_handler_ proc far
  push ax
  mov ax, 0xFF
  call far ptr call_int_to_vpu
  mov al, 0x20
  out 0x20, al
  pop ax
iret

dummy_interrupt_mask_handler_ endp

dummy_interrupt_mask_handler_end_ proc far
dummy_interrupt_mask_handler_end_ endp

dummy_interrupt_mask_handler_cont_ proc far
  push ax
  mov ax, 0xFF
  call far ptr call_int_to_vpu
  pop ax
  jmpf far ptr call_int_to_vpu
dummy_interrupt_mask_handler_cont_ endp

dummy_interrupt_mask_handler_cont_end proc far
dummy_interrupt_mask_handler_cont_end endp

dummy_interrupt_mask_handler_prec_ proc far
  pushf
  call far ptr call_int_to_vpu
  push ax
  mov ax, 0xFF
  call far ptr call_int_to_vpu
  pop ax
  iret
dummy_interrupt_mask_handler_prec_ endp

dummy_interrupt_mask_handler_prec_end proc far
dummy_interrupt_mask_handler_prec_end endp

main_TEXT ENDS

END

