i am doing some program in Intel 8080 and in the end i have a number in register E. I need this number convert to binary and print it to terminal.
For now i am printing it like decimal:
mov a,e
adi '0'
call putchar
call newline
hlt
Can somebody help me how to do that? Ty
Algorithm is - rotate number eight times to left. MSB is moved to
CYflag. AccordingCYflag value the digit 1 or 0 is printed. Code assumes that subroutineputcharpreserves registersCE