o  1  234  5  6  7  8  9  ABC   D  E  F  200_   201_   202_   203_   204_   205_   206   207_   208_   209_   20A_   208_   20C_   20D_   20E_   20F_   40   40   40   40   04   14  
2440   40   40   40   40   40   40   40   00   40   40   40   40   40   40   28  40   40   40   40   40   00   00   40   00   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   00   00   00   00   00   00   00   00   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   00   00   00   00   00   00   00   00   00   00   00   00   00   00   00   00   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   08   40   OC   10   40   40   40   40   18  lC   20   40   40   40   40   40   2C   40   40   40   40   40   40   40   30   34  38  3C   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   40   00   00   40   40   40   40   40   40   00   00   40   40   40   40   40   40   00   00   40   40   40   40   40   40   00   00   40   40   40   40   40   40   Note:   If  the   character  codes  in  the   statement   being  
translated occupy a range smaller than00   through  
FF{16}, a table of fewer than 256 bytes canbe   used.  
Translate andTest   Table  
Thetable   entries   for  the   alphameric  
characters inEBCDIC   are   00;   thus,  the   letter  A  (code  Cl)   corresponds  to  byte   location  20Cl,   which  contains  00.   The  15  special  symbols  have   nonzero  entries   from  04{16}   to  3C{16}   in  incre  
ments of 4. Thus,the   blank  (code  40)   has  the  entry  04{16},   the  period  (code  
4B) hasthe   entry   08{16},   and  so  on.  
Allother   table  positions  have   the  entry  40{16}   to  indicate  an  invalid  character.  
Thetable   entries   are   chosen  so  that  
they maybe   used  to  select  one   of  a  list  
of 16 words containing addresses ofdifferent   routines  to  be   entered  for  
each special symbol or invalid character
encountered during the scan.
Assume that this list of 16 branch
addresses is stored at locations3004-3043.   Starting  at  storage  location  CA80,   there  
is the following sequence of21{10}   EBCDIC   characters,  where  "b"  stands  for  
a blank.
LocationsCA80-CA94:   UNPKbPROUT(9),WORD(5)   Also  assume:  
Register 1 contains00   00   CA   7F.  
Register 2 contains00   00   30   00.   Register  15  contains  00   00   20   00.   As  the  instruction:  
Machine FormatOp   Code   L  Bt  Dt  B2  D2  
DD 14 1001  
1 F  0001   Assembler  Format  
TRT1(21,1),0(15)   is  executed,   the   value  of  the  first  
source byte, theEBCDIC   code  for  the  
letterU,   is  added  to  the  starting  
address of the table to produce the
address of the table entry to be exam
ined:
Appendix A. Number Representation and Instruction-Use Examples A-29
24
translated occupy a range smaller than
FF{16}, a table of fewer than 256 bytes can
Translate and
The
characters in
ments of 4. Thus,
4B) has
All
The
they may
of 16 words containing addresses of
each special symbol or invalid character
encountered during the scan.
Assume that this list of 16 branch
addresses is stored at locations
is the following sequence of
a blank.
Locations
Register 1 contains
Register 2 contains
Machine Format
DD 14 1
1
TRT
source byte, the
letter
address of the table to produce the
address of the table entry to be exam
ined:
Appendix A. Number Representation and Instruction-Use Examples A-29
 
             
            












































































































































































































































































































































































































































































































































































