Blame | Last modification | View Log | Download | RSS feed
ifndef stddef87inc ; avoid multiple inclusionstddef87inc equ 1savelisting off ; no listing over this file;****************************************************************************;* *;* AS 1.42 - File STDDEF87.INC *;* *;* Contains Register and Memory Addresses for TLCS-870 Processors *;* Port and Register Namen according to Toshiba Convention *;* *;****************************************************************************if (MOMCPU<>556032)&&(MOMCPU<>556064)&&(MOMCPU<>556096)&&(MOMCPU<>556144)fatal "wrong target set: only 87C00, 87C20, 87C40 oder 87C70 supported"endifif MOMPASS=1message "TLCS-870 Address Definitions"message "(C) 1994 Alfred Arnold"message "Target: \{MOMCPU}"endif;----------------------------------------------------------------------------; PortsP0 equ 00hP1 equ 01hP2 equ 02hP3 equ 03hP4 equ 04hP5 equ 05hP6 equ 06hif MOMCPU<>87C20hP7 equ 07hendifif MOMCPU=87C70hP8 equ 08hP9 equ 09hendifP0CR equ 0AhP1CR equ 0BHif MOMCPU=87C70hP4CR equ 0Chendifif (MOMCPU=87C00h)||(MOMCPU=87C40h)P6CR equ 0ChP7CR equ 0Dhendifif MOMCPU=87C20hP6CR equ 29hendif; Keyboard Interfaceif MOMCPU=87C70hKEYDR equ P4KEYSR equ 2Ahendif; Comparatorsif MOMCPU=87C70hCMPCR equ 0EhCMPDR equ 0Fhendif; Timers: a bit messyif MOMCPU=87C70hTREG1 equ 10hTREG1L equ TREG1TREG1H equ TREG1+1elseifTREG1A equ 10hTREG1AL equ TREG1ATREG1AH equ TREG1A+1TREG1B equ 12hif MOMCPU<>87C20hTREG1BL equ TREG1BTREG1BH equ TREG1B+1elseifTC1CR equ 13hendifendifif MOMCPU=87C20hTREG5 equ 1DhTC5CR equ 1EhTREG6 equ 16hTC6CR equ 17helseifTC1CR equ 14hTC2CR equ 15hif MOMCPU<>87C70hTREG2 equ 16hTREG2L equ TREG2TREG2H equ TREG2+1endifendifTREG3A equ 18hTREG3B equ 19hTC3CR equ 1AhTREG4 equ 1BhTC4CR equ 1Ch; Serial: not that simple eitherif (MOMCPU=87C00h)||(MOMCPU=87C40h)SIO1SR equ 20hif MOMCPU=87C40hSIO1CR1 equ 20hSIO1CR2 equ 21hSIO2CR1 equ 22hSIO2CR2 equ 23hSIO2SR equ 22helseifSIO2SR equ 21hSIO1CR equ 20hSIO2CR equ 21hSIOBCR equ 22hSIOWCR equ 23hendifSIO1_BUFFER equ 0FF0hSIO2_BUFFER equ 0FF8helseifSIOSR equ 20hSIOCR1 equ 20hSIOCR2 equ 21hSIO_BUFFER equ 0FF0hendif; High Speed Serialif MOMCPU=87C70hHSOSR equ 24hHSOCR equ 24hHSO_BUFFER equ 0FF8Hendif; AD Converterif MOMCPU=87C40hADCCR equ 0EhADCDR equ 0Fhendif; LCDif MOMCPU=87C20hLCDCR equ 28hLCD_BUFFER equ 0F80hendif; Vacuum Fluorescent Displayif MOMCPU=87C70hVFTCR1 equ 28hVFTSR equ 29hVFTCR2 equ 29hendif; WatchdogWDTCR1 equ 34hWDTCR2 equ 35h; System ControlTBTCR equ 36hSYSCR1 equ 38hSYSCR2 equ 39hGPSW equ 3FhGRBS equ 3Fh; InterruptsEINTCR equ 37hEIR equ 3AhEIRL equ EIREIRH equ EIR+1IL equ 3chILL equ EIRILH equ EIR+1; Fixed Memory AreasIRAM equ 000C0H ; Internal RAM 256/512/512/512 Bytesif MOMCPU=87C00hIRAMEND equ 0013FHelseifIRAMEND equ 0023FHendifIEAREA equ 0FFC0H ; Interrupt Entry AreaIEAREAEND equ 0FFFFHIROM equ 0E000H ; Internal (P)ROM 8KIROMEND equ 0FFFFHEXTMEM equ IRAMEND+1 ; External MemoryMEMEND equ IROM-1;---------------------------------------------------------------------------restore ; allow listing againendif ; stddef87inc