View previous topic :: View next topic
|
Author |
Message |
khadar78 Warnings : 1 New User
Joined: 29 Apr 2008 Posts: 16 Location: Mysore
|
|
|
|
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 |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
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 |
|
|
khadar78 Warnings : 1 New User
Joined: 29 Apr 2008 Posts: 16 Location: Mysore
|
|
|
|
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 |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
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 |
|
|
khadar78 Warnings : 1 New User
Joined: 29 Apr 2008 Posts: 16 Location: Mysore
|
|
|
|
ok garry,
Can you please help me out with
D54B40C44B40404040404040
what is the conversion for this?? |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
Back to top |
|
|
khadar78 Warnings : 1 New User
Joined: 29 Apr 2008 Posts: 16 Location: Mysore
|
|
|
|
Thanks Garry.. |
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
Back to top |
|
|
khadar78 Warnings : 1 New User
Joined: 29 Apr 2008 Posts: 16 Location: Mysore
|
|
|
|
hi bill,
A good handbook... Thanks a lot |
|
Back to top |
|
|
|