home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / appmanager / b068_1 / s / SWIdefs < prev   
Text File  |  1992-01-08  |  19KB  |  480 lines

  1. r0              RN 0
  2. r1              RN 1
  3. r2              RN 2
  4. r3              RN 3
  5. r4              RN 4
  6. r5              RN 5
  7. r6              RN 6
  8. r7              RN 7
  9. r8              RN 8
  10. r9              RN 9
  11. r10             RN 10
  12. r11             RN 11
  13. r12             RN 12
  14. r13             RN 13
  15. r14             RN 14
  16. r15             RN 15
  17.  
  18. wrk             RN 12
  19. sp              RN 13
  20. lk              RN 14
  21. pc              RN 15
  22.  
  23. R0              RN 0
  24. R1              RN 1
  25. R2              RN 2
  26. R3              RN 3
  27. R4              RN 4
  28. R5              RN 5
  29. R6              RN 6
  30. R7              RN 7
  31. R8              RN 8
  32. R9              RN 9
  33. R10             RN 10
  34. R11             RN 11
  35. R12             RN 12
  36. R13             RN 13
  37. R14             RN 14
  38. R15             RN 15
  39.  
  40. N_bit           * 1 :SHL: 31
  41. Z_bit           * 1 :SHL: 30
  42. C_bit           * 1 :SHL: 29
  43. V_bit           * 1 :SHL: 28
  44. I_bit           * 1 :SHL: 27
  45. F_bit           * 1 :SHL: 26
  46.  
  47. X_bit                           * &20000
  48.  
  49. OS_WriteC                                * &0
  50. OS_WriteS                                * &1
  51. OS_Write0                                * &2
  52. OS_NewLine                               * &3
  53. OS_ReadC                                 * &4
  54. OS_CLI                                   * &5
  55. OS_Byte                                  * &6
  56. OS_Word                                  * &7
  57. OS_File                                  * &8
  58. OS_Args                                  * &9
  59. OS_BGet                                  * &a
  60. OS_BPut                                  * &b
  61. OS_GBPB                                  * &c
  62. OS_Find                                  * &d
  63. OS_ReadLine                              * &e
  64. OS_Control                               * &f
  65. OS_GetEnv                                * &10
  66. OS_Exit                                  * &11
  67. OS_SetEnv                                * &12
  68. OS_IntOn                                 * &13
  69. OS_IntOff                                * &14
  70. OS_CallBack                              * &15
  71. OS_EnterOS                               * &16
  72. OS_BreakPt                               * &17
  73. OS_BreakCtrl                             * &18
  74. OS_UnusedSWI                             * &19
  75. OS_UpdateMEMC                            * &1a
  76. OS_SetCallBack                           * &1b
  77. OS_Mouse                                 * &1c
  78. OS_Heap                                  * &1d
  79. OS_Module                                * &1e
  80. OS_Claim                                 * &1f
  81. OS_Release                               * &20
  82. OS_ReadUnsigned                          * &21
  83. OS_GenerateEvent                         * &22
  84. OS_ReadVarVal                            * &23
  85. OS_SetVarVal                             * &24
  86. OS_GSInit                                * &25
  87. OS_GSRead                                * &26
  88. OS_GSTrans                               * &27
  89. OS_BinaryToDecimal                       * &28
  90. OS_FSControl                             * &29
  91. OS_ChangeDynamicArea                     * &2a
  92. OS_GenerateError                         * &2b
  93. OS_ReadEscapeState                       * &2c
  94. OS_EvaluateExpression                    * &2d
  95. OS_SpriteOp                              * &2e
  96. OS_ReadPalette                           * &2f
  97. OS_ServiceCall                           * &30
  98. OS_ReadVduVariables                      * &31
  99. OS_ReadPoint                             * &32
  100. OS_UpCall                                * &33
  101. OS_CallAVector                           * &34
  102. OS_ReadModeVariable                      * &35
  103. OS_RemoveCursors                         * &36
  104. OS_RestoreCursors                        * &37
  105. OS_SWINumberToString                     * &38
  106. OS_SWINumberFromString                   * &39
  107. OS_ValidateAddress                       * &3a
  108. OS_CallAfter                             * &3b
  109. OS_CallEvery                             * &3c
  110. OS_RemoveTickerEvent                     * &3d
  111. OS_InstallKeyHandler                     * &3e
  112. OS_CheckModeValid                        * &3f
  113. OS_ChangeEnvironment                     * &40
  114. OS_ClaimScreenMemory                     * &41
  115. OS_ReadMonotonicTime                     * &42
  116. OS_SubstituteArgs                        * &43
  117. OS_PrettyPrint                           * &44
  118. OS_Plot                                  * &45
  119. OS_WriteN                                * &46
  120. OS_AddToVector                           * &47
  121. OS_WriteEnv                              * &48
  122. OS_ReadArgs                              * &49
  123. OS_ReadRAMFsLimits                       * &4a
  124. OS_ClaimDeviceVector                     * &4b
  125. OS_ReleaseDeviceVector                   * &4c
  126. OS_DelinkApplication                     * &4d
  127. OS_RelinkApplication                     * &4e
  128. OS_HeapSort                              * &4f
  129. OS_ExitAndDie                            * &50
  130. OS_ReadMemMapInfo                        * &51
  131. OS_ReadMemMapEntries                     * &52
  132. OS_SetMemMapEntries                      * &53
  133. OS_AddCallBack                           * &54
  134. OS_ReadDefaultHandler                    * &55
  135. OS_SetECFOrigin                          * &56
  136. OS_SerialOp                              * &57
  137. OS_ReadSysInfo                           * &58
  138. OS_Confirm                               * &59
  139. OS_ChangedBox                            * &5a
  140. OS_CRC                                   * &5b
  141. OS_ReadDynamicArea                       * &5c
  142. OS_PrintChar                             * &5d
  143. OS_ConvertStandardDateAndTime            * &c0
  144. OS_ConvertDateAndTime                    * &c1
  145. OS_ConvertHex1                           * &d0
  146. OS_ConvertHex2                           * &d1
  147. OS_ConvertHex4                           * &d2
  148. OS_ConvertHex6                           * &d3
  149. OS_ConvertHex8                           * &d4
  150. OS_ConvertCardinal1                      * &d5
  151. OS_ConvertCardinal2                      * &d6
  152. OS_ConvertCardinal3                      * &d7
  153. OS_ConvertCardinal4                      * &d8
  154. OS_ConvertInteger1                       * &d9
  155. OS_ConvertInteger2                       * &da
  156. OS_ConvertInteger3                       * &db
  157. OS_ConvertInteger4                       * &dc
  158. OS_ConvertBinary1                        * &dd
  159. OS_ConvertBinary2                        * &de
  160. OS_ConvertBinary3                        * &df
  161. OS_ConvertBinary4                        * &e0
  162. OS_ConvertSpacedCardinal1                * &e1
  163. OS_ConvertSpacedCardinal2                * &e2
  164. OS_ConvertSpacedCardinal3                * &e3
  165. OS_ConvertSpacedCardinal4                * &e4
  166. OS_ConvertSpacedInteger1                 * &e5
  167. OS_ConvertSpacedInteger2                 * &e6
  168. OS_ConvertSpacedInteger3                 * &e7
  169. OS_ConvertSpacedInteger4                 * &e8
  170. OS_ConvertFixedNetStation                * &e9
  171. OS_ConvertNetStation                     * &ea
  172. OS_ConvertFixedFileSize                  * &eb
  173. OS_ConvertFileSize                       * &ec
  174. OS_WriteI                                * &100
  175. IIC_Control                              * &240
  176. Font_CacheAddr                           * &40080
  177. Font_FindFont                            * &40081
  178. Font_LoseFont                            * &40082
  179. Font_ReadDefn                            * &40083
  180. Font_ReadInfo                            * &40084
  181. Font_StringWidth                         * &40085
  182. Font_Paint                               * &40086
  183. Font_Caret                               * &40087
  184. Font_ConverttoOS                         * &40088
  185. Font_Converttopoints                     * &40089
  186. Font_SetFont                             * &4008a
  187. Font_CurrentFont                         * &4008b
  188. Font_FutureFont                          * &4008c
  189. Font_FindCaret                           * &4008d
  190. Font_CharBBox                            * &4008e
  191. Font_ReadScaleFactor                     * &4008f
  192. Font_SetScaleFactor                      * &40090
  193. Font_ListFonts                           * &40091
  194. Font_SetFontColours                      * &40092
  195. Font_SetPalette                          * &40093
  196. Font_ReadThresholds                      * &40094
  197. Font_SetThresholds                       * &40095
  198. Font_FindCaretJ                          * &40096
  199. Font_StringBBox                          * &40097
  200. Font_ReadColourTable                     * &40098
  201. Wimp_Initialise                          * &400c0
  202. Wimp_CreateWindow                        * &400c1
  203. Wimp_CreateIcon                          * &400c2
  204. Wimp_DeleteWindow                        * &400c3
  205. Wimp_DeleteIcon                          * &400c4
  206. Wimp_OpenWindow                          * &400c5
  207. Wimp_CloseWindow                         * &400c6
  208. Wimp_Poll                                * &400c7
  209. Wimp_RedrawWindow                        * &400c8
  210. Wimp_UpdateWindow                        * &400c9
  211. Wimp_GetRectangle                        * &400ca
  212. Wimp_GetWindowState                      * &400cb
  213. Wimp_GetWindowInfo                       * &400cc
  214. Wimp_SetIconState                        * &400cd
  215. Wimp_GetIconState                        * &400ce
  216. Wimp_GetPointerInfo                      * &400cf
  217. Wimp_DragBox                             * &400d0
  218. Wimp_ForceRedraw                         * &400d1
  219. Wimp_SetCaretPosition                    * &400d2
  220. Wimp_GetCaretPosition                    * &400d3
  221. Wimp_CreateMenu                          * &400d4
  222. Wimp_DecodeMenu                          * &400d5
  223. Wimp_WhichIcon                           * &400d6
  224. Wimp_SetExtent                           * &400d7
  225. Wimp_SetPointerShape                     * &400d8
  226. Wimp_OpenTemplate                        * &400d9
  227. Wimp_CloseTemplate                       * &400da
  228. Wimp_LoadTemplate                        * &400db
  229. Wimp_ProcessKey                          * &400dc
  230. Wimp_CloseDown                           * &400dd
  231. Wimp_StartTask                           * &400de
  232. Wimp_ReportError                         * &400df
  233. Wimp_GetWindowOutline                    * &400e0
  234. Wimp_PollIdle                            * &400e1
  235. Wimp_PlotIcon                            * &400e2
  236. Wimp_SetMode                             * &400e3
  237. Wimp_SetPalette                          * &400e4
  238. Wimp_ReadPalette                         * &400e5
  239. Wimp_SetColour                           * &400e6
  240. Wimp_SendMessage                         * &400e7
  241. Wimp_CreateSubMenu                       * &400e8
  242. Wimp_SpriteOp                            * &400e9
  243. Wimp_BaseOfSprites                       * &400ea
  244. Wimp_BlockCopy                           * &400eb
  245. Wimp_SlotSize                            * &400ec
  246. Wimp_ReadPixTrans                        * &400ed
  247. Wimp_ClaimFreeMemory                     * &400ee
  248. Wimp_CommandWindow                       * &400ef
  249. Wimp_TextColour                          * &400f0
  250. Wimp_TransferBlock                       * &400f1
  251. Wimp_ReadSysInfo                         * &400f2
  252. Wimp_SetFontColours                      * &400f3
  253. Sound_Configure                          * &40140
  254. Sound_Enable                             * &40141
  255. Sound_Stereo                             * &40142
  256. Sound_Speaker                            * &40143
  257. Sound_Volume                             * &40180
  258. Sound_SoundLog                           * &40181
  259. Sound_LogScale                           * &40182
  260. Sound_InstallVoice                       * &40183
  261. Sound_RemoveVoice                        * &40184
  262. Sound_AttachVoice                        * &40185
  263. Sound_ControlPacked                      * &40186
  264. Sound_Tuning                             * &40187
  265. Sound_Pitch                              * &40188
  266. Sound_Control                            * &40189
  267. Sound_AttachNamedVoice                   * &4018a
  268. Sound_ReadControlBlock                   * &4018b
  269. Sound_WriteControlBlock                  * &4018c
  270. Sound_QInit                              * &401c0
  271. Sound_QSchedule                          * &401c1
  272. Sound_QRemove                            * &401c2
  273. Sound_QFree                              * &401c3
  274. Sound_QSDispatch                         * &401c4
  275. Sound_QTempo                             * &401c5
  276. Sound_QBeat                              * &401c6
  277. Sound_QInterface                         * &401c7
  278. ADFS_DiscOp                              * &40240
  279. ADFS_HDC                                 * &40241
  280. ADFS_Drives                              * &40242
  281. ADFS_FreeSpace                           * &40243
  282. ADFS_Retries                             * &40244
  283. ADFS_DescribeDisc                        * &40245
  284. Podule_ReadID                            * &40280
  285. Podule_ReadHeader                        * &40281
  286. Podule_EnumerateChunks                   * &40282
  287. Podule_ReadChunk                         * &40283
  288. Podule_ReadBytes                         * &40284
  289. Podule_WriteBytes                        * &40285
  290. Podule_CallLoader                        * &40286
  291. Podule_RawRead                           * &40287
  292. Podule_RawWrite                          * &40288
  293. Podule_HardwareAddress                   * &40289
  294. WaveSynth_Load                           * &40300
  295. Debugger_Disassemble                     * &40380
  296. FileCore_DiscOp                          * &40540
  297. FileCore_Create                          * &40541
  298. FileCore_Drives                          * &40542
  299. FileCore_FreeSpace                       * &40543
  300. FileCore_FloppyStructure                 * &40544
  301. FileCore_DescribeDisc                    * &40545
  302. Shell_Create                             * &405c0
  303. Shell_Destroy                            * &405c1
  304. Hourglass_On                             * &406c0
  305. Hourglass_Off                            * &406c1
  306. Hourglass_Smash                          * &406c2
  307. Hourglass_Start                          * &406c3
  308. Hourglass_Percentage                     * &406c4
  309. Hourglass_LEDs                           * &406c5
  310. Draw_ProcessPath                         * &40700
  311. Draw_ProcessPathFP                       * &40701
  312. Draw_Fill                                * &40702
  313. Draw_FillFP                              * &40703
  314. Draw_Stroke                              * &40704
  315. Draw_StrokeFP                            * &40705
  316. Draw_StrokePath                          * &40706
  317. Draw_StrokePathFP                        * &40707
  318. Draw_FlattenPath                         * &40708
  319. Draw_FlattenPathFP                       * &40709
  320. Draw_TransformPath                       * &4070a
  321. Draw_TransformPathFP                     * &4070b
  322. ColourTrans_SelectTable                  * &40740
  323. ColourTrans_SelectGCOLTable              * &40741
  324. ColourTrans_ReturnGCOL                   * &40742
  325. ColourTrans_SetGCOL                      * &40743
  326. ColourTrans_ReturnColourNumber           * &40744
  327. ColourTrans_ReturnGCOLForMode            * &40745
  328. ColourTrans_ReturnColourNumberForMode    * &40746
  329. ColourTrans_ReturnOppGCOL                * &40747
  330. ColourTrans_SetOppGCOL                   * &40748
  331. ColourTrans_ReturnOppColourNumber        * &40749
  332. ColourTrans_ReturnOppGCOLForMode         * &4074a
  333. ColourTrans_ReturnOppColourNumberForMode * &4074b
  334. ColourTrans_GCOLToColourNumber           * &4074c
  335. ColourTrans_ColourNumberToGCOL           * &4074d
  336. ColourTrans_ReturnFontColours            * &4074e
  337. ColourTrans_SetFontColours               * &4074f
  338. ColourTrans_InvalidateCache              * &40750
  339. RamFS_DiscOp                             * &40780
  340. RamFS_Drives                             * &40782
  341. RamFS_FreeSpace                          * &40783
  342. RamFS_DescribeDisc                       * &40785
  343. WD_Hex                                   * &cff00
  344. WD_HexB                                  * &cff01
  345. WD_DecS                                  * &cff02
  346. WD_DecSB                                 * &cff03
  347. WD_DecU                                  * &cff04
  348. WD_DecUB                                 * &cff05
  349. WD_Bin                                   * &cff06
  350. WD_BinB                                  * &cff07
  351. WD_HexI                                  * &cff08
  352. WD_HexBI                                 * &cff09
  353. WD_DecSI                                 * &cff0a
  354. WD_DecSBI                                * &cff0b
  355. WD_DecUI                                 * &cff0c
  356. WD_DecUBI                                * &cff0d
  357. WD_BinI                                  * &cff0e
  358. WD_BinBI                                 * &cff0f
  359. WD_StringZ                               * &cff10
  360. WD_StringCR                              * &cff11
  361. WD_StringSP                              * &cff12
  362. WD_PC                                    * &cff13
  363.  
  364.  
  365.         MACRO
  366. $label  Show    $reg,$icon,$type,$offset
  367.  
  368.  [ debug<>0
  369.  
  370.         LCLL    indir
  371.         LCLL    string
  372.         LCLL    byteop
  373.         LCLA    opcode
  374.         LCLS    workstr
  375.         LCLA    swinum
  376.  
  377. workstr SETS    "$type"
  378.         ASSERT  $icon>=0:LAND:$icon<=31
  379.  
  380.   [       "$type"=""
  381.         ASSERT  "$offset"=""
  382. opcode  SETA    &20
  383.   |
  384.  
  385.         [       :LEN:"$workstr">6
  386. string  SETL    "$workstr":LEFT:6="String"
  387.         |
  388. string  SETL    {FALSE}
  389.         ]
  390.      [       "$string"="T"
  391.  
  392. workstr SETS    "$workstr":RIGHT:(:LEN:"$workstr"-6)
  393. opcode  SETA    &100
  394.         [       "$workstr"="Z"
  395. opcode  SETA    8
  396.         ]
  397.         [       "$workstr"="CR"
  398. opcode  SETA    9
  399.         ]
  400.         [       "$workstr"="SP"
  401. opcode  SETA    10
  402.         ]
  403.         ASSERT  opcode<>&100
  404.  
  405.      |
  406.  
  407. indir   SETL    "$workstr":RIGHT:1="I"
  408.         [       "$indir"="T"
  409. workstr SETS    "$workstr":LEFT:(:LEN:"$workstr"-1)
  410.         ]
  411.  
  412. byteop  SETL    "$workstr":RIGHT:1="B"
  413.         [       "$byteop"="T"
  414. workstr SETS    "$workstr":LEFT:(:LEN:"$workstr"-1)
  415.         ]
  416.  
  417. opcode  SETA    &100
  418.         [       "$workstr"="Hex"
  419. opcode  SETA    0
  420.         ]
  421.         [       "$workstr"="DecS"
  422. opcode  SETA    2
  423.         ]
  424.         [       "$workstr"="DecU"
  425. opcode  SETA    4
  426.         ]
  427.         [       "$workstr"="Bin"
  428. opcode  SETA    6
  429.         ]
  430.         [       "$workstr"="PC"
  431. opcode  SETA    &18
  432.         ASSERT  "$byteop"="F":LAND:"$indir"="F":LAND:"$offset"=""
  433.         ]
  434.         ASSERT  opcode<>&100
  435.  
  436.         [       "$byteop"="T"
  437. opcode  SETA    opcode+1
  438.         ]
  439.  
  440.         [       "$indir"="T"
  441. opcode  SETA    opcode+8
  442.         ]
  443.  
  444.      ]
  445.  
  446.         [       "$offset"/=""
  447.         [       opcode<8
  448. opcode  SETA    opcode+8
  449.         ]
  450. opcode  SETA    opcode+&20
  451.         ]
  452.  
  453.   ]
  454.  
  455.         [       "$reg"=""
  456.         ASSERT  opcode<&20:LAND:"$offset"=""
  457. swinum  SETA    &8000:OR:$icon:OR:(opcode:SHL:5)
  458.         |
  459.         ASSERT  $reg>=0:LAND:$reg<=15
  460. swinum  SETA    $reg:OR:($icon:SHL:4):OR:(opcode:SHL:9)
  461.         ]
  462. $label  SWI     &FF0000:OR:swinum
  463.         [       "$offset"/=""
  464.         &       $offset
  465.         ]
  466.  ]
  467.         MEND
  468.  
  469.         MACRO
  470. $label  ShowStr $icon,$string
  471.  [ debug<>0
  472.         ASSERT  $icon>=0:LAND:$icon<=31
  473. $label  SWI     &FF8400:OR:$icon
  474.         =       "$string",0
  475.         ALIGN
  476.  ]
  477.         MEND
  478.  
  479.         END
  480.