Σάββατο 4 Δεκεμβρίου 2010

Assembly usefull info no1

When you type the following commands:

MOV AH,8
INT 21H

and the user types "enter", then the AL=10.
But, if you want to type this text:

ABC
DEF

then you have to type

LEA DX,MSG*
MOV AH,9
INT 21H

*MSG DB "ABC",10,13"DEF","$"

^ note that "enter" in this case is both 10 and 13.

Δεν υπάρχουν σχόλια:

Δημοσίευση σχολίου