打印出汇编语言是多少? [英] Printing out a number in assembly language?
本文介绍了打印出汇编语言是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
mov al,10
add al,15
我如何打印'的值人
推荐答案
你试过 INT 21H
服2 ? DL
是打印的字符。
Have you tried int 21h
service 2? DL
is the character to print.
mov dl,'A' ; print 'A'
mov ah,2
int 21h
要打印的整数值,你必须写一个循环来分解整数单个字符。如果您愿意与打印十六进制值,这是pretty微不足道的。
To print the integer value, you'll have to write a loop to decompose the integer to individual characters. If you're okay with printing the value in hex, this is pretty trivial.
如果您不能依靠DOS服务,你也许还能够使用 BIOS INT 10H
与 AL
设置为 0EH
或 0AH
。
If you can't rely on DOS services, you might also be able to use the BIOS int 10h
with AL
set to 0Eh
or 0Ah
.
这篇关于打印出汇编语言是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文