Hi,Everybody!
I am a Beginner Of MASM,But I Real like it!
Maybe it's a foolish Question to you,however i
want to knowhow can i display two row text in asm file!
n case you may well don't read me! i give the simple ASM
file blew:
STACK SEGMENT STACK
DB 200 DUP(0)
STACK ENDS
DATA SEGMENT
BUF DB 'HELLO! sCHZhangGX Welcome To --==MASM==-- World ????$'
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA,SS:STACK
START: MOV AX,DATA
MOV DS,AX
LEA DX,BUF
Mov AH,9
INT 21H
MOV AH,4CH
INT 21H
CODE ENDS
END START
if i want to display some text in second Row Below "'HELLO! sCHZhangGX Welcome ......." What should I Do!!
Thanks A lot!!!!
:stupid:
I am a Beginner Of MASM,But I Real like it!
Maybe it's a foolish Question to you,however i
want to knowhow can i display two row text in asm file!
n case you may well don't read me! i give the simple ASM
file blew:
STACK SEGMENT STACK
DB 200 DUP(0)
STACK ENDS
DATA SEGMENT
BUF DB 'HELLO! sCHZhangGX Welcome To --==MASM==-- World ????$'
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA,SS:STACK
START: MOV AX,DATA
MOV DS,AX
LEA DX,BUF
Mov AH,9
INT 21H
MOV AH,4CH
INT 21H
CODE ENDS
END START
if i want to display some text in second Row Below "'HELLO! sCHZhangGX Welcome ......." What should I Do!!
Thanks A lot!!!!
:stupid:
buf db 'HELLO! sCHZhangGX Welcome To --==MASM==-- World ????0d0a', 0dh, 0ah,'some text$'
Isn't it done like this:
BUF DB 'HELLO! sCHZhangGX Welcome To,13,10
db '--==MASM==-- World ????$',0
or whatever the carriage return and line feed ascii codes are. Also, I'm not sure if 13 and 10 are the decimal values or hex. Anyways it's something like that. You just add the carriage return and line feed chars where you want the break to be.
edit:I'm too darn slow today. Apparently the values are 13 and 10 in decimal after all though. :)
BUF DB 'HELLO! sCHZhangGX Welcome To,13,10
db '--==MASM==-- World ????$',0
or whatever the carriage return and line feed ascii codes are. Also, I'm not sure if 13 and 10 are the decimal values or hex. Anyways it's something like that. You just add the carriage return and line feed chars where you want the break to be.
edit:I'm too darn slow today. Apparently the values are 13 and 10 in decimal after all though. :)
BUF DB 'HELLO! sCHZhangGX Welcome To,13,10
you have to close the ' before 13, 10.
Anyway 13, 10 is the same as doing 0dh, 0ah
?ã?????????
??
?????????????????????????
?ã???????????:alright:
??
?????????????????????????
?ã???????????:alright: