montyio.lib 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. ; I/O port definitions for Monroe "Monty" microcomputer
  2. ;
  3. IO$FDCTL EQU 0C0H ; Floppy external control
  4. IO$FDST EQU 0B0H ; Floppy status
  5. IO$FDCMD EQU 0B0H ; Floppy command
  6. IO$FDTRK EQU 0B1H ; Floppy track register
  7. IO$FDSEC EQU 0B2H ; Floppy sector register
  8. IO$FDATA EQU 0B3H ; Floppy data register
  9. FSBUSY EQU 1 ; FD busy
  10. FSDRQ EQU 2 ; Data request
  11. FSDLOST EQU 4 ; Data lost
  12. FSCRC EQU 8 ; CRC error
  13. FSRNF EQU 16 ; Record not found
  14. FSWFLT EQU 32 ; Write fault
  15. FSWPROT EQU 64 ; Write protect
  16. FSNRDY EQU 128 ; Not ready
  17. FDSEL EQU 00FH ; Select bits
  18. FDSIDE EQU 010H ; Side select
  19. FDMON EQU 020H ; Motor on
  20. FDPREC EQU 040H ; Precompensation on
  21. FDENAB EQU 080H ; FD 179X enable (un-reset)
  22. FCRZS EQU 000H ; Return to zero seek
  23. FCSEEK EQU 018H ; Seek
  24. FCSTIN EQU 038H ; Step in
  25. FCSTOT EQU 078H ; Step out
  26. FCREAD EQU 080H ; Read sector
  27. FCWRIT EQU 0A0H ; Write sector
  28. FCRADR EQU 0C0H ; Read address
  29. FCFMT EQU 0F4H ; Format track
  30. FCFINT EQU 0D0H ; Force interrupt
  31. FCVERF EQU 004H ; Verify option
  32. FCSID0 EQU 002H ; Verify side 0
  33. IO$DMA EQU 0ACH ; DMA control register
  34. IO$PMAPA EQU 0C4H ; Program map A base
  35. IO$PMAPB EQU 0C5H ; Program map B base
  36. IO$DMAPA EQU 0C6H ; DMA map A base
  37. IO$DMAPB EQU 0C7H ; DMA map B base
  38. IO$HSTRT EQU 0D8H ; Hi-res start
  39. IO$HCOL EQU 0D4H ; Hi-res color
  40. IO$SYS EQU 0C8H ; Map and system control
  41. IO$CRTA EQU 0B8H ; CRT register select
  42. IO$CRTD EQU 0B9H ; CRT data register
  43. IO$PIOAD EQU 0B4H ; PIO A data
  44. IO$PIOAC EQU 0B5H ; PIO A command
  45. IO$DRTAD EQU 0A0H ; DART A (printer) data
  46. IO$DRTAC EQU 0A1H ; DART A command
  47. IO$DRTBD EQU 0A2H ; DART B (keyboard) data
  48. IO$DRTBC EQU 0A3H ; DART B command
  49. IO$SIOAD EQU 0A4H ; SIO A (comm) data
  50. IO$SIOAC EQU 0A5H ; SIO A command
  51. IO$SIOBD EQU 0A6H ; SIO B (RS-232C) data
  52. IO$SIOBC EQU 0A7H ; SIO B command
  53. IO$CTC0 EQU 0A8H ; CTC CHANNEL 0 - Communications baud rate
  54. IO$CTC1 EQU 0A9H ; CTC CHANNEL 1 - AUX RS-232C baud rate
  55. IO$CTC2 EQU 0AAH ; CTC CHANNEL 2 - Printer baud rate
  56. IO$CTC3 EQU 0ABH ; CTC CHANNEL 3 - Real-Time Clock
  57.