IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Assembler code


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
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
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

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Mon Jan 19, 2009 2:48 pm
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
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

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Mon Jan 19, 2009 3:11 pm
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
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

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

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

Suggest you look at 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
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
Reply with quote

Another helpful book is the IBM zArchitecture Reference Summary with Assembler OP codes and EBCDIC / ASCII tables and more.

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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
No new posts Monitoring production job progress. N... JCL & VSAM 4
Search our Forums:

Back to Top