I\'ve written a solo program just to figure out how to do this, earlier I added 48 to the number to print but now when I get numbers larger than 9 it\'s not really sufficient an
When you do divq %r11 you're actually dividing the 128-bit register pair rdx:rax by r11. So to get a quotient that will fit in rax you'll typically want to clear rdx before the division, i.e. before the divq, add an: