Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref

Author Message
Warnings : 1

New User

Joined: 29 Apr 2008
Posts: 16
Location: Mysore

 Posted: Mon Jan 19, 2009 2:07 pm    Post subject: Assembler code DC X'D54B40C44B40404040404040' DC H'12' DC X'D59699A38840C4819296A3814040' NORTH DAKOTA DC C'ND' SPACE DC X'D54B40C4819296A381404040' DC H'12' DC X'D59699A38840C4819296A3814040' NORTH DAKOTA DC C'ND' This is Assembly level language. I want to know how the above hexadecimal code can be defined in characters, as done in line 3 for NORTH DAKOTA.. Similarly what can be line 1 will be defined..?? Can we convert hexadecimal in to characters?? and What does X 'FF' mean??

Garry Carroll

Senior Member

Joined: 08 May 2006
Posts: 1006
Location: Dublin, Ireland / Edinburgh, Scotland

Posted: Mon Jan 19, 2009 2:48 pm    Post subject:

Hexadecimal representation of characters runs from

X'C1' to X'C9 = C'A' to C'I'
X'D1' to X'D9' = C'J' to C'R'
X' E2' to X'E9' = C'S' to C'Z'

for lower-case characters, the high-order bit is 'off'. Your line 3
DC X'D59699A38840C4819296A3814040' NORTH DAKOTA

can be coded as :
 Code: DC  C'North Dakota' NORTH DAKOTA

where the caps version is just a comment

Garry.
Warnings : 1

New User

Joined: 29 Apr 2008
Posts: 16
Location: Mysore

 Posted: Mon Jan 19, 2009 3:06 pm    Post subject: Assembler code hi Garry, Thanks for your response. But i did not understand the above concept explained by you. As in the third line for North Dakota, how can you split of the D59699A38840C4819296A3814040 could you please explain me in brief??
Garry Carroll

Senior Member

Joined: 08 May 2006
Posts: 1006
Location: Dublin, Ireland / Edinburgh, Scotland

 Posted: Mon Jan 19, 2009 3:11 pm    Post subject: Each pair in the hex string equates to one character X'D5' = C'N' X'96' = C'o' X'99' = C'r' X'A3' = C't' X'88' = C'h' etc. This is very basic stuff. Garry.
Warnings : 1

New User

Joined: 29 Apr 2008
Posts: 16
Location: Mysore

 Posted: Mon Jan 19, 2009 3:32 pm    Post subject: Assembler code ok garry, Can you please help me out with D54B40C44B40404040404040 what is the conversion for this??
Garry Carroll

Senior Member

Joined: 08 May 2006
Posts: 1006
Location: Dublin, Ireland / Edinburgh, Scotland

 Posted: Mon Jan 19, 2009 4:36 pm    Post subject: Suggest you look at http://www.legacyj.com/cobol/ebcdic.html A simple Google for EBCDIC Table found this. It gives you all you need. Garry.
Warnings : 1

New User

Joined: 29 Apr 2008
Posts: 16
Location: Mysore

 Posted: Mon Jan 19, 2009 8:00 pm    Post subject: Assembler code Thanks Garry..
Bill Dennis

Active Member

Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

 Posted: Mon Jan 19, 2009 10:42 pm    Post subject: Another helpful book is the IBM zArchitecture Reference Summary with Assembler OP codes and EBCDIC / ASCII tables and more. http://publibz.boulder.ibm.com/epubs/pdf/dz9zs001.pdf It's easier to read in the pocket sized hardcopy!
Warnings : 1

New User

Joined: 29 Apr 2008
Posts: 16
Location: Mysore

 Posted: Tue Jan 20, 2009 5:09 pm    Post subject: Assembler code hi bill, A good handbook... Thanks a lot
 All times are GMT + 6 Hours
 Page 1 of 1

Search our Forum:

 Topic Author Forum Replies Posted Similar Topics What will happen if we dont code STOP... Poha Eater COBOL Programming 4 Mon Jun 04, 2018 5:27 pm mapping PLI structure to assembler co... Pedro PL/I & Assembler 3 Fri Jun 01, 2018 2:53 am JCL to set Return code when Time Out ... vinu78 JCL & VSAM 6 Wed May 30, 2018 11:27 am Rexx code to find greater then symobl... Bharath Vikraman CLIST & REXX 8 Tue May 29, 2018 9:40 am RESP2 code -502 pshongal CICS 6 Mon May 28, 2018 10:58 am

 © 2003-2017 IBM MAINFRAME Software Support Division
 Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us