I'm a bit ashamed about asking this, but how do i output the value of a byte in assembler? Suppose I have the number 62 in the AL register. I'm targeting an 8086. There seem to be available only interrupts that output it's ascii value.
Edit: Thank you Nick D, that was what i was looking for. To answer a couple of questions, i'm actually using an emulator, emu8086. The code will be used in a tiny application in a factory that uses outdated equipment (i.e. it's a secret).
The solution, using Nick D's idea, looks somewhat like this:
compare number, 99 jump if greater to over99Label compare number, 9 jump if greater to between9and99Label ;if jumps failed, number has one digit printdigit(number) between9and99Label: divide the number by 10 printascii(quotient) printascii(modulus) jump to the end over99Label: divide the number by 100 printascii(quotient) store the modulus in the place that between9and99Label sees as input jump to between9and99Label the end: return
and it works fine for unsigned bytes :)