View previous topic :: View next topic
|
Author |
Message |
parikshit123
Active User
Joined: 01 Jul 2005 Posts: 269 Location: India
|
|
|
|
Hi Forum,
I need an assmbler program to conver a string in UPPERCASE to lowercase.
Can anyone please help me with this? |
|
Back to top |
|
|
bengtpelle
New User
Joined: 28 Aug 2006 Posts: 24 Location: St. Petersburg, FL
|
|
|
|
This is quite simple. The difference between upper case and lower case is a blank X'40'. Simply removing this will do it. E.G.
UPERTEXT DC C'ABCDEF'
MASK DC X'BFBFBFBFBFBF'
NC UPERTEXT,MASK
After this, UPERTEXT contains C'abcdef'
|
|
Back to top |
|
|
parikshit123
Active User
Joined: 01 Jul 2005 Posts: 269 Location: India
|
|
|
|
Hi guys,
But I need a complete program, can anyone help me with this? |
|
Back to top |
|
|
bengtpelle
New User
Joined: 28 Aug 2006 Posts: 24 Location: St. Petersburg, FL
|
|
|
|
What type of program?
A standalone?
A Subroutine?
Where does the string come from? |
|
Back to top |
|
|
|