Guest User

Untitled

a guest
Oct 4th, 2012
14,675
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 Suspended Particle Exciter Display, Rev 3 (SPED-3)
  30. ID: 0x42babf3c, version: 0x0003
  31. Manufactorer: 0x1eb37e91 (MACKAPAR)
  32.  
  33.  
  34.  
  35. .-------------.
  36. ----! DESCRIPTION !-------------------------------------------------------------
  37. '-------------'
  38.  
  39. The Mackapar Suspended Particle Exciter Display, Rev 3 ("the device") is a 3D
  40. vector display unit. Straight lines are drawn between consecutive vertices in a
  41. constant loop, with customizable colors per vertex. The effect is similar to a
  42. free floating 3D model.
  43. The area of the projected model is about 1x1x1 meters, and projection occurs
  44. 1.5 meters above the device.
  45. The emitters are capable to rotate around the Z axis at 50 degrees per second,
  46. allowing for easy animation of projected models.
  47. Up to 128 lines may be projected, but the more lines are projected, the more
  48. severe the flickering gets.
  49.  
  50.  
  51.  
  52. .--------------------.
  53. ----! INTERRUPT BEHAVIOR !------------------------------------------------------
  54. '--------------------'
  55.  
  56. A, B, C, X, Y, Z, I, J below refer to the registers on the DCPU
  57.  
  58. A: Behavior:
  59.  
  60. 0 Poll device. Sets B to the current state (see below) and C to the last error
  61. since the last device poll.
  62.  
  63. 1 Map region. Sets the memory map offset to X, and the total number of vertices
  64. to render to Y. See below for the encoding information.
  65.  
  66. 2 Rotate device. Sets the target rotation for the device to X%360 degrees.
  67.  
  68.  
  69.  
  70. .-----------------.
  71. ----! VERTEX ENCODING !---------------------------------------------------------
  72. '-----------------'
  73.  
  74. Each vertex occupies two words of information in the main DCPU RAM. The data is
  75. encoded as (in LSB-0 format):
  76. First word: YYYYYYYYXXXXXXXX
  77. Second word: 00000ICCYYYYYYYY
  78. Where XXXXXXXX is the X-coordinate of the vertex, YYYYYYYY is the Y-coordinate,
  79. ZZZZZZZZ is the Z-coordinate, CC is color, and I is intensity.
  80. Z is deeper into the screen, if the device is placed face up on the ground, this
  81. translates to "up" relative to the user.
  82. Possible color values are 0: black, 1: red, 2: green, 3: blue.
  83. If the intensity bit is set, the color is drawn as more intense.
  84. The black color is meant to barely be visible at all, except for in very dim
  85. environments, or if the intensity bit is set.
  86.  
  87.  
  88.  
  89. .-------------.
  90. ----! STATE CODES !-------------------------------------------------------------
  91. '-------------'
  92.  
  93. 0x0000 STATE_NO_DATA No vertices queued up, device is in stand-by
  94. 0x0001 STATE_RUNNING The device is projecting lines
  95. 0x0002 STATE_TURNING The device is projecting lines and turning
  96.  
  97.  
  98.  
  99. .-------------.
  100. ----! ERROR CODES !-------------------------------------------------------------
  101. '-------------'
  102.  
  103. 0x0000 ERROR_NONE There's been no error since the last poll.
  104. 0xffff ERROR_BROKEN There's been some major software or hardware problem,
  105. try turning off and turning on the device again.
  106.  
  107.  
  108.  
  109. COPYRIGHT 1988 MACKAPAR MEDIA ALL RIGHTS RESERVED DO NOT DISTRIBUTE
RAW Paste Data