davidsnave
Programmer
I'm finishing up an electronics course at a technical colllege. This is my last quarter (thank god).
I'm taking microprocessors right now. I need to alter an assembly language program to get it to print a sentence.
Seems simple enough but I am pulling my hair out.
This is the program:
MOV AH,9
MOV DX, OFFSET(MSG)
INT 21H
INT 20H
MSG DB 'Hey this is fun...and it works!','$'
This program simply prints the sentence to the screen. I need it to print that same sentence with the printer.
I know the 17H interupt is used for this but I'm lost as to how exactly. I know I shouldn't have add too much to the code.
Is there a way I could use the sub-function AH, 05H? I tried this with different variations but no luck.
I'm not sure why we have this asignment when we were not taught this language, but there ain't much I can do about that.
If anyone can help me I swear I'll remember you when I get rich.
Thanks
I'm taking microprocessors right now. I need to alter an assembly language program to get it to print a sentence.
Seems simple enough but I am pulling my hair out.
This is the program:
MOV AH,9
MOV DX, OFFSET(MSG)
INT 21H
INT 20H
MSG DB 'Hey this is fun...and it works!','$'
This program simply prints the sentence to the screen. I need it to print that same sentence with the printer.
I know the 17H interupt is used for this but I'm lost as to how exactly. I know I shouldn't have add too much to the code.
Is there a way I could use the sub-function AH, 05H? I tried this with different variations but no luck.
I'm not sure why we have this asignment when we were not taught this language, but there ain't much I can do about that.
If anyone can help me I swear I'll remember you when I get rich.
Thanks