Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I set width in masm

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
hi, I am printing a word and I would like to know how to
setwidth in masm; intel processor. Is there such option?
If not is there technique that will do the work.

for example, I am printing the name
John Hancock, but I want to setwidth to 5 spaces before I print.So it will look like this.
John Hancock

thanks in advance
 
What do you mean setwidth? Just what EXACTLY does it do? "Information has a tendency to be free. Which means someone will always tell you something you don't want to know."
 
This is a work-a-round but worth a thought!

in masm, print your code to a text file.

then...

using a text editor set the left margin to 5 spaces!

maybe I've lost the plot but I use notepad to write my code in the first place and I find the TAB key works just fine.

Maybe, you have written code to print the word??? - try a subroutine to print 5 spaces before the first word on each line

I DONT KNOW! its really hard guess work when the questions are so vague!

Now I understand why AmkG has a hard time writing crappy responces LOL
0000:0000:0000:0000h
The people who have nothing to say and say it too loud have little knowledge, It's the quiet ones you need to worry about!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top