http://git.dujemihanovic.i2p?p=nameless-os.git;a=blobdiff;f=print.s;h=3a46c724efa996310ab365d46c3c6f5330e47fb2;hp=ab6eef4c92c9a66441c0abd6c1999ddc61af5bd3;hb=85d77ed5b53a1bd5642985ca7c6e563c58c98fa1;hpb=f9f4f8ebffb463d53ae5a239ddfbe8380f258b8b;ds=sidebyside
. +; Arguments: +; DX - word to print +; BL - 0 will print a newline, 1 won't +print_word pusha ; push all regs to stack mov di, HEX_OUT+5 ; set destination index to last char in HEX_OUT mov ax, dx ; copy argument to accumulator and al, 00001111b ; extract the low nibble of the low half of the accumulator call .compare ; fill in the string with correct value pusha ; push all regs to stack...