home *** CD-ROM | disk | FTP | other *** search
/ ftp.whtech.com / ftp.whtech.com.tar / ftp.whtech.com / Geneve / 9640news / CAT23 / XOPS2TXT.ARK < prev    next >
Text File  |  2006-10-19  |  13KB  |  446 lines

  1. ?
  2. *
  3. * XOP 9 -- Low level video
  4. *
  5. *
  6. *
  7. * SetVideoMode                               op 0
  8. *
  9. * R1x = Video mode
  10. * R2l = Background color for cleared screen
  11. *
  12. * Video modes:
  13. *       0000    Text 1 mode
  14. *       0001    Text 2 mode
  15. *       0002    MultiColor mode
  16. *       0003    Graphic 1 mode
  17. *       0004    Graphic 2 mode
  18. *       0005    Graphic 3 mode
  19. *       0006    Graphic 4 mode
  20. *       0007    Graphic 5 mode
  21. *       0008    Graphic 6 mode
  22. *       0009    Graphic 7 mode
  23. *
  24. *
  25. * GetVideoMode                               op 1
  26. *
  27. * -----
  28. * R0x = Returned video mode
  29. * R1x = Number of columns
  30. * R2x = Number of rows
  31. *
  32. * SetCurPos                                  op 2
  33. *
  34. * R1x = Row number
  35. * R2x = Column number
  36. *
  37. * GetCurPos                                  op 3
  38. *
  39. * -----
  40. * R0x = Returned row number
  41. * R1x = Returned column number
  42. *
  43. * SetDisPage                                 op 4
  44. *
  45. * R1x = Page number
  46. *
  47. *
  48. * GetDisPage                                 op 5
  49. *
  50. * -----
  51. * R0x = Returned page number
  52. *
  53. * ScrollWinUp                                op 6
  54. *
  55. * R1x = Number of lines to scroll
  56. * R2x = Row number of upper left corner
  57. * R3x = Column number of upper left corner
  58. * R4x = Row number of lower right corner
  59. * R5x = Column number of lower right corner
  60. * R6x = Character value for blank lines
  61. * R7h = Foreground color for blank lines
  62. * R7l = Background color for blank lines
  63. *
  64. *
  65. * ScrollWinDown                              op 7
  66. *
  67. * R1x = Number of lines to scroll
  68. * R2x = Row number of upper left corner
  69. * R3x = Column number of upper left corner
  70. * R4x = Row number of lower right corner
  71. * R5x = Column number of lower right corner
  72. * R6x = Character value for blank lines
  73. * R7h = Foreground color for blank lines
  74. * R7l = Background color for blank lines
  75. *
  76. *
  77. * ScrollWinLeft                              op 08
  78. *
  79. * R1x = Number of lines to scroll
  80. * R2x = Row number of upper left corner
  81. * R3x = Column number of upper left corner
  82. * R4x = Row number of lower right corner
  83. * R5x = Column number of lower right corner
  84. * R6x = Character value for blank lines
  85. * R7h = Foreground color for blank lines
  86. * R7l = Background color for blank lines
  87. *
  88. *
  89. * ScrollWinRight                             op 09
  90. *
  91. * R1x = Number of lines to scroll
  92. * R2x = Row number of upper left corner
  93. * R3x = Column number of upper left corner
  94. * R4x = Row number of lower right corner
  95. * R5x = Column number of lower right corner
  96. * R6x = Character value for blank lines
  97. * R7h = Foreground color for blank lines
  98. * R7l = Background color for blank lines
  99. *
  100. *
  101. * WriteCharColor                             op 0a
  102. *
  103. * R1x = ASCII character to write to screen
  104. * R2h = Foreground color for character
  105. * R2l = Background color for character
  106. * R3x = Number of times to write character and color
  107. *
  108. *
  109. * GCharColor                                 op 0b
  110. *
  111. * R1x = Row
  112. * R2x = Col
  113. * -----
  114. * R0x = ASCII character read from screen
  115. * R1h = Foreground color for character
  116. * R1l = Background color for character
  117. *
  118. *
  119. * SetBorderColor                             op 0c
  120. *
  121. * R1x = Color to render border
  122. *
  123. * SetColPalette                              op 0d
  124. *
  125. * R1x = Palette register number
  126. * R2x = Color to put into palette register
  127. *
  128. * SetPixelColor                              op 0e
  129. *
  130. * R1x = X coordinate of pixel
  131. * R2x = Y coordinate of pixel
  132. * R3h = Foreground color to render pixel
  133. * R3l = Background color to render pixel in graphics 2-3
  134. *
  135. *
  136. * GetPixelColor                              op 0f
  137. *
  138. * R1x = X coordinate of pixel
  139. * R2x = Y coordinate of pixel
  140. * -----
  141. * R0h = Returned foreground color of pixel
  142. * R0l = Returned background color of pixel in graphics 2-3
  143. *
  144. *
  145. * SetVectorColor                             op 10
  146. *
  147. * R1x = X coordinate of first pixel
  148. * R2x = Y coordinate of first pixel
  149. * R3x = X coordinate of second pixel
  150. * R4x = Y coordinate of second pixel
  151. * R5h = Foreground color to render vector
  152. * R5l = Background color to render vector in graphics 2-3
  153. *
  154. *
  155. * ColorSRCH                                  op 11
  156. *
  157. * R1x = X coordinate of source point
  158. * R2x = Y coordinate of source point
  159. * R3l = Color for search
  160. * R3h = Direction for search (>00=LEFT, >FF=RIGHT)
  161. * -----
  162. * ST  = if EQUAL, color found
  163. * R0x = X coordinate of location where color was found
  164. * R1x = Y coordinate of location where color was found
  165. *
  166. * HBlockMove                                 op 12
  167. *
  168. * R1x = Row number of upper left corner of source
  169. * R2x = Column number of upper left corner of source
  170. * R3x = Row number of upper left corner of destination
  171. * R4x = Column number of upper left corner of destination
  172. * R5x = Number of rows
  173. * R6x = Number of columns
  174. * R7l = Pixel color for blank pixels
  175. *
  176. * HBlockCopy                                 op 13
  177. *
  178. * R1x = Row number of upper left corner of source
  179. * R2x = Column number of upper left corner of source
  180. * R3x = Row number of upper left corner of destination
  181. * R4x = Column number of upper left corner of destination
  182. * R5x = Number of rows
  183. * R6x = Number of columns
  184. *
  185. * LBlockMove                                 op 14
  186. *
  187. * R1x = Row number of upper left corner of source
  188. * R2x = Column number of upper left corner of source
  189. * R3x = Row number of upper left corner of destination
  190. * R4x = Column number of upper left corner of destination
  191. * R5x = Number of rows
  192. * R6x = Number of columns
  193. * R7l = Pixel color for blank pixels
  194. * R7h = Logic operation to be performed on destination
  195. *
  196. * LBlockCopy                                 op 15
  197. *
  198. * R1x = Row number of upper left corner of source
  199. * R2x = Column number of upper left corner of source
  200. * R3x = Row number of upper left corner of destination
  201. * R4x = Column number of upper left corner of destination
  202. * R5x = Number of rows
  203. * R6x = Number of columns
  204. * R7h = Logic operation to be performed on destination
  205. *
  206. * BScrollUp                                  op 16
  207. *
  208. * R1x = Number of pixels to scroll
  209. * R2x = Row number of upper left corner
  210. * R3x = Column number of upper left corner
  211. * R4x = Row number of lower right corner
  212. * R5x = Column number of lower right corner
  213. * R6h = Pixel color for blank pixels
  214. *
  215. * BScrollDown                                op 17
  216. *
  217. * R1x = Number of pixels to scroll
  218. * R2x = Row number of upper left corner
  219. * R3x = Column number of upper left corner
  220. * R4x = Row number of lower right corner
  221. * R5x = Column number of lower right corner
  222. * R6h = Pixel color for blank pixels
  223. *
  224. * BScrollLeft                                op 18
  225. *
  226. * R1x = Number of pixels to scroll
  227. * R2x = Row number of upper left corner
  228. * R3x = Column number of upper left corner
  229. * R4x = Row number of lower right corner
  230. * R5x = Column number of lower right corner
  231. * R6h = Pixel color for blank pixels
  232. *
  233. * BScrollRight                               op 19
  234. *
  235. * R1x = Number of pixels to scroll
  236. * R2x = Row number of upper left corner
  237. * R3x = Column number of upper left corner
  238. * R4x = Row number of lower right corner
  239. * R5x = Column number of lower right corner
  240. * R6h = Pixel color for blank pixels
  241. *
  242. * SpriteDef                                  op 1a
  243. *
  244. * R1x = Pointer to sprite data
  245. * R2x = # of sprites to define
  246. *
  247. * SpriteDel                                  op 1b
  248. *
  249. * R1x = Pointer to list of sprite #'s
  250. * R2x = # of sprites to delete (>FFFF for all)
  251. *
  252. * SpriteLocate                               op 1c
  253. *
  254. * R1x = Pointer to location data
  255. * R2x = # of sprites to locate
  256. *
  257. * SpriteMotion                               op 1d
  258. *
  259. * R1x = Pointer to motion data
  260. * R2x = # of sprites to put in motion
  261. *
  262. * SpriteColor                                op 1e
  263. *
  264. * R1x = Pointer to color data
  265. * R2x = # of sprites to color
  266. *
  267. * SpritePattern                              op 1f
  268. *
  269. * R1x = Pointer to pattern # data
  270. * R2x = # of sprites to pattern
  271. *
  272. * SpriteMagnify                              op 20
  273. *
  274. * R1x = MagFac (1-4, just like XB)
  275. *
  276. *
  277. * SpritePosition                             op 21
  278. *
  279. * R1x = # of sprite to get position of
  280. * -----
  281. * R0x = Returned Row of sprite
  282. * R1x = Returned Column of sprite
  283. *
  284. * SpriteCoinc                                op 22
  285. *
  286. * R1x = Type (0=sprites, 1=locations, 2=any two sprites)
  287. * R2x = # of coincidence checks
  288. * R3x = Pointer to test field
  289. * R4x = Pointer to result field
  290. * -----
  291. * R0x = # of coincidences detected
  292. *
  293. *
  294. * SpritePatDefGet                            op 23
  295. *
  296. * R1x = CPU address of sprite pattern definitions
  297. * R2x = # of sprite patterns to define or get
  298. * R3x = Starting pattern #
  299. * R4x = 0 if Def, >FFFF if Get
  300. *
  301. * CharPatDefGet                              op 24
  302. *
  303. * R1x = CPU address of character pattern definitions
  304. * R2x = # of character patterns to define or get
  305. * R3x = Starting pattern #
  306. * R4x = 0 if Def, >FFFF if Get
  307. *
  308. *
  309. * SetTextWindow                              op 25
  310. *
  311. * R1x = Top row
  312. * R2x = Left column
  313. * R3x = Bottom row
  314. * R4x = Right column
  315. *
  316. * GetTextWindow                              op 26
  317. *
  318. * -----
  319. * R0x = Returned top row
  320. * R1x = Returned left column
  321. * R2x = Returned bottom row
  322. * R3x = Returned right column
  323. *
  324. * WriteTTY                                   op 27
  325. *
  326. * R1x = CPU address of string
  327. * R2x = # of characters in string (0=NULL terminated)
  328. *
  329. *
  330. * RestoreCharacters                          op 28
  331. *
  332. * R1x = Address of character defs (0 for resident set)
  333. * R2x = Starting character number
  334. * R3x = Ending character number
  335. *
  336. *
  337. * SetTextColor                               op 29
  338. *
  339. * R1h = Foreground color for text
  340. * R1l = Background color for text
  341. *
  342. * WriteCharString                            op 2a
  343. *
  344. * R1x = Address of string
  345. * R2x = # of characters in string
  346. * R3x = 0 if change cursor position, >FFFF if leave cursor at beginning
  347. *
  348. *
  349. * PrintScreen                                op 2b
  350. *
  351. * HCharColor                                 op 2c
  352. *
  353. * R1x = Row
  354. * R2x = Col
  355. * R3x = ASCII character to write to screen
  356. * R4x = Number of times to write character and color
  357. * R5h = Foreground color for character
  358. * R5l = Background color for character
  359. *
  360. *
  361. * VCharColor                                 op 2d
  362. *
  363. * R1x = Row
  364. * R2x = Col
  365. * R3x = ASCII character to write to screen
  366. * R4x = Number of times to write character and color
  367. * R5h = Foreground color for character
  368. * R5l = Background color for character
  369. *
  370. *
  371. * HChar                                      op 2e
  372. *
  373. * R1x = Row
  374. * R2x = Col
  375. * R3x = ASCII character to write to screen
  376. * R4x = Number of times to write character and color
  377. *
  378. * VChar                                      op 2f
  379. *
  380. * R1x = Row
  381. * R2x = Col
  382. * R3x = ASCII character to write to screen
  383. * R4x = Number of times to write character and color
  384. *
  385. *
  386. * SetMouse                                   op 30
  387. *
  388. * R1x = new Xposition for mouse
  389. * R2x = new Yposition for mouse
  390. * R3x = scale factor for mouse speed  (0 to 7) 0=fastest
  391. * -----
  392. *
  393. *
  394. * GetMouse                                   op 31
  395. *
  396. * -----
  397. * R1x = Returned Xposition for mouse
  398. * R2x = Returned Yposition for mouse
  399. * R3x = b1 b2 b3 0 xxxx xxxx xxxx   (highest bits)
  400. *       \          b1= left   1=down
  401. *          \       b2= middle 1=down
  402. *             \    b3= right  1=down
  403. *
  404. *
  405. *
  406. * GetMouseRel                                op 32
  407. *
  408. * -----
  409. * R1x = Returned X displacement since last call to GetMouse or GetMouseRel
  410. * R2x = Returned Y displacement since last call to GetMouse or GetMouseRel
  411. * R3x = b1 b2 b3 0 xxxx xxxx xxxx   (highest bits)
  412. *       \          b1= left   1=down
  413. *          \       b2= middle 1=down
  414. *             \    b3= right  1=down
  415. *
  416. *
  417. * MakeSound                                  op 33
  418. *
  419. * R1x = Generator 1 frequency in Hz
  420. * R2x = Generator 2 frequency in Hz
  421. * R3x = Generator 3 frequency in Hz
  422. * R4h = Attenuation for Generator 1 (0-15)
  423. * R4l = Attenuation for Generator 2 (0-15)
  424. * R5h = Attenuation for Generator 3 (0-15)
  425. * R6h = control for noise generator: bits= 0000 0w t1 t2
  426. *                                                |  +--+-- 00= 6991 Hz
  427. *                                                |         01= 3496 Hz
  428. *                                                |         10= 1738 Hz
  429. *                                                |         11= same Hz as Gen #3
  430. *                                                +--------- 0= periodic noise
  431. *                                                           1= white noise
  432. * R6l = Attenuation for Noise Generator
  433. * R7x = duration of noise in 60th seconds
  434. * -----
  435. *
  436. *
  437. * SoundStatus                                op 34
  438. *
  439. * -----
  440. * EQ bit set if no sound is in progress
  441. *
  442.  
  443. Download complete.  Turn off Capture File.
  444.  
  445.  
  446.