Oppolzer - Informatik / Blog


Blog-Hauptseite      Neuester Artikel      Älterer Artikel      Neuerer Artikel      Älterer gleiche Kategorie      Neuerer gleiche Kategorie

ASSEMBLER-L - Übersetzungs-Tabellen für ASCII (für TR)

Subject:

Re: Defining a translate table for ASCII

From:

Bernd Oppolzer <bernd.oppolzer@T-ONLINE.DE>

Reply-To:

IBM Mainframe Assembler List <ASSEMBLER-LIST@LISTSERV.UGA.EDU>

Date:

2014.03.29 17:38:32


Hello M.,

as long as the "interesting code points" in the ASCII code table are not too
many, you could code some EQU constants like

ASCII_A      EQU  X'41'
ASCII_LOW_A  EQU  X'61'
ASCII_SPACE  EQU  X'20'
*            etc. etc.

...

             ORG TAB+ASCII_A

to overcome this problem.

The constant values in address arithmetic, to my knowlegde, are limited to
decimal constants and X, B and C constants without additional modifiers.

I have to admit that I don't follow all recent extensions of current HLASM
versions.

Kind regards

Bernd



Am 29.03.2014 17:01, schrieb M.T.:
> I am used to defining tables with this:
>
> TAB    DC 256X'00'
>        ORG TAB+C'<'
>        DC  X'01'  type 1 stopper
>        ORG TAB+C'<'
>        DC  X'02'  type 2 stopper
>
> and so on-
>
> Now I tried to do this for ASCII-code
>
> if you try to do ORG TAB+CA'<'
>
> you get a nastigram -
>
> anyone knows an easy way out
>
> (I know way- same reason a
>      CLI FILD,CA'=' have we found an =
>     is not accepted.)
>
> --
> M.
>

Blog-Hauptseite      Neuester Artikel      Älterer Artikel      Neuerer Artikel      Älterer gleiche Kategorie      Neuerer gleiche Kategorie