![]() ![]() JZ _StrLen If it has reached the End, then Exit. LEA SI,String Load Effective Addres of String into SI.ĬMP b.,0 Compare the Index Of Letter in SI of the String Hi Mel, Thanks Again, i've managed to make this code: :), what do you think about this ?, i still don't understand the "mov di,1938" part, but don't bother, i'll try to understand that by myself :tongue., and :rolleyes:, one more question, how do i assemble this in RadAsm? do you know how? Thanks. Mov cx,2000 number of 16 bit character spaces on 80 * 25 line displayĪnother problem you might encounter is the original cursor still flashing on your new display, this can be solved by moving it onto another page as follows :. It's also a good idea to clear the video buffer before writing to it as follows :. the string is now displayed, but if you return immediately to the operating system you won't see it, so put in a wait for keypress as follows:. Mov di,1938 address to be displayed at from offset 0 ![]() Mov ah,14 set attribute, in this instance yellow on black Mov cx,9 number of characters includind spaces Here is a sample code to display a string with the attributes of your choice. The segment register you can change is the ES register, changing DS will mess up any fetch instructions. com form so all segment registers are initialised to the same value. Here is the way to display a string in 16 bit assembler:-įirstly you are writing in. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |