Advertisement
Guest User

Untitled

a guest
Oct 6th, 2012
1,338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.67 KB | None | 0 0
  1.  
  2.  
  3.  
  4. .!.
  5. !!!!!.
  6. . '!!!!!.
  7. .!!!. '!!!!!.
  8. .!!!!!!!. '!!!!!.
  9. .!!!!!!!!!' .!!!!!!!.
  10. '!!!!!!!' .!!!!!!!!!'
  11. '!!!!!. '!!!!!!!'
  12. '!!!!!. '!!!'
  13. '!!!!!. '
  14. '!!!!!
  15. '!'
  16.  
  17.  
  18. M A C K A P A R M E D I A
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25. .---------------------.
  26. ----! DCPU-16 INFORMATION !-----------------------------------------------------
  27. '---------------------'
  28.  
  29. Name: Mackapar 3.5" Floppy Drive (M35FD)
  30. ID: 0x7349f615, version: 0x000b
  31. Manufactorer: 0x1eb37e91 (MACKAPAR)
  32.  
  33.  
  34.  
  35. .-------------.
  36. ----! DESCRIPTION !-------------------------------------------------------------
  37. '-------------'
  38.  
  39. The Mackapar 3.5" Floppy Drive is compatible with all standard 3.5" 1440 KB
  40. floppy disks. The floppies need to be formatted in 16 bit mode, for a total of
  41. 737,280 words of storage. Data is saved on 80 tracks with 18 sectors per track,
  42. for a total of 1440 sectors containing 512 words each.
  43. The M35FD works is asynchronous, and has a raw read/write speed of 30.7kw/s.
  44. Track seeking time is about 2.4 ms per track.
  45.  
  46.  
  47.  
  48. .--------------------.
  49. ----! INTERRUPT BEHAVIOR !------------------------------------------------------
  50. '--------------------'
  51.  
  52. A, B, C, X, Y, Z, I, J below refer to the registers on the DCPU
  53.  
  54. A: Behavior:
  55.  
  56. 0 Poll device. Sets B to the current state (see below) and C to the last error
  57. since the last device poll.
  58.  
  59. 1 Set interrupt. Enables interrupts and sets the message to X if X is anything
  60. other than 0, disables interrupts if X is 0. When interrupts are enabled,
  61. the M35FD will trigger an interrupt on the DCPU-16 whenever the state or
  62. error message changes.
  63.  
  64. 2 Read sector. Reads sector X to DCPU ram starting at Y.
  65. Sets B to 1 if reading is possible and has been started, anything else if it
  66. fails. Reading is only possible if the state is STATE_READY or
  67. STATE_READY_WP.
  68. Protects against partial reads.
  69.  
  70. 3 Write sector. Writes sector X from DCPU ram starting at Y.
  71. Sets B to 1 if writing is possible and has been started, anything else if it
  72. fails. Writing is only possible if the state is STATE_READY.
  73. Protects against partial writes.
  74.  
  75.  
  76. .-------------.
  77. ----! STATE CODES !-------------------------------------------------------------
  78. '-------------'
  79.  
  80. 0x0000 STATE_NO_MEDIA There's no floppy in the drive.
  81. 0x0001 STATE_READY The drive is ready to accept commands.
  82. 0x0002 STATE_READY_WP Same as ready, except the floppy is write protected.
  83.  
  84.  
  85.  
  86. .-------------.
  87. ----! ERROR CODES !-------------------------------------------------------------
  88. '-------------'
  89.  
  90. 0x0000 ERROR_NONE There's been no error since the last poll.
  91. 0x0001 ERROR_BUSY Drive is busy performing an action
  92. 0x0002 ERROR_NO_MEDIA Attempted to read or write with no floppy inserted.
  93. 0x0003 ERROR_PROTECTED Attempted to write to write protected floppy.
  94. 0x0004 ERROR_EJECT The floppy was removed while reading or writing.
  95. 0x0005 ERROR_BAD_SECTOR The requested sector is broken, the data on it is lost.
  96. 0xffff ERROR_BROKEN There's been some major software or hardware problem,
  97. try turning off and turning on the device again.
  98.  
  99.  
  100.  
  101. COPYRIGHT 1987 MACKAPAR MEDIA ALL RIGHTS RESERVED DO NOT DISTRIBUTE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement