manual:chapter5:asm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
manual:chapter5:asm [2019/12/03 16:18]
claudio [Example code]
manual:chapter5:asm [2019/12/04 15:36]
claudio [Example code]
Line 37: Line 37:
 |  :::  |  :::  | ''ASIN''  |  :::  |  :::  | ''MAX''  | |  :::  |  :::  | ''ASIN''  |  :::  |  :::  | ''MAX''  |
 |  :::  |  :::  | ''ACOS''  |  :::  |  :::  | ''RND''  | |  :::  |  :::  | ''ACOS''  |  :::  |  :::  | ''RND''  |
-|  :::  |  :::  | ''ATAN'' |  :::  |  :::  |    +|  :::  |  :::  | ''ATAN'' |  :::  |  :::  | ''CLR''  
-|  :::  |  :::  | ''SINH''  |  :::  |  :::  |  :::  +|  :::  |  :::  | ''SINH''  |  :::  |  :::  |   
-|  :::  |  :::  | ''COSH''  |  :::  |  :::  |  :::  |+|  :::  |  :::  | ''COSH''  |  :::  |  :::  |    |
 |  :::  |  :::  | ''TANH''  |  :::  |  :::  |  :::  | |  :::  |  :::  | ''TANH''  |  :::  |  :::  |  :::  |
 |  :::  |  :::  | ''ASINH''  |  :::  |  :::  |  :::  | |  :::  |  :::  | ''ASINH''  |  :::  |  :::  |  :::  |
Line 99: Line 99:
 | ''AL''    | Always                 | ---       | ---       | | ''AL''    | Always                 | ---       | ---       |
 | ''LT''    | Less Than              | ---       | Set       | | ''LT''    | Less Than              | ---       | Set       |
-| ''EQ''    | Equals                 | Set       | ---       |+| ''EQ'' or ''Z''  | Equals                 | Set       | ---       |
 | ''LE''    | Less Than or Equals    | ---       | Set       | | ''LE''    | Less Than or Equals    | ---       | Set       |
 | :::       | :::                    | Set       | ---       | | :::       | :::                    | Set       | ---       |
 | ''NA''    | Never                  | ---       | ---       | | ''NA''    | Never                  | ---       | ---       |
 | ''GE''    | Greater Than or Equals | ---       | Clear     | | ''GE''    | Greater Than or Equals | ---       | Clear     |
-| ''NE''    | Not Equals             | Clear     | ---       |+| ''NE'' or ''NZ''  | Not Equals             | Clear     | ---       |
 | ''GT''    | Greater Than           | Clear     | Clear     | | ''GT''    | Greater Than           | Clear     | Clear     |
  
Line 133: Line 133:
 | '':PUSH.A.#3'' | Reverse of '':POP''. In this example will do '':P=C'', '':P=B'' and '':P=A''  | | '':PUSH.A.#3'' | Reverse of '':POP''. In this example will do '':P=C'', '':P=B'' and '':P=A''  |
 | '':RPUSH.A.#3''  | Reverse of '':RPOP''. In this example will do '':P=A'', '':P=B'', and '':P=C''  | | '':RPUSH.A.#3''  | Reverse of '':RPOP''. In this example will do '':P=A'', '':P=B'', and '':P=C''  |
 +| '':CLR.A.#3'' | Set registers to zero (clear) starting with ''A'', and as many registers as requested. In this example will do '':A=0'', '':B=0'' and '':C=0''  |
  
 ==== Example code ==== ==== Example code ====
Line 146: Line 147:
   -103 SF             @ Complex results   -103 SF             @ Complex results
   :A=RPOP.S1.#      @ Store coefficients in registers   :A=RPOP.S1.#      @ Store coefficients in registers
-  :CMP.A.#0 :D=CHK.EQ @ a=0? +  :AND.A.C            @ Are either zero? 
-  :CMP.C.#0 :E=CHK.EQ @ c=0? +  :SKIP.NZ            @ Skip next seco if both A and C were non-zero
-  :OR.D.E             @ Are either zero? +
-  :SKIP.EQ            @ Skip next seco if both tests were false+
   :: "Zero Input Invalid"   :: "Zero Input Invalid"
      DOERR            @ Abort with error      DOERR            @ Abort with error
  • manual/chapter5/asm.txt
  • Last modified: 2021/09/29 05:58
  • by jojo1973