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...