home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 1 / ARM_CLUB_CD.iso / contents / apps / program / d / fpbas4tla / !fpbas4tla / !help < prev    next >
Encoding:
Text File  |  1992-01-26  |  4.2 KB  |  181 lines

  1. !fpbas4tla (copyrigth (c) MUFTI (email: zrzm0111@helpdesk.rus.uni-stuttgart.de))
  2.  
  3.  use Stewart Brodies FPAssemble- (somewhere also called FPAbas-) tool
  4.  to evaluate FPU-commands for the TLA -assembler version 0.1h by Frank Lancester
  5.  (current Version of TLA doesn't support FPU-commands)
  6.  
  7.  This program is not made to act inside the wimp, it's made to be started inside
  8.  a obeyscript (starting a preprocessor from the wimp result in unnecessary 
  9.  dragging and clicking ....)
  10.  
  11.  This program is freeware, you may use it, copy it to any media, make it 
  12.  available to everyone, but you may not get money for redistribution.
  13.  
  14.  to use the program, you must have at least FPAbas, Perl and normally TLA
  15.  ========================================================================
  16.  (all PD or Freeware, available via mail info-server@newcastle.ac.uk
  17.  or by anonymous FTP or mail from rusmv1.rus.uni-stuttgart.de)
  18.  
  19.  syntax:
  20.  !fpbas4tla outputfile inputfile
  21.  
  22. ***************************************************************************
  23. WARNING: Don't swap input- and outputfile, your inputfile will be destroyed
  24. ***************************************************************************
  25. Usage of this program is under your own risc. You have no rigths against me,
  26. if something goes wrong.
  27.  
  28. !fpbas4tla
  29.  bring commands in the inputfile from the form
  30.     FPU-COMMAND-AS-STRING
  31.  to the form:
  32.     .WORD FPU-COMMAND-AS-NUMBER
  33.  to the outputfile for further use as Assembler-input
  34.  
  35.  (similar
  36. label FPU-COMMAND-AS-STRING
  37.  to:
  38. label .WORD FPU-COMMAND-AS-NUMBER
  39.  where label is identified cause it's first character is the first
  40.  character in the line (as usual as in TLA)
  41.  )
  42.  
  43.  reserved:
  44.  
  45.  the begining of 1. (2. if a label occure) word of the line matches:
  46.      ========
  47.  
  48. the available Floating point instruction set (from FPABAS/FPAssemble):
  49. LDF
  50. STF
  51. ADF
  52. MUF
  53. SUF
  54. RSF
  55. DVF
  56. RDF
  57. POW
  58. RPW
  59. RMF
  60. FML
  61. FDV
  62. FRD
  63. POL
  64. MVF
  65. MNF
  66. ABS
  67. RND
  68. SQT
  69. LOG
  70. LGN
  71. EXP
  72. SIN
  73. COS
  74. TAN
  75. ASN
  76. ACS
  77. ATN
  78. FLT
  79. FIX
  80. WFS
  81. RFS
  82. WFC
  83. RFC
  84. CMF
  85. CNF
  86.  
  87. in addition to this, 
  88.  
  89. .FLOAT floatingpoint-constant
  90.  
  91. is alos available. It transforms the floatingpoint-constant into the hex image
  92. of single precision.
  93.  
  94. ********************************************************************
  95. Warning 
  96. -------
  97.  
  98. All 1. (or 2.) Words  are identified as fpucommand that matches with the
  99. beginning of a member of the available Floating point instruction set.
  100. Therefore also
  101.     CMFE .....
  102. is seen as FPU-command, but also
  103.  
  104. the Label:
  105.  
  106. CMFLABEL   MOV .....
  107.  
  108. the MACRO:
  109.  
  110.     CMFMACRO hugo,otto ....
  111.  
  112. *******************************************************************************
  113.  the floiting-point-commands must have FPABAS-syntax (no . for decimal numbers) 
  114. *******************************************************************************
  115.  
  116. special thanks to:
  117.  Frank Lancester       (wrote and ported TLA)
  118.  Stewart Brodie        (wrote FPABAS/FPAssemble)
  119.  Larry Wall/Paul Moore (wrote/ported perl)
  120.  
  121. Cause the cli may ignore *error, it's useful to alter fpabas/fpassemble
  122. a bit. If before *error the errormessage is printed, you can see the
  123. errormessage in the outputfile.
  124. A simple "diff"-program for fpabas/fpassemble Version 1.01R is included.
  125.  
  126. example of a inputfile:
  127. ==========================================================================
  128.  .ABSOLUTE
  129.  .PROC fputest
  130.   LDR R0,here5ptr
  131.  B start
  132. here5 .WORD 0
  133. rums  .FLOAT 5.0
  134. here1 .WORD 0
  135.       .FLOAT 1.0
  136. here5ptr .WORD here5
  137. here1ptr .WORD here1
  138. start  MVF F0,#5
  139.   STF F0,[R0,#0]
  140.   LDR R0,here1ptr
  141.   MVF F0,#1.0
  142.   STF F0,[R0,#0]
  143.   SWI OS_Exit
  144.  .END
  145. ===========================================================================
  146. resulting outputfile:
  147. ===========================================================================
  148.  .ABSOLUTE
  149.  .PROC fputest
  150.   LDR R0,here5ptr
  151.  B start
  152. here5 .WORD 0
  153. ;rums  .FLOAT 5.0
  154. rums  .WORD 040A00000
  155. here1 .WORD 0
  156. ;     .FLOAT 1.0
  157.       .WORD 03F800000
  158. here5ptr .WORD here5
  159. here1ptr .WORD here1
  160. ;start  MVF F0,#5
  161. start  .WORD 0EE00810D
  162. ; STF F0,[R0,#0]
  163.   .WORD 0ED800100
  164.   LDR R0,here1ptr
  165. ; MVF F0,#1.0
  166.   .WORD 0EE008109
  167. ; STF F0,[R0,#0]
  168.   .WORD 0ED800100
  169.   SWI OS_Exit
  170.  .END
  171. ===========================================================================
  172. which can be assembled by TLA
  173.  
  174.  if there are any problems ( i hope not )
  175.  send a mail to
  176.  
  177.  zrzm0111@helpdesk.rus.uni-stuttgart.de
  178.  
  179.  so long
  180.  MUFTI
  181.