Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.2 KiB

  1. ;/************************************************************************
  2. ;* *
  3. ;* < SYSTEM Application Program > *
  4. ;* *
  5. ;* *
  6. ;* COPYRIGHT (C) NEC CORPORATION 1989 *
  7. ;* *
  8. ;* NEC CONFIDENTAL AND PROPRIETARY *
  9. ;* *
  10. ;* All rights reserved by NEC Corporation. *
  11. ;* this program must be used solely for *
  12. ;* the purpose for which it was furnished *
  13. ;* by NEC Corporation. No part of this program *
  14. ;* may be reproduced or disclosed to others, *
  15. ;* in any from, without the prior written *
  16. ;* permission of NEC Corporation. *
  17. ;* Use of copyright notice does not evidence *
  18. ;* publication of this program. *
  19. ;* *
  20. ;*************************************************************************/
  21. ;------------------------------ Module Header ------------------------------;
  22. ; Module Name: Timer interface procedures
  23. ;
  24. ; Created: 03-08-90 NEC Y.Ueno
  25. INTMASK EQU 2
  26. TIMODESET EQU 77H
  27. TICNTSET EQU 71H
  28. EOI EQU 20H
  29. EOIPORT EQU 0
  30. TIMERMASK EQU 01H
  31. mask macro code
  32. cli ; mask timer int
  33. in al,02h
  34. delay 8259,I-O
  35. or al,code
  36. out 02h,al
  37. jmp $+2
  38. sti
  39. endm
  40. unmask macro code
  41. cli ; mask timer int
  42. in al,02h
  43. delay 8259,I-O
  44. and al,not code
  45. out 02h,al
  46. jmp $+2
  47. sti
  48. endm
  49.