home *** CD-ROM | disk | FTP | other *** search
- ;----------------------------------------------------------------
- ; Library of equates for CORE Board. This module sets up all
- ; the programs.
- ;
- ; Written By Richard Holmes 04-02-86
- ; Last Update By Richard Holmes 18-01-87
- ;----------------------------------------------------------------
- ;
- true equ 0ffffh
- false equ not true
- ;
- speed equ 40 ; 4.0 mHz
- ;
- wr$en equ 040h ; Write enable bit.
- @clk equ 020h ; 58167 real time clock port
- ;
- @kbdr equ 040h ; Keyboard row port
- @kbdc equ 041h ; Keyboard column port
- @sch equ 042h ; Config switch
- @kbdmd equ 043h ; Keyboard mode port
- ;
- @lcdd equ 044h ; LCD data port
- @lcdc equ 045h ; LCD control port
- @ledd equ 046h ; LED data and memory control port
- @ledmd equ 047h ; LED Mode port
- ;
- @gp1a equ 048h ; General purpose port 1
- @gp1b equ 049h ; General purpose port 1
- @gp1c equ 04ah ; General purpose port 1
- @gp1md equ 04bh ; Control / mode
- ;
- @gp2a equ 04ch ; General purpose port 2
- @gp2b equ 04dh ; General purpose port 2
- @gp2c equ 04eh ; General purpose port 2
- @gp2md equ 04fh ; Control / mode
- ;
- @gp3a equ 050h ; General purpose port 3
- @gp3b equ 051h ; General purpose port 3
- @gp3c equ 052h ; General purpose port 3
- @gp3md equ 053h ; Control / mode
- ;
- @gp4a equ 054h ; General purpose port 4
- @gp4b equ 055h ; General purpose port 4
- @gp4c equ 056h ; General purpose port 4
- @gp4md equ 057h ; Control / mode
- ;
- @wdt equ 058h ; Watchdog timer port
- @buz equ 05ch ; Piezo buzzer port bit
- ;
- @data0 equ 010h ; Data port 0
- @stat0 equ @data0 + 1 ; Command port serial 1
- @data1 equ @stat0 + 1 ; Data port 1
- @stat1 equ @data1 + 1
- ;
- @ctc0 equ 000h
- @ctc1 equ @ctc0 + 1
- @ctc2 equ @ctc1 + 1
- @ctc3 equ @ctc2 + 1
- ;
- lcdsiz equ 80 ; LCD display size
- rxmsk equ 01 ; Look at 01 for data received
- txmsk equ 04 ; Use to send data out
- ;
- ;---------------- Ascii Equates ----------------
- ;
- cr equ 0dh
- lf equ 0ah
- bs equ 08
- tab equ 09
- esc equ 01bh
- ;
- ; ---- The end ----
- ;
-