Когда я добавляю два значения в 16-битной сборке, что лучший способ распечатать результат на консоли?
В данный момент у меня есть этот код:
;;---CODE START---;;
mov ax, 1 ;put 1 into ax
add ax, 2 ; add 2 to ax current value
mov ah,2 ; 2 is the function number of output char in the DOS Services.
mov dl, ax ; DL takes the value.
int 21h ; calls DOS Services
mov ah,4Ch ; 4Ch is the function number for exit program in DOS Services.
int 21h ; function 4Ch doesn't care about anything in the registers.
;;---CODE END---;;
Я думаю, что значение dl должно быть в коде ASCII, но я не уверен, как преобразовать значение ax после добавления в ASCII.