×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Hi. I'm kinda new in assembler so h

Hi. I'm kinda new in assembler so h

Hi. I'm kinda new in assembler so h

(OP)
Hi. I'm kinda new in assembler so here's my quetion:

I want to write some text to the screen and I think I'm doing it in a stupid way.
What I want to write is Nightsoft. starting at row c column 24-2C
this is how my code starts:


MOV AX,0200
MOV BX,0000  /* goto XY(0C,24)
MOV DX,0C24
INT 10

MOV AX,094E
MOV BX,0017  /* Write 'N'
MOV CX.0001
INT 10

MOV AX,0200
MOV BX,0000  /* goto XY(0C,25)
MOV DX,0C25
INT 10

MOV AX,0949
MOV BX,0017  /* Write 'I'
MOV CX.0001
INT 10

This code get's pretty long and I wonder if there is some easier way to do it. Some Loop or something. But I really don't know how to put it together.

I'm using Debug. and my code is NOT being executed under DOS
So no DOS Interrupts.

Hope some one can help me.
Thnx.

Real programmers use machine code
www.nightsoft.dk

RE: Hi. I'm kinda new in assembler so h

Using Debug: at a place the IP never reaches (usually behind the last instruction) you can define data:

db 'Nightsoft$'

db : "define byte"
'$' : end-of-string sign (for use with DOS)

This can be used with DOS interrupts but if you have the string somewhere in memory, you can easily create a loop and use INT 10h.


Regards,
Bert Vingerhoets
vingerhoetsbert@hotmail.com
http://www.geocities.com/thevhbcompany/
Don't worry what people think about you. They're too busy wondering what you think about them.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close