El ensamblaje muestra números hexadecimales.
¿Este número hexadecimal representa cuántos dígitos tiene?
La siguiente es una pantalla de dos dígitos. Realización 02h
;;;;;;;;;;;;;;;;;;;;;;
Asumir cs: código
Segmento de datos
buf db 02h
buf2 db '? ', '?', '$'
Fin de datos
Segmento de código
Inicio: mover eje, datos
Mover ds , ax
mov bx, offset buffer
mover aluminio, [bx]
mov ah, 0
mov dl, 16
div dl
Añadir ax, 3030h
mov buf2, al
mov buf2 1, ah
lea dx, buf2
mov ah, 9
int 21h
mov ax, 4c00h
int 21h
Fin del código
Fin del inicio