home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / CPM / TRS-80 / TRSURT.ASM < prev    next >
Assembly Source File  |  2000-06-30  |  738b  |  33 lines

  1. ;
  2. ;    INITUART.ASM
  3. ;
  4. ;Program for initiating the TRS-80 Model I UART
  5. ;(RS232C board) so that MODEM, MBOOT, MTN etc will
  6. ;work properly. You can include this in MODEM or
  7. ;MBOOT if you wish.
  8. ;
  9. MRSPT    EQU    0E8H    ;master reset port
  10. BDRTPT    EQU    0E9H    ;baud rate port
  11. CTRLPT    EQU    0EAH    ;UART control port
  12. ;
  13. BD300    EQU    055H    ;300 baud
  14. CTWD    EQU    06DH    ;8 bit word, 1 stop bit
  15.             ;no parity, set DTR
  16. ;
  17. ;The next three lines are only for information.
  18. DTPT    EQU    0EBH    ;data port
  19. RCVMSK    EQU    O80H    ;receive status mask
  20. TRNMSK    EQU    040H    ;transmit status mask
  21. ;
  22.     ORG    04300H    ;start of TPA
  23. ;
  24.     OUT    MRSPT    ;reset UART, doesn't matter
  25.             ;what is in A
  26.     MVI    A,BD300
  27.     OUT    BDRTPT    ;set baud rate at 300
  28.     MVI    A,CTWD
  29.     OUT    CTRLPT    ;set control port
  30.     JMP    04200H    ;do a warm boot
  31. ;
  32.     END
  33.