sorry i gave you a false code example, because i usually did; dividing by ten's power (to convert from hex to decimal and display a bounded num) and put remainder in memory from left to right.
yesterday my brain was off; i mixed the both ideas
ok, never mind
in your case you must divide by the...
yes it is easy
you divide the 10 base number out of 5 or any base you want then take the remainder as the left digit redo with the dividend
like the code below
mov eax, (the wished number)
mov cx, 14
a:
xor edx, edx (or extend the sign by cxd instruction i think)
div word...
hello
you are using text mode
the background color is in the second byte (the first is the ascii and the second is the attribute)
bits 4, 5, 6 are for background so you preserve the first four bits and the last ( of blinking); add 1000h to ax (ax is the video memory text word) or 10001000 to...
hello
the vga memory is at 0a000h
change es to 0a000h and di to 0
than use movsb [w][d]like below
mov cx, 64000
rep movsb
or
mov cx,32000
rep movsw
or
mov cx, 16000
rep movsd
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.