You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

i_odef.sf 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. .PAGE 'I/ODEF.SF'
  2. ;*****************************
  3. ;* I/O DEFINITIONS *
  4. ;*****************************
  5. ;
  6. UNLSN =$3F ; IEEE UNLISTEN COMMAND
  7. UNTLK =$5F ; IEEE UNTALK COMMAND
  8. NOTRDY =$0 ; NOT READY
  9. TALKER =$80 ; IEEE TALKER FLAG
  10. LISNER =1 ; IEEE LISTENER FLAG
  11. EOIOUT =$80 ; TALK WITH EOI
  12. EOISND =$08 ; NOT(EOI) TO SEND
  13. EOI =$08 ; NOT(EOI) TO SEND
  14. RDYTLK =$88 ; TALK NO EOI
  15. RDYLST =$1 ; READY TO LISTEN
  16. RNDRDY =RDYTLK+RDYLST ; RANDOM CHNRDY
  17. RNDEOI =EOIOUT+RDYLST ; RANDOM W/ EOI
  18. .SKI 3
  19. ;I/O REGISTERS
  20. .SKIP
  21. ; MOS 6522-A
  22. .SKI
  23. * =$1800
  24. ;IEEE CONTROL PORT
  25. PB *=*+1 ; SERIAL PORT
  26. PA1 *=*+1 ; UNUSED PORT
  27. DDRB1 *=*+1
  28. DDRA1 *=*+1 ;IEEE DATA DIR
  29. T1LC1 *=*+1 ; TIMER 1 LOW COUNTER
  30. T1HC1 *=*+1 ; TIMER 1 HI COUNTER
  31. T1LL1 *=*+1 ; TIMER 1 LOW LATCH
  32. T1HL1 *=*+1 ; TIMER 1 HI LATCH
  33. T2LC1 *=*+1 ; TIMER 2 LOW COUNTER
  34. T2HC1 *=*+1 ; TIMER 2 HI COUNTER
  35. SR1 *=*+1 ; SHIFT REG
  36. ACR1 *=*+1 ; AUX CONTROL REG
  37. PCR1 *=*+1
  38. IFR1 *=*+1
  39. IER1 *=*+1
  40. ;
  41. ;
  42. ;
  43. ; BITS FOR SERIAL HANDSHAKE
  44. ;
  45. DATIN =$1 ;DATA IN LINE
  46. DATOUT =$2 ; DATA OUT
  47. CLKIN =$4 ;CLOCK IN
  48. CLKOUT =$8 ;CLOCK OUT
  49. ATNA =$10 ;ATNA ACK
  50. ATN =$80 ; ATN IN
  51. ;
  52. ;
  53. LED0 =8 ; ACT LED
  54. LED1 =0 ; NO LED
  55. LEDPRT=$1C00 ; ON PB OF $1C00
  56. LEDOUT=$1C02 ; DDRB OF $1C00 FOR OUTPUT-LED
  57. ;
  58. ;
  59. .END