例子:
Input String: "This is a sample string" 
Output: This is a sample string
Input String: "Geeks for Geeks" 
Output: Geeks for Geeks说明:
- 创建一个字符串
- 使用LEA命令在dx中加载字符串的有效地址
- 通过在AH中用9H调用中断来打印字符串
- 该字符串必须以" $"符号结尾
程序
.MODEL SMALL 
.STACK 100H 
.DATA 
  
;The string to be printed 
STRING DB 'This is a sample string' , '$'
  
.CODE 
MAIN PROC FAR 
  MOV AX, @DATA 
  MOV DS, AX 
  
  ; load address of the string 
  LEA DX, STRING 
  
  ;output the string
  ;loaded in dx 
  MOV AH, 09H
  INT 21H 
  
  ;interrupt to exit
  MOV AH, 4CH
  INT 21H 
  
MAIN ENDP 
END MAIN输出如下:
This is a sample string注意:
该程序无法在在线编辑器上运行, 请使用MASM运行该程序, 并使用dos框运行MASM, 你可以使用任何8086仿真器运行该程序。

 
	![从字法上最小长度N的排列,使得对于正好为K个索引,a[i] a[i]+1](https://www.lsbin.com/wp-content/themes/begin%20lts/img/loading.png)
