home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / cpm / utils / asmutl / hd64180a.lbr / CORE.LZB / CORE.LIB
Encoding:
Text File  |  1991-08-04  |  2.0 KB  |  75 lines

  1. ;----------------------------------------------------------------
  2. ; Library of equates for CORE Board. This module sets up all
  3. ; the programs.
  4. ;
  5. ; Written By     Richard Holmes   04-02-86
  6. ; Last Update By Richard Holmes   18-01-87
  7. ;----------------------------------------------------------------
  8. ;
  9. true    equ    0ffffh
  10. false    equ    not true
  11. ;
  12. speed    equ    40            ; 4.0 mHz
  13. ;
  14. wr$en    equ    040h            ; Write enable bit.
  15. @clk    equ    020h            ; 58167 real time clock port
  16. ;
  17. @kbdr    equ    040h            ; Keyboard row port
  18. @kbdc    equ    041h            ; Keyboard column port
  19. @sch    equ    042h            ; Config switch
  20. @kbdmd    equ    043h            ; Keyboard mode port
  21. ;
  22. @lcdd    equ    044h            ; LCD data port
  23. @lcdc    equ    045h            ; LCD control port
  24. @ledd    equ    046h            ; LED data and memory control port
  25. @ledmd    equ    047h            ; LED Mode port
  26. ;
  27. @gp1a    equ    048h            ; General purpose port 1
  28. @gp1b    equ    049h            ; General purpose port 1
  29. @gp1c    equ    04ah            ; General purpose port 1
  30. @gp1md    equ    04bh            ; Control / mode
  31. ;
  32. @gp2a    equ    04ch            ; General purpose port 2
  33. @gp2b    equ    04dh            ; General purpose port 2
  34. @gp2c    equ    04eh            ; General purpose port 2
  35. @gp2md    equ    04fh            ; Control / mode
  36. ;
  37. @gp3a    equ    050h            ; General purpose port 3
  38. @gp3b    equ    051h            ; General purpose port 3
  39. @gp3c    equ    052h            ; General purpose port 3
  40. @gp3md    equ    053h            ; Control / mode
  41. ;
  42. @gp4a    equ    054h            ; General purpose port 4
  43. @gp4b    equ    055h            ; General purpose port 4
  44. @gp4c    equ    056h            ; General purpose port 4
  45. @gp4md    equ    057h            ; Control / mode
  46. ;
  47. @wdt    equ    058h            ; Watchdog timer port
  48. @buz    equ    05ch            ; Piezo buzzer port bit
  49. ;
  50. @data0    equ    010h            ; Data port 0
  51. @stat0    equ    @data0 + 1        ; Command port serial 1
  52. @data1    equ    @stat0 + 1        ; Data port 1
  53. @stat1    equ    @data1 + 1
  54. ;
  55. @ctc0    equ    000h
  56. @ctc1    equ    @ctc0 + 1
  57. @ctc2    equ    @ctc1 + 1
  58. @ctc3    equ    @ctc2 + 1
  59. ;
  60. lcdsiz    equ    80            ; LCD display size
  61. rxmsk    equ    01            ; Look at 01 for data received
  62. txmsk    equ    04            ; Use to send data out
  63. ;
  64. ;---------------- Ascii Equates ----------------
  65. ;
  66. cr    equ    0dh
  67. lf    equ    0ah
  68. bs    equ    08
  69. tab    equ    09
  70. esc    equ    01bh
  71. ;
  72. ; ---- The end ----
  73. ;
  74.  
  75.