home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 4 / FreshFish_May-June1994.bin / useful / dist / cbm / v39 / fd / utility_lib.fd < prev    next >
Text File  |  1992-09-22  |  2KB  |  90 lines

  1. * "utility.library"
  2. ##base _UtilityBase
  3. ##bias 30
  4. ##public
  5. *--- functions in V36 or higher (distributed as Release 2.0) ---
  6. *
  7. * Tag item functions
  8. *
  9. FindTagItem(tagVal,tagList)(d0/a0)
  10. GetTagData(tagValue,defaultVal,tagList)(d0/d1/a0)
  11. PackBoolTags(initialFlags,tagList,boolMap)(d0/a0/a1)
  12. NextTagItem(tagListPtr)(a0)
  13. FilterTagChanges(changeList,originalList,apply)(a0/a1,d0)
  14. MapTags(tagList,mapList,mapType)(a0/a1,d0)
  15. AllocateTagItems(numTags)(d0)
  16. CloneTagItems(tagList)(a0)
  17. FreeTagItems(tagList)(a0)
  18. RefreshTagItemClones(clone,original)(a0/a1)
  19. TagInArray(tagValue,tagArray)(d0/a0)
  20. FilterTagItems(tagList,filterArray,logic)(a0/a1,d0)
  21. *
  22. * Hook functions
  23. *
  24. CallHookPkt(hook,object,paramPacket)(a0/a2,a1)
  25. *--- (1 function slot reserved here) ---
  26. ##bias 114
  27. *
  28. * Date functions
  29. *
  30. *--- (1 function slot reserved here) ---
  31. ##bias 120
  32. Amiga2Date(seconds,result)(d0/a0)
  33. Date2Amiga(date)(a0)
  34. CheckDate(date)(a0)
  35. *
  36. * 32 bit integer muliply functions
  37. *
  38. SMult32(arg1,arg2)(d0/d1)
  39. UMult32(arg1,arg2)(d0/d1)
  40. *
  41. * 32 bit integer division funtions. The quotient and the remainder are
  42. * returned respectively in d0 and d1
  43. *
  44. SDivMod32(dividend,divisor)(d0/d1)
  45. UDivMod32(dividend,divisor)(d0/d1)
  46. *--- functions in V37 or higher (distributed as Release 2.04) ---
  47. *
  48. * International string routines
  49. *
  50. Stricmp(string1,string2)(a0/a1)
  51. Strnicmp(string1,string2,length)(a0/a1,d0)
  52. ToUpper(character)(d0)
  53. ToLower(character)(d0)
  54. *--- functions in V39 or higher (beta release for developers only) ---
  55. *
  56. * More tag Item functions
  57. *
  58. ApplyTagChanges(list,changeList)(a0/a1)
  59. *--- (1 function slot reserved here) ---
  60. ##bias 198
  61. *
  62. * 64 bit integer muliply functions. The results are 64 bit quantities
  63. * returned in D0 and D1
  64. *
  65. SMult64(arg1,arg2)(d0/d1)
  66. UMult64(arg1,arg2)(d0/d1)
  67. *
  68. * Structure to Tag and Tag to Structure support routines
  69. *
  70. PackStructureTags(pack,packtable,tagList)(a0/a1/a2)
  71. UnpackStructureTags(pack,packtable,tagList)(a0/a1/a2)
  72. *
  73. * New, object-oriented NameSpaces
  74. *
  75. AddNamedObject(namespace,object)(a0/a1)
  76. AllocNamedObjectA(name,tags)(a0/a1)
  77. AttemptRemNamedObject(object)(a0)
  78. FindNamedObject(namespace,name,lastobject)(a0/a1/a2)
  79. FreeNamedObject(object)(a0)
  80. NamedObjectName(object)(a0)
  81. ReleaseNamedObject(object)(a0)
  82. RemNamedObject(object,message)(a0/a1)
  83. *
  84. * Unique ID generator
  85. *
  86. GetUniqueID()()
  87. *--- (4 function slots reserved here) ---
  88. ##bias 300
  89. ##end
  90.