Assembly Language New Line

半腔热情 提交于 2019-12-01 12:10:44

CRLF is just a sequence of two bytes added to the output, the values 13 and 10.

If you made a string with those two values, perhaps prompt BYTE 'Hello!', 13, 10, 0 or just consisting of the cr/lf 13,10,0 combo, you can output it without a special procedure.

To expand upon adam's answer, this might be exactly what you are looking for:

carriageReturn BYTE ' ', 13, 10, 0

then call it as:

mov edx,OFFSET report1       ;Display sum result
call WriteString
call WriteInt
mov edx,OFFSET carriageReturn ; new line
call WriteString

That way the carriage return is after WriteInt

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!