http://git.dujemihanovic.i2p?p=nameless-os.git;a=blobdiff;f=print.s;h=3a46c724efa996310ab365d46c3c6f5330e47fb2;hp=ab6eef4c92c9a66441c0abd6c1999ddc61af5bd3;hb=85d77ed5b53a1bd5642985ca7c6e563c58c98fa1;hpb=f9f4f8ebffb463d53ae5a239ddfbe8380f258b8b
. +; Arguments: +; CS:DI - pointer to the string you want to print +; BL - 0 prints newline, otherwise no +print + pusha + mov ah, 0Eh ; teletype print +.write2 + mov al, [CURRENT_ADDR] ; get current char and put it in al + cmp al, 0 ; check if al is null (string terminator) + je .newline ; if it is, start a new line + int 10h ; otherwise write the char + inc di ; increment pointer to string...