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
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