Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Assembler code

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
khadar78
Warnings : 1

New User


Joined: 29 Apr 2008
Posts: 16
Location: Mysore

PostPosted: Mon Jan 19, 2009 2:07 pm    Post subject: Assembler code
Reply with quote

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??
Back to top
View user's profile Send private message

Garry Carroll

Active Member


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

PostPosted: Mon Jan 19, 2009 2:48 pm    Post subject:
Reply with quote

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.
Back to top
View user's profile Send private message
khadar78
Warnings : 1

New User


Joined: 29 Apr 2008
Posts: 16
Location: Mysore

PostPosted: Mon Jan 19, 2009 3:06 pm    Post subject: Assembler code
Reply with quote

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??
Back to top
View user's profile Send private message
Garry Carroll

Active Member


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

PostPosted: Mon Jan 19, 2009 3:11 pm    Post subject:
Reply with quote

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.
Back to top
View user's profile Send private message
khadar78
Warnings : 1

New User


Joined: 29 Apr 2008
Posts: 16
Location: Mysore

PostPosted: Mon Jan 19, 2009 3:32 pm    Post subject: Assembler code
Reply with quote

ok garry,

Can you please help me out with
D54B40C44B40404040404040
what is the conversion for this??
Back to top
View user's profile Send private message
Garry Carroll

Active Member


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

PostPosted: Mon Jan 19, 2009 4:36 pm    Post subject:
Reply with quote

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.
Back to top
View user's profile Send private message
khadar78
Warnings : 1

New User


Joined: 29 Apr 2008
Posts: 16
Location: Mysore

PostPosted: Mon Jan 19, 2009 8:00 pm    Post subject: Assembler code
Reply with quote

Thanks Garry.. icon_smile.gif
Back to top
View user's profile Send private message
Bill Dennis

Active Member


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

PostPosted: Mon Jan 19, 2009 10:42 pm    Post subject:
Reply with quote

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!
Back to top
View user's profile Send private message
khadar78
Warnings : 1

New User


Joined: 29 Apr 2008
Posts: 16
Location: Mysore

PostPosted: Tue Jan 20, 2009 5:09 pm    Post subject: Assembler code
Reply with quote

hi bill,

A good handbook... Thanks a lot icon_biggrin.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Sr SW Eng-Rocket Software (Assembler,... Kenneth Barton Lasky Mainframe Jobs 0 Fri Aug 25, 2017 12:29 am
This topic is locked: you cannot edit posts or make replies. how to code for GDG in Rexx cvnlynn CLIST & REXX 13 Wed Aug 09, 2017 9:13 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts I want to retire TRX and use only Rex... Abhinav Sharma CLIST & REXX 6 Sat Jul 29, 2017 2:53 am
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us