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 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. .PAGE 'I/ODEF'
  2. ;*****************************
  3. ;* I/O DEFINITIONS *
  4. ;*****************************
  5. ;
  6. UNLSN =$3F ; IEEE UNLISTEN COMMAND
  7. NOTRDY =$0 ; NOT READY
  8. TALKER =$80 ; IEEE TALKER FLAG
  9. LISNER =1 ; IEEE LISTENER FLAG
  10. EOIOUT =$80 ; TALK WITH EOI
  11. EOISND =$08 ; NOT(EOI) TO SEND
  12. RDYTLK =$88 ; TALK NO EOI
  13. RDYLST =$1 ; READY TO LISTEN
  14. RNDRDY =RDYTLK+RDYLST ; RANDOM CHNRDY
  15. RNDEOI =EOIOUT+RDYLST ; RANDOM W/ EOI
  16. .SKI 3
  17. ;I/O REGISTERS
  18. .SKIP
  19. ; MOS 6532-1
  20. .SKI
  21. * =$200
  22. IEEEDI *=*+1 ;IEEE DATA IN
  23. PADD1 *=*+1 ;IEEE DATA DIR
  24. IEEEDO *=*+1 ;IEEE DATA OUT
  25. PBDD1 *=*+1 ;IEEE DATA OUT DIR
  26. .SKIP2
  27. ; MOS 6532-2
  28. .SKIP
  29. * =$280 ;IEEE CONTROL PORT
  30. PAD2 *=*+1
  31. ATNA =1
  32. DACO =2 ;(INVERTED)
  33. RFDO =4
  34. EOIO =8
  35. DAVO =16
  36. EOII =32
  37. DAVI =64
  38. ATNI =128 ;(INVERTED)
  39. PADD2 *=*+1
  40. PBD2 *=*+1
  41. ;BITS 0-2 =DEVICE # SELECT
  42. LED1 =$8 ;ACTIVE LED 1
  43. LED0 =$10 ;ACTIVE LED 0
  44. ERRLED =32 ;HARDWARE INIT ERR LED
  45. NDACI =64
  46. NRFDI =128
  47. PBDD2 *=*+1
  48. ATNND *=*+1 ;ATN IS IRQ CAUSING
  49. ATNPD *=*+1
  50. ATNNE *=*+1
  51. ATNPE *=*+1
  52. .END