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.

iodefsf.src 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. ;i/o registers
  19. ; mos 6522-a
  20. * =$1800
  21. ;ieee control port
  22. pb *=*+1 ; serial port
  23. pa1 *=*+1 ; unused port
  24. ddrb1 *=*+1 ; serial data dir
  25. ddra1 *=*+1 ; unused ddra
  26. t1lc1 *=*+1 ; timer 1 low counter
  27. t1hc1 *=*+1 ; timer 1 hi counter
  28. t1ll1 *=*+1 ; timer 1 low latch
  29. t1hl1 *=*+1 ; timer 1 hi latch
  30. t2lc1 *=*+1 ; timer 2 low counter
  31. t2hc1 *=*+1 ; timer 2 hi counter
  32. sr1 *=*+1 ; shift reg
  33. acr1 *=*+1 ; aux control reg
  34. pcr1 *=*+1 ;
  35. ifr1 *=*+1 ;
  36. ier1 *=*+1 ;
  37. pota1 *=*+1 ; d0=photo sensor ,d1-d7=unused
  38. ;
  39. ;
  40. ;
  41. ; bits for serial handshake
  42. ;
  43. datin =$1 ; data in line
  44. datout =$2 ; data out
  45. clkin =$4 ; clock in
  46. clkout =$8 ; clock out
  47. atna =$10 ; atna ack
  48. atn =$80 ; atn in
  49. ;
  50. ;
  51. led0 =8 ; act led
  52. led1 =0 ; no led
  53. ledprt=$1c00 ; on pb of $1c00
  54. ledout=$1c02 ; ddrb of $1c00 for output-led
  55. ;
  56. ;
  57. ;.end