0

In the data section, you get a byte array of numbers like: num db -100,34,63 and its output in dos box should look like: -100 34 63

  • You can get each digit of the number using the modulo/remainder with something like [this](https://stackoverflow.com/questions/3118490/getting-each-individual-digit-from-a-whole-integer), obviously you have to convert that to assembly (which is simple). For each digit, add 48 to convert it into a character, and push it into an array. Check out [this](https://github.com/FISHARMNIC/asmLibs/blob/main/stdout.s#L157) method I created to print a string. It's not DOS assembly but you should be able to understand it. :) – Sir Archibald Humphrey Sep 19 '22 at 21:16
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Sep 19 '22 at 23:39
  • Also [8086 assembly - how to access array elements within a loop](https://stackoverflow.com/q/14979969) for looping over an array of bytes. – Peter Cordes Sep 20 '22 at 06:41

0 Answers0