home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / cpm / utils / asmutl / hd64180b.lbr / IOMAP.LZB / IOMAP.LIB
Encoding:
Text File  |  1991-08-04  |  3.3 KB  |  97 lines

  1. ;----------------------------------------------------------------
  2. ;    Port Equates for HD64B180 CPU
  3. ;
  4. ; This library is used to talk to ports in the CPU chip.
  5. ;
  6. ;    Written     by Richard Holmes    27-05-87
  7. ;    Last Update by Richard Holmes    27-05-87
  8. ;----------------------------------------------------------------
  9. ;
  10. base    equ    0        ; Base port address
  11. ;
  12. ; Async. Serical Communication Interface equstes
  13. ;
  14. cntla0    equ    base + 000h    ; ASCI Control register A ch 0
  15. cntla1    equ    base + 001h    ; ASCI Control register A ch 1
  16. cntlb0    equ    base + 002h    ; ASCI Control register B ch 0
  17. cntlb1    equ    base + 003h    ; ASCI Control register B ch 1
  18. stat0    equ    base + 004h    ; ASCI status register ch 0
  19. stat1    equ    base + 005h    ; ASCI status register ch 1
  20. tdr0    equ    base + 006h    ;      transmit data register ch 0
  21. tdr1    equ    base + 007h    ;      transmit data register ch 1
  22. rdr0    equ    base + 008h    ;      receive data register ch 0
  23. rdr1    equ    base + 009h    ;      receive data register ch 1
  24. ;
  25. ; Clocked Serial I/O Ports
  26. ;
  27. cntr    equ    base + 00ah    ; CSIO Control 
  28. trdr    equ    base + 00bh    ; CSIO transmit / receive data
  29. ;
  30. ; Timers ports
  31. ;
  32. tmdr0l    equ    base + 00ch    ; Timer data register ch 0 low
  33. tmdr0h    equ    base + 00dh    ; Timer data register ch 0 high
  34. rldr0l    equ    base + 00eh    ; Reload register ch 0 low
  35. rldr0h    equ    base + 00fh    ; Reload register ch 0 high
  36. tcr    equ    base + 010h    ; Timer control register
  37. ;
  38. tmdr1l    equ    base + 014h    ; Timer data register ch 1 low
  39. tmdr1h    equ    base + 015h    ; Timer data register ch 1 high
  40. rldr1l    equ    base + 016h    ; Reload register ch 1 low
  41. rldr1h    equ    base + 017h    ; Reload register ch 1 high
  42. ;
  43. ; DMA Channels.
  44. ;
  45. sar0l    equ    base + 020h    ; DMA Source address ch 0 low
  46. sar0h    equ    base + 021h    ; DMA Source address ch 0 high
  47. sar0b    equ    base + 022h    ; DMA Source address ch 0 B
  48. dar0l    equ    base + 023h    ; DMA Source address ch 1 low
  49. dar0h    equ    base + 024h    ; DMA Source address ch 1 high
  50. dar0b    equ    base + 025h    ; DMA Source address ch 1 B
  51. bcr0l    equ    base + 026h    ; DMA byte count ch 0 low
  52. bcr0h    equ    base + 027h    ; DMA byte count ch 0 low
  53. mra1l    equ    base + 028h    ; DMA memory addres reg. ch 1 low
  54. mra1h    equ    base + 029h    ; DMA memory addres reg. ch 1 high
  55. mra1b    equ    base + 02Ah    ; DMA memory addres reg. ch 1 B
  56. ;
  57. iar1l    equ    base + 02bh    ; DMA address reg. ch 1 low
  58. iar1h    equ    base + 02ch    ; DMA address reg. ch 1 high
  59. ;
  60. bcr1l    equ    base + 02eh    ; DMA byte count reg. 1 low
  61. bcr1h    equ    base + 02fh    ; DMA byte count reg. 1 high
  62. dstat    equ    base + 030h    ; DMA Status reg.
  63. dmode    equ    base + 031h    ; DMA Mode reg.
  64. dcntl    equ    base + 032h    ; DMA wait/control reg.
  65. ;
  66. ; Interrupt control ports.
  67. ;
  68. il    equ    base + 033h    ; IL register (Intrrupt vector reg)
  69. itc    equ    base + 034h    ; INT / TRAP control register
  70. rcr    equ    base + 036h    ; Refresh control register
  71. ;
  72. ; MMU 
  73. ;
  74. cbr    equ    base + 038h    ; MMU Common base register
  75. bbr    equ    base + 039h    ; MMU Bank base register
  76. cbar    equ    base + 03ah    ; MMU Commmmon/bank area register
  77. ;
  78. icr    equ    base + 03fh    ; I/O control register
  79. ;
  80. ; A library of hardware equates for the DINOS PCB
  81. ;
  82. wdt    equ    085h
  83. ;
  84. kbd$wr    equ    086h
  85. kbd$rd1    equ    087h
  86. kbd$rd2    equ    088h
  87. led$dat    equ    089h
  88. led$adr    equ    08ah
  89. ip$rd    equ    08bh
  90. gp$out    equ    08ch
  91. lcd$wr    equ    08dh
  92. lcd$rd    equ    08eh
  93. cp$dat    equ    08fh
  94. ;
  95. ; ---- End ----
  96. ;
  97.