Differences

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

Link to this comparison view

instructions:edt_operators [2009/05/07 20:35]
lwilton
instructions:edt_operators [2009/05/07 20:37] (current)
lwilton old revision restored
Line 1: Line 1:
 ====== Edit-Operators ====== ====== Edit-Operators ======
- 
-T, M, and Q are internal state toggles that control zero suppression and character insertion.  All three toggles are cleared to zero at the start of the edit operator execution. 
  
 ^^  INSTRUCTION  ^^  Variant  ^^ ^^  INSTRUCTION  ^^  Variant  ^^
 ^  M  ^  NAME  ^  Av  ^  ACTION  ^ ^  M  ^  NAME  ^  Av  ^  ACTION  ^
-|  0  |  MOVE DIGIT  |  0 thru 9  | MOVE Av + 1 digits  \\ If any digit not = 0, set T = 1 (significance)  | +|  0  |  MOVE DIGIT  |  0 thru 9  | T <= 1 (Significance)\\ MOVE Av + 1 digits  | 
-|  1  |  MOVE CHARACTERS  |  0 thru 9  | MOVE Av + 1 characters  \\ If any digit not = 0, set T = 1 (significance)  | +|  1  |  MOVE CHARACTERS  |  0 thru 9  | T <= 1 (Significance)\\ MOVE Av + 1 characters  | 
-|  2  |  MOVE SUPRESS  |  0 thru 9  | IF T = 1, set to 0\\ IF T = 0 READ EACH source digit, THEN\\   IF source digit IS NOT ZERO, set to 0\\   IF source digit IS ZERO THEN\\  IF Q = 0, INSERT BLANK\\  IF Q = 1, INSERT TABLE ENTRY 2  |+|  2  |  MOVE SUPRESS  |  0 thru 9  | IF T = 1, M <= 0\\ IF T = 0 READ EACH A-DIGIT, THEN\\   IF A-DIGIT IS NOT ZERO, M <= 0\\   IF A-DIGIT IS ZERO THEN\\  IF Q = 0, INSERT BLANK\\  IF Q = 1, INSERT TABLE ENTRY 2  |
 |  3  |  INSERT UNCONDITIONALLY  |  0 thru 7  | INSERT TABLE ENTRY 0 - 7  | |  3  |  INSERT UNCONDITIONALLY  |  0 thru 7  | INSERT TABLE ENTRY 0 - 7  |
 |     |                          |  8  | IF A = +, INSERT TABLE ENTRY 0\\ IF A = -, INSERT TABLE ENTRY 1  | |     |                          |  8  | IF A = +, INSERT TABLE ENTRY 0\\ IF A = -, INSERT TABLE ENTRY 1  |
Line 15: Line 13:
 |  4  |  INSERT ON PLUS          |  0 thru B  | IF A = +, M <= 3\\  IF A = -, THEN\\ IF Q = 0, INSERT BLANK AND\\ IF Av = B, SKIP NEXT B CHAR\\ IF Q = 1, INSERT TABLE ENTRY 2 AND\\ IF Av = B, SKIP NEXT B CHAR  | |  4  |  INSERT ON PLUS          |  0 thru B  | IF A = +, M <= 3\\  IF A = -, THEN\\ IF Q = 0, INSERT BLANK AND\\ IF Av = B, SKIP NEXT B CHAR\\ IF Q = 1, INSERT TABLE ENTRY 2 AND\\ IF Av = B, SKIP NEXT B CHAR  |
 |  5  |  INSERT ON MINUS         |  0 thru B  | IF A = -, M <= 3\\  IF A = +, THEN\\ IF Q = 0, INSERT BLANK AND\\ IF Av = B, SKIP NEXT B CHAR\\ IF Q = 1, INSERT TABLE ENTRY 2 AND\\ IF Av = B, SKIP NEXT B CHAR  | |  5  |  INSERT ON MINUS         |  0 thru B  | IF A = -, M <= 3\\  IF A = +, THEN\\ IF Q = 0, INSERT BLANK AND\\ IF Av = B, SKIP NEXT B CHAR\\ IF Q = 1, INSERT TABLE ENTRY 2 AND\\ IF Av = B, SKIP NEXT B CHAR  |
- 
  
instructions/edt_operators.txt · Last modified: 2009/05/07 20:37 by lwilton
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki