.MODEL SMALL
.STACK 64
;******************************************
.DATA
;******************************************
.CODE
MAIN PROC FAR
mov ax,@data
mov ds,ax
mov es,ax
mov dl,'G'
mov ah,02h
int 21h
;if you can't see the output,please take following two lines effect
mov ah,0AH
int 21h
;return DOS
mov ax,4C00H
int 21h
MAIN ENDP
END MAIN ;set entry point
本文介绍了如何使用汇编语言编程,在 DOS 环境下输出字符 'G' 的过程,涉及基本的汇编指令应用。
6702

被折叠的 条评论
为什么被折叠?



